/** 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_ConsignmentUI_AwakeSystem : AwakeSystem { public override void Awake(FUI_ConsignmentUI self, GObject go) { self.Awake(go); } } public sealed class FUI_ConsignmentUI : FUI { public const string UIPackageName = "Consignment"; public const string UIResName = "ConsignmentUI"; /// /// {uiResName}的组件类型(GComponent、GButton、GProcessBar等),它们都是GObject的子类。 /// public GComponent self; public FUI_FrameConsignmentUI m_frame; public GList m_itemList; public FUI_ComboBoxConsign m_ComboItemType; public FUI_ComboBoxConsign m_ComboJobType; public FUI_ButtonLastPage m_btnLastPage; public FUI_ButtonNextPage m_btnNextPage; public GTextField m_txtPage; public FUI_ButtonText m_btnBuy; public FUI_ButtonText m_btnSell; public const string URL = "ui://ivv55tvqih6n6"; private static GObject CreateGObject() { return UIPackage.CreateObject(UIPackageName, UIResName); } private static void CreateGObjectAsync(UIPackage.CreateObjectCallback result) { UIPackage.CreateObjectAsync(UIPackageName, UIResName, result); } public static FUI_ConsignmentUI 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_ConsignmentUI Create(Entity domain,GObject go) { return EntityFactory.Create(domain,go); } /// /// 通过此方法获取的FUI,在Dispose时不会释放GObject,需要自行管理(一般在配合FGUI的Pool机制时使用)。 /// public static FUI_ConsignmentUI GetFormPool(Entity domain,GObject go) { FUI_ConsignmentUI 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); GComponent com = go.asCom; if(com != null) { m_frame = FUI_FrameConsignmentUI.Create(domain,com.GetChildAt(0)); m_itemList = (GList)com.GetChildAt(1); m_ComboItemType = FUI_ComboBoxConsign.Create(domain,com.GetChildAt(3)); m_ComboJobType = FUI_ComboBoxConsign.Create(domain,com.GetChildAt(4)); m_btnLastPage = FUI_ButtonLastPage.Create(domain,com.GetChildAt(5)); m_btnNextPage = FUI_ButtonNextPage.Create(domain,com.GetChildAt(6)); m_txtPage = (GTextField)com.GetChildAt(7); m_btnBuy = FUI_ButtonText.Create(domain,com.GetChildAt(8)); m_btnSell = FUI_ButtonText.Create(domain,com.GetChildAt(9)); } } public override void Dispose() { if(IsDisposed) { return; } base.Dispose(); self.Remove(); self = null; m_frame.Dispose(); m_frame = null; m_itemList = null; m_ComboItemType.Dispose(); m_ComboItemType = null; m_ComboJobType.Dispose(); m_ComboJobType = null; m_btnLastPage = null; m_btnNextPage = null; m_txtPage = null; m_btnBuy = null; m_btnSell = null; } } }