|
@@ -11,13 +11,15 @@ namespace UI.LuckyBox
|
|
|
public UI_Button3 m_btnPreview;
|
|
public UI_Button3 m_btnPreview;
|
|
|
public UI_Button3 m_btnExchange;
|
|
public UI_Button3 m_btnExchange;
|
|
|
public GTextField m_txtOwned;
|
|
public GTextField m_txtOwned;
|
|
|
|
|
+ public GGraph m_holder;
|
|
|
|
|
+ public GGraph m_holder1;
|
|
|
|
|
+ public GTextField m_txtTime;
|
|
|
public UI_ComCost m_comCostOne;
|
|
public UI_ComCost m_comCostOne;
|
|
|
public UI_ComCost m_comCostTen;
|
|
public UI_ComCost m_comCostTen;
|
|
|
public UI_Button1 m_btnBuyOne;
|
|
public UI_Button1 m_btnBuyOne;
|
|
|
public UI_Button2 m_btnBuyTen;
|
|
public UI_Button2 m_btnBuyTen;
|
|
|
public GImage m_imgSpecial;
|
|
public GImage m_imgSpecial;
|
|
|
public GTextField m_txtRemainTimes;
|
|
public GTextField m_txtRemainTimes;
|
|
|
- public GTextField m_txtTime;
|
|
|
|
|
public const string URL = "ui://drx9d1usnjmn2p";
|
|
public const string URL = "ui://drx9d1usnjmn2p";
|
|
|
public const string PACKAGE_NAME = "LuckyBox";
|
|
public const string PACKAGE_NAME = "LuckyBox";
|
|
|
public const string RES_NAME = "ComBox_1";
|
|
public const string RES_NAME = "ComBox_1";
|
|
@@ -69,13 +71,15 @@ namespace UI.LuckyBox
|
|
|
m_btnPreview = (UI_Button3)UI_Button3.Create(comp.GetChild("btnPreview"));
|
|
m_btnPreview = (UI_Button3)UI_Button3.Create(comp.GetChild("btnPreview"));
|
|
|
m_btnExchange = (UI_Button3)UI_Button3.Create(comp.GetChild("btnExchange"));
|
|
m_btnExchange = (UI_Button3)UI_Button3.Create(comp.GetChild("btnExchange"));
|
|
|
m_txtOwned = (GTextField)comp.GetChild("txtOwned");
|
|
m_txtOwned = (GTextField)comp.GetChild("txtOwned");
|
|
|
|
|
+ m_holder = (GGraph)comp.GetChild("holder");
|
|
|
|
|
+ m_holder1 = (GGraph)comp.GetChild("holder1");
|
|
|
|
|
+ m_txtTime = (GTextField)comp.GetChild("txtTime");
|
|
|
m_comCostOne = (UI_ComCost)UI_ComCost.Create(comp.GetChild("comCostOne"));
|
|
m_comCostOne = (UI_ComCost)UI_ComCost.Create(comp.GetChild("comCostOne"));
|
|
|
m_comCostTen = (UI_ComCost)UI_ComCost.Create(comp.GetChild("comCostTen"));
|
|
m_comCostTen = (UI_ComCost)UI_ComCost.Create(comp.GetChild("comCostTen"));
|
|
|
m_btnBuyOne = (UI_Button1)UI_Button1.Create(comp.GetChild("btnBuyOne"));
|
|
m_btnBuyOne = (UI_Button1)UI_Button1.Create(comp.GetChild("btnBuyOne"));
|
|
|
m_btnBuyTen = (UI_Button2)UI_Button2.Create(comp.GetChild("btnBuyTen"));
|
|
m_btnBuyTen = (UI_Button2)UI_Button2.Create(comp.GetChild("btnBuyTen"));
|
|
|
m_imgSpecial = (GImage)comp.GetChild("imgSpecial");
|
|
m_imgSpecial = (GImage)comp.GetChild("imgSpecial");
|
|
|
m_txtRemainTimes = (GTextField)comp.GetChild("txtRemainTimes");
|
|
m_txtRemainTimes = (GTextField)comp.GetChild("txtRemainTimes");
|
|
|
- m_txtTime = (GTextField)comp.GetChild("txtTime");
|
|
|
|
|
}
|
|
}
|
|
|
public void Dispose(bool disposeTarget = false)
|
|
public void Dispose(bool disposeTarget = false)
|
|
|
{
|
|
{
|
|
@@ -85,6 +89,9 @@ namespace UI.LuckyBox
|
|
|
m_btnExchange.Dispose();
|
|
m_btnExchange.Dispose();
|
|
|
m_btnExchange = null;
|
|
m_btnExchange = null;
|
|
|
m_txtOwned = null;
|
|
m_txtOwned = null;
|
|
|
|
|
+ m_holder = null;
|
|
|
|
|
+ m_holder1 = null;
|
|
|
|
|
+ m_txtTime = null;
|
|
|
m_comCostOne.Dispose();
|
|
m_comCostOne.Dispose();
|
|
|
m_comCostOne = null;
|
|
m_comCostOne = null;
|
|
|
m_comCostTen.Dispose();
|
|
m_comCostTen.Dispose();
|
|
@@ -95,7 +102,6 @@ namespace UI.LuckyBox
|
|
|
m_btnBuyTen = null;
|
|
m_btnBuyTen = null;
|
|
|
m_imgSpecial = null;
|
|
m_imgSpecial = null;
|
|
|
m_txtRemainTimes = null;
|
|
m_txtRemainTimes = null;
|
|
|
- m_txtTime = null;
|
|
|
|
|
if(disposeTarget && target != null)
|
|
if(disposeTarget && target != null)
|
|
|
{
|
|
{
|
|
|
target.RemoveFromParent();
|
|
target.RemoveFromParent();
|