zxl
/
CTT
forked from Cal/CTT
1
0
Fork 0
CTT/Unity/Assets/HotfixView/Model/FGUI/AutoCode/Strength/FUI_StartSoulUpgradeUI.cs

154 lines
4.3 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/** 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_StartSoulUpgradeUI_AwakeSystem : AwakeSystem<FUI_StartSoulUpgradeUI, GObject>
{
public override void Awake(FUI_StartSoulUpgradeUI self, GObject go)
{
self.Awake(go);
}
}
public sealed class FUI_StartSoulUpgradeUI : FUI
{
public const string UIPackageName = "Strength";
public const string UIResName = "StartSoulUpgradeUI";
/// <summary>
/// {uiResName}的组件类型(GComponent、GButton、GProcessBar等)它们都是GObject的子类。
/// </summary>
public GComponent self;
public GLabel m_frame;
public FUI_ButtonText_Blue m_btnMake;
public GTextField m_txtBefore;
public GTextField m_txtAfter;
public FUI_ComboBox m_comType;
public GTextField m_txtItem;
public GTextField m_txtMarterial;
public GTextField m_txtPrice;
public GTextField m_txtLevel;
public GProgressBar m_parExp;
public FUI_ButtonOnlyText m_btnSelectAll0Level;
public Transition m_Effect;
public const string URL = "ui://ctrssryjd7ldtoz";
private static GObject CreateGObject()
{
return UIPackage.CreateObject(UIPackageName, UIResName);
}
private static void CreateGObjectAsync(UIPackage.CreateObjectCallback result)
{
UIPackage.CreateObjectAsync(UIPackageName, UIResName, result);
}
public static FUI_StartSoulUpgradeUI CreateInstance(Entity domain)
{
return EntityFactory.Create<FUI_StartSoulUpgradeUI, GObject>(domain, CreateGObject());
}
public static ETTask<FUI_StartSoulUpgradeUI> CreateInstanceAsync(Entity domain)
{
ETTaskCompletionSource<FUI_StartSoulUpgradeUI> tcs = new ETTaskCompletionSource<FUI_StartSoulUpgradeUI>();
CreateGObjectAsync((go) =>
{
tcs.SetResult(EntityFactory.Create<FUI_StartSoulUpgradeUI, GObject>(domain, go));
});
return tcs.Task;
}
public static FUI_StartSoulUpgradeUI Create(Entity domain,GObject go)
{
return EntityFactory.Create<FUI_StartSoulUpgradeUI, GObject>(domain,go);
}
/// <summary>
/// 通过此方法获取的FUI在Dispose时不会释放GObject需要自行管理一般在配合FGUI的Pool机制时使用
/// </summary>
public static FUI_StartSoulUpgradeUI GetFormPool(Entity domain,GObject go)
{
var fui = go.Get<FUI_StartSoulUpgradeUI>();
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 = (GLabel)com.GetChildAt(0);
m_btnMake = FUI_ButtonText_Blue.Create(domain,com.GetChildAt(1));
m_txtBefore = (GTextField)com.GetChildAt(3);
m_txtAfter = (GTextField)com.GetChildAt(6);
m_comType = FUI_ComboBox.Create(domain,com.GetChildAt(8));
m_txtItem = (GTextField)com.GetChildAt(9);
m_txtMarterial = (GTextField)com.GetChildAt(11);
m_txtPrice = (GTextField)com.GetChildAt(12);
m_txtLevel = (GTextField)com.GetChildAt(13);
m_parExp = (GProgressBar)com.GetChildAt(14);
m_btnSelectAll0Level = FUI_ButtonOnlyText.Create(domain,com.GetChildAt(16));
m_Effect = com.GetTransitionAt(0);
}
}
public override void Dispose()
{
if(IsDisposed)
{
return;
}
base.Dispose();
self.Remove();
self = null;
m_frame = null;
m_btnMake = null;
m_txtBefore = null;
m_txtAfter = null;
m_comType = null;
m_txtItem = null;
m_txtMarterial = null;
m_txtPrice = null;
m_txtLevel = null;
m_parExp = null;
m_btnSelectAll0Level = null;
m_Effect = null;
}
}
}