|
@@ -4,39 +4,38 @@ using FairyGUI;
|
|
|
|
|
|
namespace UI.Poem
|
|
|
{
|
|
|
- public partial class UI_ComEctype
|
|
|
+ public partial class UI_Button15
|
|
|
{
|
|
|
- public GComponent target;
|
|
|
+ public GButton target;
|
|
|
public Controller m_c1;
|
|
|
- public GLoader m_icon;
|
|
|
public GImage m_img;
|
|
|
- public const string URL = "ui://iyz778gkv4822";
|
|
|
+ public const string URL = "ui://iyz778gkobt4tky";
|
|
|
public const string PACKAGE_NAME = "Poem";
|
|
|
- public const string RES_NAME = "ComEctype";
|
|
|
- private static UI_ComEctype _proxy;
|
|
|
+ public const string RES_NAME = "Button15";
|
|
|
+ private static UI_Button15 _proxy;
|
|
|
|
|
|
- public static UI_ComEctype Create(GObject gObject = null)
|
|
|
+ public static UI_Button15 Create(GObject gObject = null)
|
|
|
{
|
|
|
- var ui = new UI_ComEctype();
|
|
|
+ var ui = new UI_Button15();
|
|
|
if(gObject == null)
|
|
|
- ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
|
|
|
+ ui.target = (GButton)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
|
|
|
else
|
|
|
- ui.target = (GComponent)gObject;
|
|
|
+ ui.target = (GButton)gObject;
|
|
|
ui.Init(ui.target);
|
|
|
return ui;
|
|
|
}
|
|
|
|
|
|
- public static UI_ComEctype Proxy(GObject gObject = null)
|
|
|
+ public static UI_Button15 Proxy(GObject gObject = null)
|
|
|
{
|
|
|
if(_proxy == null)
|
|
|
{
|
|
|
- _proxy = new UI_ComEctype();
|
|
|
+ _proxy = new UI_Button15();
|
|
|
}
|
|
|
var ui = _proxy;
|
|
|
if(gObject == null)
|
|
|
- ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
|
|
|
+ ui.target = (GButton)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
|
|
|
else
|
|
|
- ui.target = (GComponent)gObject;
|
|
|
+ ui.target = (GButton)gObject;
|
|
|
ui.Init(ui.target);
|
|
|
return ui;
|
|
|
}
|
|
@@ -58,13 +57,11 @@ namespace UI.Poem
|
|
|
private void Init(GComponent comp)
|
|
|
{
|
|
|
m_c1 = comp.GetController("c1");
|
|
|
- m_icon = (GLoader)comp.GetChild("icon");
|
|
|
m_img = (GImage)comp.GetChild("img");
|
|
|
}
|
|
|
public void Dispose(bool disposeTarget = false)
|
|
|
{
|
|
|
m_c1 = null;
|
|
|
- m_icon = null;
|
|
|
m_img = null;
|
|
|
if(disposeTarget && target != null)
|
|
|
{
|