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

139 lines
3.7 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_StrengthEquipUI_AwakeSystem : AwakeSystem<FUI_StrengthEquipUI, GObject>
{
public override void Awake(FUI_StrengthEquipUI self, GObject go)
{
self.Awake(go);
}
}
public sealed class FUI_StrengthEquipUI : FUI
{
public const string UIPackageName = "Strength";
public const string UIResName = "StrengthEquipUI";
/// <summary>
/// {uiResName}的组件类型(GComponent、GButton、GProcessBar等)它们都是GObject的子类。
/// </summary>
public GComponent self;
public GLabel m_frame;
public FUI_ButtonText_Blue m_btnMake;
public GTextField m_txtMaterial;
public FUI_ButtonSlot m_btnEquip;
public GMovieClip m_animSuccess;
public GMovieClip m_animFail;
public Transition m_Effect;
public const string URL = "ui://ctrssryju838tmn";
private static GObject CreateGObject()
{
return UIPackage.CreateObject(UIPackageName, UIResName);
}
private static void CreateGObjectAsync(UIPackage.CreateObjectCallback result)
{
UIPackage.CreateObjectAsync(UIPackageName, UIResName, result);
}
public static FUI_StrengthEquipUI CreateInstance(Entity domain)
{
return EntityFactory.Create<FUI_StrengthEquipUI, GObject>(domain, CreateGObject());
}
public static ETTask<FUI_StrengthEquipUI> CreateInstanceAsync(Entity domain)
{
ETTaskCompletionSource<FUI_StrengthEquipUI> tcs = new ETTaskCompletionSource<FUI_StrengthEquipUI>();
CreateGObjectAsync((go) =>
{
tcs.SetResult(EntityFactory.Create<FUI_StrengthEquipUI, GObject>(domain, go));
});
return tcs.Task;
}
public static FUI_StrengthEquipUI Create(Entity domain,GObject go)
{
return EntityFactory.Create<FUI_StrengthEquipUI, GObject>(domain,go);
}
/// <summary>
/// 通过此方法获取的FUI在Dispose时不会释放GObject需要自行管理一般在配合FGUI的Pool机制时使用
/// </summary>
public static FUI_StrengthEquipUI GetFormPool(Entity domain,GObject go)
{
var fui = go.Get<FUI_StrengthEquipUI>();
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(3));
m_txtMaterial = (GTextField)com.GetChildAt(4);
m_btnEquip = FUI_ButtonSlot.Create(domain,com.GetChildAt(6));
m_animSuccess = (GMovieClip)com.GetChildAt(8);
m_animFail = (GMovieClip)com.GetChildAt(9);
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_txtMaterial = null;
m_btnEquip = null;
m_animSuccess = null;
m_animFail = null;
m_Effect = null;
}
}
}