fix:1、添加主题更换。2、修复bug

This commit is contained in:
2026-06-16 10:22:11 +08:00
parent 13f8d572c4
commit 19efcb09fa
45 changed files with 877 additions and 323 deletions
@@ -14,7 +14,10 @@ namespace FGUI.Arrow_game
UIObjectFactory.SetPackageItemExtension(ArrorPoint.URL, typeof(ArrorPoint));
UIObjectFactory.SetPackageItemExtension(HeartsPanel.URL, typeof(HeartsPanel));
UIObjectFactory.SetPackageItemExtension(com_finger.URL, typeof(com_finger));
UIObjectFactory.SetPackageItemExtension(btn_big.URL, typeof(btn_big));
UIObjectFactory.SetPackageItemExtension(btn_saveingpot.URL, typeof(btn_saveingpot));
UIObjectFactory.SetPackageItemExtension(btn_petty.URL, typeof(btn_petty));
UIObjectFactory.SetPackageItemExtension(btn_green.URL, typeof(btn_green));
UIObjectFactory.SetPackageItemExtension(com_bottom.URL, typeof(com_bottom));
}
}
}
@@ -5,16 +5,15 @@ using FairyGUI.Utils;
namespace FGUI.Arrow_game
{
public partial class btn_big : GButton
public partial class btn_green : GButton
{
public Controller state;
public GImage bg;
public GTextField text;
public const string URL = "ui://sjl9teijrsd4g";
public const string URL = "ui://sjl9teijrto31j";
public static btn_big CreateInstance()
public static btn_green CreateInstance()
{
return (btn_big)UIPackage.CreateObject("Arrow_game", "btn_big");
return (btn_green)UIPackage.CreateObject("Arrow_game", "btn_green");
}
public override void ConstructFromXML(XML xml)
@@ -22,8 +21,7 @@ namespace FGUI.Arrow_game
base.ConstructFromXML(xml);
state = GetControllerAt(0);
bg = (GImage)GetChildAt(0);
text = (GTextField)GetChildAt(1);
text = (GTextField)GetChildAt(2);
}
}
}
@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: abd26fd11b29a084b93baa0d815ca0e4
guid: 49df393f451adc24298d933d840cb2ce
MonoImporter:
externalObjects: {}
serializedVersion: 2
@@ -0,0 +1,27 @@
/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
using FairyGUI;
using FairyGUI.Utils;
namespace FGUI.Arrow_game
{
public partial class btn_petty : GButton
{
public GGroup kuang;
public Transition t0;
public const string URL = "ui://sjl9teijrto31f";
public static btn_petty CreateInstance()
{
return (btn_petty)UIPackage.CreateObject("Arrow_game", "btn_petty");
}
public override void ConstructFromXML(XML xml)
{
base.ConstructFromXML(xml);
kuang = (GGroup)GetChildAt(4);
t0 = GetTransitionAt(0);
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: fa4c32dcaf88f4541a805f3e01b38234
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,27 @@
/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
using FairyGUI;
using FairyGUI.Utils;
namespace FGUI.Arrow_game
{
public partial class btn_saveingpot : GButton
{
public GImage img;
public GTextField lab_time;
public const string URL = "ui://sjl9teijrto31e";
public static btn_saveingpot CreateInstance()
{
return (btn_saveingpot)UIPackage.CreateObject("Arrow_game", "btn_saveingpot");
}
public override void ConstructFromXML(XML xml)
{
base.ConstructFromXML(xml);
img = (GImage)GetChildAt(0);
lab_time = (GTextField)GetChildAt(1);
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 97ae33010cba77f4ea99d559bfa5664e
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -8,20 +8,19 @@ namespace FGUI.Arrow_game
public partial class com_arrow_game : GComponent
{
public Controller mode;
public GButton btn_menu;
public GComponent view_container;
public ArrorPoint point;
public GButton btn_close;
public GComponent com_money;
public HeartsPanel HeartsPanel;
public GButton btn_clear;
public GButton btn_hint;
public com_finger com_finger;
public btn_big btn_big;
public btn_big btn_small;
public GSlider zoomSlide;
public GGraph samll_point;
public GTextField text_level;
public com_bottom com_bottom;
public btn_petty btn_petty;
public btn_saveingpot btn_saveingpot;
public GButton btn_statement;
public GButton btn_signin;
public const string URL = "ui://sjl9teijrsd40";
public static com_arrow_game CreateInstance()
@@ -34,20 +33,19 @@ namespace FGUI.Arrow_game
base.ConstructFromXML(xml);
mode = GetControllerAt(0);
btn_menu = (GButton)GetChildAt(2);
view_container = (GComponent)GetChildAt(3);
point = (ArrorPoint)GetChildAt(4);
btn_close = (GButton)GetChildAt(5);
com_money = (GComponent)GetChildAt(6);
HeartsPanel = (HeartsPanel)GetChildAt(7);
btn_clear = (GButton)GetChildAt(9);
btn_hint = (GButton)GetChildAt(10);
com_finger = (com_finger)GetChildAt(11);
btn_big = (btn_big)GetChildAt(12);
btn_small = (btn_big)GetChildAt(13);
zoomSlide = (GSlider)GetChildAt(14);
samll_point = (GGraph)GetChildAt(15);
text_level = (GTextField)GetChildAt(17);
view_container = (GComponent)GetChildAt(2);
point = (ArrorPoint)GetChildAt(3);
btn_close = (GButton)GetChildAt(4);
com_money = (GComponent)GetChildAt(5);
HeartsPanel = (HeartsPanel)GetChildAt(6);
com_finger = (com_finger)GetChildAt(7);
samll_point = (GGraph)GetChildAt(8);
text_level = (GTextField)GetChildAt(10);
com_bottom = (com_bottom)GetChildAt(12);
btn_petty = (btn_petty)GetChildAt(13);
btn_saveingpot = (btn_saveingpot)GetChildAt(14);
btn_statement = (GButton)GetChildAt(15);
btn_signin = (GButton)GetChildAt(16);
}
}
}
@@ -0,0 +1,33 @@
/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
using FairyGUI;
using FairyGUI.Utils;
namespace FGUI.Arrow_game
{
public partial class com_bottom : GComponent
{
public GButton btn_clear;
public GButton btn_hint;
public GSlider zoomSlide;
public GButton btn_skin;
public GButton btn_setting;
public const string URL = "ui://sjl9teijrto3x";
public static com_bottom CreateInstance()
{
return (com_bottom)UIPackage.CreateObject("Arrow_game", "com_bottom");
}
public override void ConstructFromXML(XML xml)
{
base.ConstructFromXML(xml);
btn_clear = (GButton)GetChildAt(2);
btn_hint = (GButton)GetChildAt(3);
zoomSlide = (GSlider)GetChildAt(4);
btn_skin = (GButton)GetChildAt(9);
btn_setting = (GButton)GetChildAt(10);
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 0a31f5be9910fb94da64f7e655d673f6
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: