/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.OpenServerActivity { public partial class UI_StoryItem { public GComponent target; public Controller m_storyImageType; public Controller m_posType; public Controller m_openCloseType; public GLoader m_loaItemBg; public UI_item m_rewardItem; public GTextField m_txtTitle; public GTextField m_txtNumber; public GTextField m_txtNotOpenTitle; public GLoader m_loaNeedIcon; public GTextField m_txtNotOpenTitle_2; public const string URL = "ui://b8ha2mnsebioi"; public const string PACKAGE_NAME = "OpenServerActivity"; public const string RES_NAME = "StoryItem"; private static UI_StoryItem _proxy; public static UI_StoryItem Create(GObject gObject = null) { var ui = new UI_StoryItem(); if(gObject == null) ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME); else ui.target = (GComponent)gObject; ui.Init(ui.target); return ui; } public static UI_StoryItem Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_StoryItem(); } var ui = _proxy; if(gObject == null) ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME); else ui.target = (GComponent)gObject; ui.Init(ui.target); return ui; } public static void ProxyEnd() { if (_proxy != null) { _proxy.Dispose(); } } public static void ClearProxy() { ProxyEnd(); _proxy = null; } private void Init(GComponent comp) { m_storyImageType = comp.GetController("storyImageType"); m_posType = comp.GetController("posType"); m_openCloseType = comp.GetController("openCloseType"); m_loaItemBg = (GLoader)comp.GetChild("loaItemBg"); m_rewardItem = (UI_item)UI_item.Create(comp.GetChild("rewardItem")); m_txtTitle = (GTextField)comp.GetChild("txtTitle"); m_txtNumber = (GTextField)comp.GetChild("txtNumber"); m_txtNotOpenTitle = (GTextField)comp.GetChild("txtNotOpenTitle"); m_loaNeedIcon = (GLoader)comp.GetChild("loaNeedIcon"); m_txtNotOpenTitle_2 = (GTextField)comp.GetChild("txtNotOpenTitle"); } public void Dispose(bool disposeTarget = false) { m_storyImageType = null; m_posType = null; m_openCloseType = null; m_loaItemBg = null; m_rewardItem.Dispose(); m_rewardItem = null; m_txtTitle = null; m_txtNumber = null; m_txtNotOpenTitle = null; m_loaNeedIcon = null; m_txtNotOpenTitle_2 = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }