Skip to content

Commit 8437cd1

Browse files
committed
[更新]1. 更新导出的FUI代码
1 parent b7adb70 commit 8437cd1

File tree

15 files changed

+50
-70
lines changed

15 files changed

+50
-70
lines changed
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
22

33
#if ENABLE_UI_FAIRYGUI
4-
using FairyGUI;
5-
using FairyGUI.Utils;
6-
using Cysharp.Threading.Tasks;
7-
using GameFrameX.Entity.Runtime;
84

95
namespace Hotfix.UI
106
{
11-
public static partial class FUIPackage {
7+
public static partial class FUIPackage
8+
{
129
public const string UICommonAvatar = "UICommonAvatar";
13-
1410
}
1511
}
1612
#endif
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
22

33
#if ENABLE_UI_FAIRYGUI
4-
using FairyGUI;
5-
using FairyGUI.Utils;
6-
using Cysharp.Threading.Tasks;
7-
using GameFrameX.Entity.Runtime;
84

95
namespace Hotfix.UI
106
{
11-
public static partial class FUIPackage {
7+
public static partial class FUIPackage
8+
{
129
public const string UILoading = "UILoading";
13-
1410
}
1511
}
1612
#endif
Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,12 @@
11
/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
22

33
#if ENABLE_UI_FAIRYGUI
4-
using FairyGUI;
5-
using FairyGUI.Utils;
6-
using Cysharp.Threading.Tasks;
7-
using GameFrameX.Entity.Runtime;
84

95
namespace Hotfix.UI
106
{
11-
public static partial class FUIPackage {
7+
public static partial class FUIPackage
8+
{
129
public const string UILogin = "UILogin";
13-
public const string UILogin_UIAnnouncement = "ui://UILogin/UIAnnouncement";
14-
public const string UILogin_UIAnnouncementContent = "ui://UILogin/UIAnnouncementContent";
15-
public const string UILogin_UIPlayerList = "ui://UILogin/UIPlayerList";
16-
public const string UILogin_UIPlayerListItem = "ui://UILogin/UIPlayerListItem";
17-
public const string UILogin_UIPlayerListItemLoginButton = "ui://UILogin/UIPlayerListItemLoginButton";
18-
public const string UILogin_UIPlayerCreate = "ui://UILogin/UIPlayerCreate";
19-
public const string UILogin_UILogin = "ui://UILogin/UILogin";
20-
2110
}
2211
}
2312
#endif

Assets/Hotfix/UI/FairyGUI/UILogin/Components/UIAnnouncement.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,12 @@ public static UIAnnouncement Create(GObject go)
6565
/// </summary>
6666
public static UIAnnouncement GetFormPool(GObject go)
6767
{
68-
var fui = go.Get<UIAnnouncement>();
69-
if(fui == null)
68+
var fui = go.Get<UIAnnouncement>();
69+
if (fui == null)
7070
{
7171
fui = Create(go);
7272
}
73+
7374
fui.IsFromPool = true;
7475
return fui;
7576
}
@@ -85,7 +86,7 @@ protected override void InitView()
8586
self.Add(this);
8687

8788
var com = GObject.asCom;
88-
if(com != null)
89+
if (com != null)
8990
{
9091
m_MaskLayer = (GGraph)com.GetChild("MaskLayer");
9192
m_TextContent = UIAnnouncementContent.Create(com.GetChild("TextContent"));

Assets/Hotfix/UI/FairyGUI/UILogin/Components/UIAnnouncementContent.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,12 @@ public static UIAnnouncementContent Create(GObject go)
3939
/// </summary>
4040
public static UIAnnouncementContent GetFormPool(GObject go)
4141
{
42-
var fui = go.Get<UIAnnouncementContent>();
43-
if(fui == null)
42+
var fui = go.Get<UIAnnouncementContent>();
43+
if (fui == null)
4444
{
4545
fui = Create(go);
4646
}
47+
4748
fui.IsFromPool = true;
4849
return fui;
4950
}
@@ -59,7 +60,7 @@ protected override void InitView()
5960
self.Add(this);
6061

6162
var com = GObject.asCom;
62-
if(com != null)
63+
if (com != null)
6364
{
6465
m_LabelContent = (GRichTextField)com.GetChild("LabelContent");
6566
}

Assets/Hotfix/UI/FairyGUI/UILogin/Components/UILogin.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,12 @@ public static UILogin Create(GObject go)
6666
/// </summary>
6767
public static UILogin GetFormPool(GObject go)
6868
{
69-
var fui = go.Get<UILogin>();
70-
if(fui == null)
69+
var fui = go.Get<UILogin>();
70+
if (fui == null)
7171
{
7272
fui = Create(go);
7373
}
74+
7475
fui.IsFromPool = true;
7576
return fui;
7677
}
@@ -86,7 +87,7 @@ protected override void InitView()
8687
self.Add(this);
8788

8889
var com = GObject.asCom;
89-
if(com != null)
90+
if (com != null)
9091
{
9192
m_ErrorText = (GTextField)com.GetChild("ErrorText");
9293
m_enter = (GButton)com.GetChild("enter");

Assets/Hotfix/UI/FairyGUI/UILogin/Components/UIPlayerCreate.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,12 @@ public static UIPlayerCreate Create(GObject go)
6565
/// </summary>
6666
public static UIPlayerCreate GetFormPool(GObject go)
6767
{
68-
var fui = go.Get<UIPlayerCreate>();
69-
if(fui == null)
68+
var fui = go.Get<UIPlayerCreate>();
69+
if (fui == null)
7070
{
7171
fui = Create(go);
7272
}
73+
7374
fui.IsFromPool = true;
7475
return fui;
7576
}
@@ -85,7 +86,7 @@ protected override void InitView()
8586
self.Add(this);
8687

8788
var com = GObject.asCom;
88-
if(com != null)
89+
if (com != null)
8990
{
9091
m_UserName = (GTextInput)com.GetChild("UserName");
9192
m_enter = (GButton)com.GetChild("enter");

Assets/Hotfix/UI/FairyGUI/UILogin/Components/UIPlayerList.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,12 @@ public static UIPlayerList Create(GObject go)
6868
/// </summary>
6969
public static UIPlayerList GetFormPool(GObject go)
7070
{
71-
var fui = go.Get<UIPlayerList>();
72-
if(fui == null)
71+
var fui = go.Get<UIPlayerList>();
72+
if (fui == null)
7373
{
7474
fui = Create(go);
7575
}
76+
7677
fui.IsFromPool = true;
7778
return fui;
7879
}
@@ -88,7 +89,7 @@ protected override void InitView()
8889
self.Add(this);
8990

9091
var com = GObject.asCom;
91-
if(com != null)
92+
if (com != null)
9293
{
9394
m_IsSelected = com.GetController("IsSelected");
9495
m_player_list = (GList)com.GetChild("player_list");

Assets/Hotfix/UI/FairyGUI/UILogin/Components/UIPlayerListItem.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,12 @@ public static UIPlayerListItem Create(GObject go)
6666
/// </summary>
6767
public static UIPlayerListItem GetFormPool(GObject go)
6868
{
69-
var fui = go.Get<UIPlayerListItem>();
70-
if(fui == null)
69+
var fui = go.Get<UIPlayerListItem>();
70+
if (fui == null)
7171
{
7272
fui = Create(go);
7373
}
74+
7475
fui.IsFromPool = true;
7576
return fui;
7677
}
@@ -86,7 +87,7 @@ protected override void InitView()
8687
self.Add(this);
8788

8889
var com = GObject.asCom;
89-
if(com != null)
90+
if (com != null)
9091
{
9192
m_icon = (GLoader)com.GetChild("icon");
9293
m_name_text = (GRichTextField)com.GetChild("name_text");

Assets/Hotfix/UI/FairyGUI/UILogin/Components/UIPlayerListItemLoginButton.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,12 @@ public static UIPlayerListItemLoginButton Create(GObject go)
3939
/// </summary>
4040
public static UIPlayerListItemLoginButton GetFormPool(GObject go)
4141
{
42-
var fui = go.Get<UIPlayerListItemLoginButton>();
43-
if(fui == null)
42+
var fui = go.Get<UIPlayerListItemLoginButton>();
43+
if (fui == null)
4444
{
4545
fui = Create(go);
4646
}
47+
4748
fui.IsFromPool = true;
4849
return fui;
4950
}
@@ -59,7 +60,7 @@ protected override void InitView()
5960
self.Add(this);
6061

6162
var com = GObject.asCom;
62-
if(com != null)
63+
if (com != null)
6364
{
6465
m_title = (GRichTextField)com.GetChild("title");
6566
}

0 commit comments

Comments
 (0)