183 lines
5.0 KiB
C#
183 lines
5.0 KiB
C#
/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
|
||
|
||
using ET;
|
||
using FairyGUI;
|
||
using FairyGUI.Utils;
|
||
|
||
namespace ET
|
||
{
|
||
[ObjectSystem]
|
||
public class FUI_GMUI_AwakeSystem : AwakeSystem<FUI_GMUI, GObject>
|
||
{
|
||
public override void Awake(FUI_GMUI self, GObject go)
|
||
{
|
||
self.Awake(go);
|
||
}
|
||
}
|
||
|
||
public sealed class FUI_GMUI : FUI
|
||
{
|
||
public const string UIPackageName = "Common";
|
||
public const string UIResName = "GMUI";
|
||
|
||
/// <summary>
|
||
/// {uiResName}的组件类型(GComponent、GButton、GProcessBar等),它们都是GObject的子类。
|
||
/// </summary>
|
||
public GComponent self;
|
||
|
||
public FUI_FrameCommon m_frame;
|
||
public GTextInput m_inpUid;
|
||
public FUI_ButtonText m_btnUid;
|
||
public GTextField m_txtInfo;
|
||
public FUI_ComboBoxCheat m_comOp;
|
||
public GTextField m_txtOp;
|
||
public GTextField m_txtTip1;
|
||
public GTextField m_txtTip;
|
||
public GTextInput m_inpParam1;
|
||
public GTextInput m_inpParam2;
|
||
public FUI_ButtonText m_btnSend;
|
||
public GTextField m_txtResult;
|
||
public FUI_ComboBoxCheat m_comType;
|
||
public FUI_ButtonText m_btnCheck;
|
||
public FUI_ComboBoxCheat m_comItemType;
|
||
public GTextInput m_inpSearch;
|
||
public FUI_ButtonText m_btnSearch;
|
||
public GTextInput m_inpSearchRet;
|
||
public GTextInput m_inpCmd;
|
||
public const string URL = "ui://kqsmrpxl4wfcutlh";
|
||
|
||
private static GObject CreateGObject()
|
||
{
|
||
return UIPackage.CreateObject(UIPackageName, UIResName);
|
||
}
|
||
|
||
private static void CreateGObjectAsync(UIPackage.CreateObjectCallback result)
|
||
{
|
||
UIPackage.CreateObjectAsync(UIPackageName, UIResName, result);
|
||
}
|
||
|
||
public static FUI_GMUI CreateInstance(Entity domain)
|
||
{
|
||
return EntityFactory.Create<FUI_GMUI, GObject>(domain, CreateGObject());
|
||
}
|
||
|
||
public static ETTask<FUI_GMUI> CreateInstanceAsync(Entity domain)
|
||
{
|
||
ETTaskCompletionSource<FUI_GMUI> tcs = new ETTaskCompletionSource<FUI_GMUI>();
|
||
|
||
CreateGObjectAsync((go) =>
|
||
{
|
||
tcs.SetResult(EntityFactory.Create<FUI_GMUI, GObject>(domain, go));
|
||
});
|
||
|
||
return tcs.Task;
|
||
}
|
||
|
||
public static FUI_GMUI Create(Entity domain,GObject go)
|
||
{
|
||
return EntityFactory.Create<FUI_GMUI, GObject>(domain,go);
|
||
}
|
||
|
||
/// <summary>
|
||
/// 通过此方法获取的FUI,在Dispose时不会释放GObject,需要自行管理(一般在配合FGUI的Pool机制时使用)。
|
||
/// </summary>
|
||
public static FUI_GMUI GetFormPool(Entity domain,GObject go)
|
||
{
|
||
var fui = go.Get<FUI_GMUI>();
|
||
|
||
if(fui == null)
|
||
{
|
||
fui = Create(domain,go);
|
||
}
|
||
|
||
fui.isFromFGUIPool = true;
|
||
|
||
return fui;
|
||
}
|
||
|
||
public void Awake(GObject go)
|
||
{
|
||
if(go == null)
|
||
{
|
||
return;
|
||
}
|
||
|
||
GObject = go;
|
||
|
||
if (string.IsNullOrWhiteSpace(Name))
|
||
{
|
||
Name = Id.ToString();
|
||
}
|
||
|
||
self = (GComponent)go;
|
||
|
||
self.Add(this);
|
||
|
||
var com = go.asCom;
|
||
|
||
if(com != null)
|
||
{
|
||
|
||
m_frame = FUI_FrameCommon.Create(domain,com.GetChildAt(0));
|
||
m_inpUid = (GTextInput)com.GetChildAt(1);
|
||
m_btnUid = FUI_ButtonText.Create(domain,com.GetChildAt(2));
|
||
m_txtInfo = (GTextField)com.GetChildAt(3);
|
||
m_comOp = FUI_ComboBoxCheat.Create(domain,com.GetChildAt(4));
|
||
m_txtOp = (GTextField)com.GetChildAt(5);
|
||
m_txtTip1 = (GTextField)com.GetChildAt(6);
|
||
m_txtTip = (GTextField)com.GetChildAt(7);
|
||
m_inpParam1 = (GTextInput)com.GetChildAt(8);
|
||
m_inpParam2 = (GTextInput)com.GetChildAt(9);
|
||
m_btnSend = FUI_ButtonText.Create(domain,com.GetChildAt(10));
|
||
m_txtResult = (GTextField)com.GetChildAt(11);
|
||
m_comType = FUI_ComboBoxCheat.Create(domain,com.GetChildAt(12));
|
||
m_btnCheck = FUI_ButtonText.Create(domain,com.GetChildAt(13));
|
||
m_comItemType = FUI_ComboBoxCheat.Create(domain,com.GetChildAt(14));
|
||
m_inpSearch = (GTextInput)com.GetChildAt(15);
|
||
m_btnSearch = FUI_ButtonText.Create(domain,com.GetChildAt(16));
|
||
m_inpSearchRet = (GTextInput)com.GetChildAt(17);
|
||
m_inpCmd = (GTextInput)com.GetChildAt(18);
|
||
}
|
||
}
|
||
public override void Dispose()
|
||
{
|
||
if(IsDisposed)
|
||
{
|
||
return;
|
||
}
|
||
|
||
base.Dispose();
|
||
|
||
self.Remove();
|
||
self = null;
|
||
|
||
m_frame.Dispose();
|
||
m_frame = null;
|
||
m_inpUid = null;
|
||
m_btnUid.Dispose();
|
||
m_btnUid = null;
|
||
m_txtInfo = null;
|
||
m_comOp.Dispose();
|
||
m_comOp = null;
|
||
m_txtOp = null;
|
||
m_txtTip1 = null;
|
||
m_txtTip = null;
|
||
m_inpParam1 = null;
|
||
m_inpParam2 = null;
|
||
m_btnSend.Dispose();
|
||
m_btnSend = null;
|
||
m_txtResult = null;
|
||
m_comType.Dispose();
|
||
m_comType = null;
|
||
m_btnCheck.Dispose();
|
||
m_btnCheck = null;
|
||
m_comItemType.Dispose();
|
||
m_comItemType = null;
|
||
m_inpSearch = null;
|
||
m_btnSearch.Dispose();
|
||
m_btnSearch = null;
|
||
m_inpSearchRet = null;
|
||
m_inpCmd = null;
|
||
}
|
||
}
|
||
} |