|
@@ -10,12 +10,15 @@ namespace UI.RoleInfo
|
|
public Controller m_c1;
|
|
public Controller m_c1;
|
|
public GList m_list;
|
|
public GList m_list;
|
|
public GList m_listBorder;
|
|
public GList m_listBorder;
|
|
- public GButton m_btnTab0;
|
|
|
|
- public GButton m_btnTab1;
|
|
|
|
|
|
+ public UI_ButtonHeadChoose m_btnTab0;
|
|
|
|
+ public UI_ButtonHeadChoose m_btnTab1;
|
|
public GComponent m_comHead;
|
|
public GComponent m_comHead;
|
|
public GTextField m_txtName;
|
|
public GTextField m_txtName;
|
|
public GTextField m_txtDesc;
|
|
public GTextField m_txtDesc;
|
|
public GButton m_btnSure;
|
|
public GButton m_btnSure;
|
|
|
|
+ public GButton m_btnClose;
|
|
|
|
+ public GGraph m_holderLeftTop;
|
|
|
|
+ public GGraph m_holderRightDowm;
|
|
public const string URL = "ui://374k3dwvr9ri2";
|
|
public const string URL = "ui://374k3dwvr9ri2";
|
|
public const string PACKAGE_NAME = "RoleInfo";
|
|
public const string PACKAGE_NAME = "RoleInfo";
|
|
public const string RES_NAME = "ChangeHead";
|
|
public const string RES_NAME = "ChangeHead";
|
|
@@ -66,24 +69,32 @@ namespace UI.RoleInfo
|
|
m_c1 = comp.GetController("c1");
|
|
m_c1 = comp.GetController("c1");
|
|
m_list = (GList)comp.GetChild("list");
|
|
m_list = (GList)comp.GetChild("list");
|
|
m_listBorder = (GList)comp.GetChild("listBorder");
|
|
m_listBorder = (GList)comp.GetChild("listBorder");
|
|
- m_btnTab0 = (GButton)comp.GetChild("btnTab0");
|
|
|
|
- m_btnTab1 = (GButton)comp.GetChild("btnTab1");
|
|
|
|
|
|
+ m_btnTab0 = (UI_ButtonHeadChoose)UI_ButtonHeadChoose.Create(comp.GetChild("btnTab0"));
|
|
|
|
+ m_btnTab1 = (UI_ButtonHeadChoose)UI_ButtonHeadChoose.Create(comp.GetChild("btnTab1"));
|
|
m_comHead = (GComponent)comp.GetChild("comHead");
|
|
m_comHead = (GComponent)comp.GetChild("comHead");
|
|
m_txtName = (GTextField)comp.GetChild("txtName");
|
|
m_txtName = (GTextField)comp.GetChild("txtName");
|
|
m_txtDesc = (GTextField)comp.GetChild("txtDesc");
|
|
m_txtDesc = (GTextField)comp.GetChild("txtDesc");
|
|
m_btnSure = (GButton)comp.GetChild("btnSure");
|
|
m_btnSure = (GButton)comp.GetChild("btnSure");
|
|
|
|
+ m_btnClose = (GButton)comp.GetChild("btnClose");
|
|
|
|
+ m_holderLeftTop = (GGraph)comp.GetChild("holderLeftTop");
|
|
|
|
+ m_holderRightDowm = (GGraph)comp.GetChild("holderRightDowm");
|
|
}
|
|
}
|
|
public void Dispose(bool disposeTarget = false)
|
|
public void Dispose(bool disposeTarget = false)
|
|
{
|
|
{
|
|
m_c1 = null;
|
|
m_c1 = null;
|
|
m_list = null;
|
|
m_list = null;
|
|
m_listBorder = null;
|
|
m_listBorder = null;
|
|
|
|
+ m_btnTab0.Dispose();
|
|
m_btnTab0 = null;
|
|
m_btnTab0 = null;
|
|
|
|
+ m_btnTab1.Dispose();
|
|
m_btnTab1 = null;
|
|
m_btnTab1 = null;
|
|
m_comHead = null;
|
|
m_comHead = null;
|
|
m_txtName = null;
|
|
m_txtName = null;
|
|
m_txtDesc = null;
|
|
m_txtDesc = null;
|
|
m_btnSure = null;
|
|
m_btnSure = null;
|
|
|
|
+ m_btnClose = null;
|
|
|
|
+ m_holderLeftTop = null;
|
|
|
|
+ m_holderRightDowm = null;
|
|
if(disposeTarget && target != null)
|
|
if(disposeTarget && target != null)
|
|
{
|
|
{
|
|
target.RemoveFromParent();
|
|
target.RemoveFromParent();
|