|
@@ -7,10 +7,10 @@ namespace UI.CreateRole
|
|
public partial class UI_CreateRoleUI
|
|
public partial class UI_CreateRoleUI
|
|
{
|
|
{
|
|
public GComponent target;
|
|
public GComponent target;
|
|
- public GComponent m_bg;
|
|
|
|
|
|
+ public GLoader m_loaBg;
|
|
|
|
+ public GTextInput m_inputName;
|
|
public GButton m_btnSure;
|
|
public GButton m_btnSure;
|
|
public GButton m_btnDice;
|
|
public GButton m_btnDice;
|
|
- public GTextInput m_inputName;
|
|
|
|
public const string URL = "ui://5al8chbdxt5s0";
|
|
public const string URL = "ui://5al8chbdxt5s0";
|
|
public const string PACKAGE_NAME = "CreateRole";
|
|
public const string PACKAGE_NAME = "CreateRole";
|
|
public const string RES_NAME = "CreateRoleUI";
|
|
public const string RES_NAME = "CreateRoleUI";
|
|
@@ -58,17 +58,17 @@ namespace UI.CreateRole
|
|
|
|
|
|
private void Init(GComponent comp)
|
|
private void Init(GComponent comp)
|
|
{
|
|
{
|
|
- m_bg = (GComponent)comp.GetChild("bg");
|
|
|
|
|
|
+ m_loaBg = (GLoader)comp.GetChild("loaBg");
|
|
|
|
+ m_inputName = (GTextInput)comp.GetChild("inputName");
|
|
m_btnSure = (GButton)comp.GetChild("btnSure");
|
|
m_btnSure = (GButton)comp.GetChild("btnSure");
|
|
m_btnDice = (GButton)comp.GetChild("btnDice");
|
|
m_btnDice = (GButton)comp.GetChild("btnDice");
|
|
- m_inputName = (GTextInput)comp.GetChild("inputName");
|
|
|
|
}
|
|
}
|
|
public void Dispose(bool disposeTarget = false)
|
|
public void Dispose(bool disposeTarget = false)
|
|
{
|
|
{
|
|
- m_bg = null;
|
|
|
|
|
|
+ m_loaBg = null;
|
|
|
|
+ m_inputName = null;
|
|
m_btnSure = null;
|
|
m_btnSure = null;
|
|
m_btnDice = null;
|
|
m_btnDice = null;
|
|
- m_inputName = null;
|
|
|
|
if(disposeTarget && target != null)
|
|
if(disposeTarget && target != null)
|
|
{
|
|
{
|
|
target.RemoveFromParent();
|
|
target.RemoveFromParent();
|