|
@@ -13,8 +13,9 @@ namespace UI.CommonGame
|
|
|
public GTextField m_txtDesc;
|
|
|
public GTextField m_txtCount;
|
|
|
public GList m_listTaskReward;
|
|
|
- public GButton m_GetRewardBt;
|
|
|
- public GButton m_ComeBt;
|
|
|
+ public UI_Button22 m_GetRewardBt;
|
|
|
+ public UI_Button22 m_ComeBt;
|
|
|
+ public UI_Button22 m_GetRewardBt_2;
|
|
|
public const string URL = "ui://eg2y0ldplh8v5";
|
|
|
public const string PACKAGE_NAME = "CommonGame";
|
|
|
public const string RES_NAME = "TaskListItem";
|
|
@@ -68,8 +69,9 @@ namespace UI.CommonGame
|
|
|
m_txtDesc = (GTextField)comp.GetChild("txtDesc");
|
|
|
m_txtCount = (GTextField)comp.GetChild("txtCount");
|
|
|
m_listTaskReward = (GList)comp.GetChild("listTaskReward");
|
|
|
- m_GetRewardBt = (GButton)comp.GetChild("GetRewardBt");
|
|
|
- m_ComeBt = (GButton)comp.GetChild("ComeBt");
|
|
|
+ m_GetRewardBt = (UI_Button22)UI_Button22.Create(comp.GetChild("GetRewardBt"));
|
|
|
+ m_ComeBt = (UI_Button22)UI_Button22.Create(comp.GetChild("ComeBt"));
|
|
|
+ m_GetRewardBt_2 = (UI_Button22)UI_Button22.Create(comp.GetChild("GetRewardBt"));
|
|
|
}
|
|
|
public void Dispose(bool disposeTarget = false)
|
|
|
{
|
|
@@ -79,8 +81,12 @@ namespace UI.CommonGame
|
|
|
m_txtDesc = null;
|
|
|
m_txtCount = null;
|
|
|
m_listTaskReward = null;
|
|
|
+ m_GetRewardBt.Dispose();
|
|
|
m_GetRewardBt = null;
|
|
|
+ m_ComeBt.Dispose();
|
|
|
m_ComeBt = null;
|
|
|
+ m_GetRewardBt_2.Dispose();
|
|
|
+ m_GetRewardBt_2 = null;
|
|
|
if(disposeTarget && target != null)
|
|
|
{
|
|
|
target.RemoveFromParent();
|