Skip to content

Commit

Permalink
[更新]1. 更新导出的FUI代码
Browse files Browse the repository at this point in the history
  • Loading branch information
AlianBlank committed Dec 23, 2024
1 parent b7adb70 commit 8437cd1
Show file tree
Hide file tree
Showing 15 changed files with 50 additions and 70 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
/** This is an automatically generated class by FairyGUI. Please do not modify it. **/

#if ENABLE_UI_FAIRYGUI
using FairyGUI;
using FairyGUI.Utils;
using Cysharp.Threading.Tasks;
using GameFrameX.Entity.Runtime;

namespace Hotfix.UI
{
public static partial class FUIPackage {
public static partial class FUIPackage
{
public const string UICommonAvatar = "UICommonAvatar";

}
}
#endif
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
/** This is an automatically generated class by FairyGUI. Please do not modify it. **/

#if ENABLE_UI_FAIRYGUI
using FairyGUI;
using FairyGUI.Utils;
using Cysharp.Threading.Tasks;
using GameFrameX.Entity.Runtime;

namespace Hotfix.UI
{
public static partial class FUIPackage {
public static partial class FUIPackage
{
public const string UILoading = "UILoading";

}
}
#endif
15 changes: 2 additions & 13 deletions Assets/Hotfix/UI/FairyGUI/UILogin/Components/PackageUILogin.cs
Original file line number Diff line number Diff line change
@@ -1,23 +1,12 @@
/** This is an automatically generated class by FairyGUI. Please do not modify it. **/

#if ENABLE_UI_FAIRYGUI
using FairyGUI;
using FairyGUI.Utils;
using Cysharp.Threading.Tasks;
using GameFrameX.Entity.Runtime;

namespace Hotfix.UI
{
public static partial class FUIPackage {
public static partial class FUIPackage
{
public const string UILogin = "UILogin";
public const string UILogin_UIAnnouncement = "ui://UILogin/UIAnnouncement";
public const string UILogin_UIAnnouncementContent = "ui://UILogin/UIAnnouncementContent";
public const string UILogin_UIPlayerList = "ui://UILogin/UIPlayerList";
public const string UILogin_UIPlayerListItem = "ui://UILogin/UIPlayerListItem";
public const string UILogin_UIPlayerListItemLoginButton = "ui://UILogin/UIPlayerListItemLoginButton";
public const string UILogin_UIPlayerCreate = "ui://UILogin/UIPlayerCreate";
public const string UILogin_UILogin = "ui://UILogin/UILogin";

}
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,12 @@ public static UIAnnouncement Create(GObject go)
/// </summary>
public static UIAnnouncement GetFormPool(GObject go)
{
var fui = go.Get<UIAnnouncement>();
if(fui == null)
var fui = go.Get<UIAnnouncement>();
if (fui == null)
{
fui = Create(go);
}

fui.IsFromPool = true;
return fui;
}
Expand All @@ -85,7 +86,7 @@ protected override void InitView()
self.Add(this);

var com = GObject.asCom;
if(com != null)
if (com != null)
{
m_MaskLayer = (GGraph)com.GetChild("MaskLayer");
m_TextContent = UIAnnouncementContent.Create(com.GetChild("TextContent"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@ public static UIAnnouncementContent Create(GObject go)
/// </summary>
public static UIAnnouncementContent GetFormPool(GObject go)
{
var fui = go.Get<UIAnnouncementContent>();
if(fui == null)
var fui = go.Get<UIAnnouncementContent>();
if (fui == null)
{
fui = Create(go);
}

fui.IsFromPool = true;
return fui;
}
Expand All @@ -59,7 +60,7 @@ protected override void InitView()
self.Add(this);

var com = GObject.asCom;
if(com != null)
if (com != null)
{
m_LabelContent = (GRichTextField)com.GetChild("LabelContent");
}
Expand Down
7 changes: 4 additions & 3 deletions Assets/Hotfix/UI/FairyGUI/UILogin/Components/UILogin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,12 @@ public static UILogin Create(GObject go)
/// </summary>
public static UILogin GetFormPool(GObject go)
{
var fui = go.Get<UILogin>();
if(fui == null)
var fui = go.Get<UILogin>();
if (fui == null)
{
fui = Create(go);
}

fui.IsFromPool = true;
return fui;
}
Expand All @@ -86,7 +87,7 @@ protected override void InitView()
self.Add(this);

var com = GObject.asCom;
if(com != null)
if (com != null)
{
m_ErrorText = (GTextField)com.GetChild("ErrorText");
m_enter = (GButton)com.GetChild("enter");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,12 @@ public static UIPlayerCreate Create(GObject go)
/// </summary>
public static UIPlayerCreate GetFormPool(GObject go)
{
var fui = go.Get<UIPlayerCreate>();
if(fui == null)
var fui = go.Get<UIPlayerCreate>();
if (fui == null)
{
fui = Create(go);
}

fui.IsFromPool = true;
return fui;
}
Expand All @@ -85,7 +86,7 @@ protected override void InitView()
self.Add(this);

var com = GObject.asCom;
if(com != null)
if (com != null)
{
m_UserName = (GTextInput)com.GetChild("UserName");
m_enter = (GButton)com.GetChild("enter");
Expand Down
7 changes: 4 additions & 3 deletions Assets/Hotfix/UI/FairyGUI/UILogin/Components/UIPlayerList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,12 @@ public static UIPlayerList Create(GObject go)
/// </summary>
public static UIPlayerList GetFormPool(GObject go)
{
var fui = go.Get<UIPlayerList>();
if(fui == null)
var fui = go.Get<UIPlayerList>();
if (fui == null)
{
fui = Create(go);
}

fui.IsFromPool = true;
return fui;
}
Expand All @@ -88,7 +89,7 @@ protected override void InitView()
self.Add(this);

var com = GObject.asCom;
if(com != null)
if (com != null)
{
m_IsSelected = com.GetController("IsSelected");
m_player_list = (GList)com.GetChild("player_list");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,12 @@ public static UIPlayerListItem Create(GObject go)
/// </summary>
public static UIPlayerListItem GetFormPool(GObject go)
{
var fui = go.Get<UIPlayerListItem>();
if(fui == null)
var fui = go.Get<UIPlayerListItem>();
if (fui == null)
{
fui = Create(go);
}

fui.IsFromPool = true;
return fui;
}
Expand All @@ -86,7 +87,7 @@ protected override void InitView()
self.Add(this);

var com = GObject.asCom;
if(com != null)
if (com != null)
{
m_icon = (GLoader)com.GetChild("icon");
m_name_text = (GRichTextField)com.GetChild("name_text");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@ public static UIPlayerListItemLoginButton Create(GObject go)
/// </summary>
public static UIPlayerListItemLoginButton GetFormPool(GObject go)
{
var fui = go.Get<UIPlayerListItemLoginButton>();
if(fui == null)
var fui = go.Get<UIPlayerListItemLoginButton>();
if (fui == null)
{
fui = Create(go);
}

fui.IsFromPool = true;
return fui;
}
Expand All @@ -59,7 +60,7 @@ protected override void InitView()
self.Add(this);

var com = GObject.asCom;
if(com != null)
if (com != null)
{
m_title = (GRichTextField)com.GetChild("title");
}
Expand Down
9 changes: 2 additions & 7 deletions Assets/Hotfix/UI/FairyGUI/UIMain/Components/PackageUIMain.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
/** This is an automatically generated class by FairyGUI. Please do not modify it. **/

#if ENABLE_UI_FAIRYGUI
using FairyGUI;
using FairyGUI.Utils;
using Cysharp.Threading.Tasks;
using GameFrameX.Entity.Runtime;

namespace Hotfix.UI
{
public static partial class FUIPackage {
public static partial class FUIPackage
{
public const string UIMain = "UIMain";
public const string UIMain_UIMain = "ui://UIMain/UIMain";

}
}
#endif
7 changes: 4 additions & 3 deletions Assets/Hotfix/UI/FairyGUI/UIMain/Components/UIMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,12 @@ public static UIMain Create(GObject go)
/// </summary>
public static UIMain GetFormPool(GObject go)
{
var fui = go.Get<UIMain>();
if(fui == null)
var fui = go.Get<UIMain>();
if (fui == null)
{
fui = Create(go);
}

fui.IsFromPool = true;
return fui;
}
Expand All @@ -87,7 +88,7 @@ protected override void InitView()
self.Add(this);

var com = GObject.asCom;
if(com != null)
if (com != null)
{
m_bg = (GLoader)com.GetChild("bg");
m_bag_button = (GButton)com.GetChild("bag_button");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
/** This is an automatically generated class by FairyGUI. Please do not modify it. **/

#if ENABLE_UI_FAIRYGUI
using FairyGUI;
using FairyGUI.Utils;
using Cysharp.Threading.Tasks;
using GameFrameX.Entity.Runtime;

namespace Unity.Startup
{
public static partial class FUIPackage {
public static partial class FUIPackage
{
public const string UILauncher = "UILauncher";
public const string UILauncher_UILauncher = "ui://UILauncher/UILauncher";
public const string UILauncher_UILauncherUpgrade = "ui://UILauncher/UILauncherUpgrade";

}
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,12 @@ public static UILauncher Create(GObject go)
/// </summary>
public static UILauncher GetFormPool(GObject go)
{
var fui = go.Get<UILauncher>();
if(fui == null)
var fui = go.Get<UILauncher>();
if (fui == null)
{
fui = Create(go);
}

fui.IsFromPool = true;
return fui;
}
Expand All @@ -88,7 +89,7 @@ protected override void InitView()
self.Add(this);

var com = GObject.asCom;
if(com != null)
if (com != null)
{
m_IsUpgrade = com.GetController("IsUpgrade");
m_IsDownload = com.GetController("IsDownload");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@ public static UILauncherUpgrade Create(GObject go)
/// </summary>
public static UILauncherUpgrade GetFormPool(GObject go)
{
var fui = go.Get<UILauncherUpgrade>();
if(fui == null)
var fui = go.Get<UILauncherUpgrade>();
if (fui == null)
{
fui = Create(go);
}

fui.IsFromPool = true;
return fui;
}
Expand All @@ -61,7 +62,7 @@ protected override void InitView()
self.Add(this);

var com = GObject.asCom;
if(com != null)
if (com != null)
{
m_bg = (GGraph)com.GetChild("bg");
m_EnterButton = (GButton)com.GetChild("EnterButton");
Expand Down

0 comments on commit 8437cd1

Please sign in to comment.