/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using ET; using FairyGUI; using FairyGUI.Utils; namespace ET { [ObjectSystem] public class FUI_HeadTitleInfo_AwakeSystem : AwakeSystem { public override void Awake(FUI_HeadTitleInfo self, GObject go) { self.Awake(go); } } public sealed class FUI_HeadTitleInfo : FUI { public const string UIPackageName = "Common"; public const string UIResName = "HeadTitleInfo"; /// /// {uiResName}的组件类型(GComponent、GButton、GProcessBar等),它们都是GObject的子类。 /// public GComponent self; public Controller m_job; public GTextField m_txtTitle; public FUI_ComJobLevelName m_label; public FUI_pbHpAndShield m_pbHp; public Transition m_e2; public Transition m_e1; public Transition m_e4; public Transition m_e8; public Transition m_e16; public const string URL = "ui://kqsmrpxlydsqutlt"; private static GObject CreateGObject() { return UIPackage.CreateObject(UIPackageName, UIResName); } private static void CreateGObjectAsync(UIPackage.CreateObjectCallback result) { UIPackage.CreateObjectAsync(UIPackageName, UIResName, result); } public static FUI_HeadTitleInfo CreateInstance(Entity domain) { return EntityFactory.Create(domain, CreateGObject()); } public static ETTask CreateInstanceAsync(Entity domain) { ETTaskCompletionSource tcs = new ETTaskCompletionSource(); CreateGObjectAsync((go) => { tcs.SetResult(EntityFactory.Create(domain, go)); }); return tcs.Task; } public static FUI_HeadTitleInfo Create(Entity domain,GObject go) { return EntityFactory.Create(domain,go); } /// /// 通过此方法获取的FUI,在Dispose时不会释放GObject,需要自行管理(一般在配合FGUI的Pool机制时使用)。 /// public static FUI_HeadTitleInfo GetFormPool(Entity domain,GObject go) { var fui = go.Get(); if(fui == null) { fui = Create(domain,go); } fui.isFromFGUIPool = true; return fui; } public void Awake(GObject go) { if(go == null) { return; } GObject = go; if (string.IsNullOrWhiteSpace(Name)) { Name = Id.ToString(); } self = (GComponent)go; self.Add(this); var com = go.asCom; if(com != null) { m_job = com.GetControllerAt(0); m_txtTitle = (GTextField)com.GetChildAt(0); m_label = FUI_ComJobLevelName.Create(domain,com.GetChildAt(1)); m_pbHp = FUI_pbHpAndShield.Create(domain,com.GetChildAt(2)); m_e2 = com.GetTransitionAt(0); m_e1 = com.GetTransitionAt(1); m_e4 = com.GetTransitionAt(2); m_e8 = com.GetTransitionAt(3); m_e16 = com.GetTransitionAt(4); } } public override void Dispose() { if(IsDisposed) { return; } base.Dispose(); self.Remove(); self = null; m_job = null; m_txtTitle = null; m_label.Dispose(); m_label = null; m_pbHp.Dispose(); m_pbHp = null; m_e2 = null; m_e1 = null; m_e4 = null; m_e8 = null; m_e16 = null; } } }