fix:1、添加缩放和拖曳(未测试版)
This commit is contained in:
@@ -14,6 +14,7 @@ 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));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
/** 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_big : GButton
|
||||
{
|
||||
public Controller state;
|
||||
public GImage bg;
|
||||
public GTextField text;
|
||||
public const string URL = "ui://sjl9teijrsd4g";
|
||||
|
||||
public static btn_big CreateInstance()
|
||||
{
|
||||
return (btn_big)UIPackage.CreateObject("Arrow_game", "btn_big");
|
||||
}
|
||||
|
||||
public override void ConstructFromXML(XML xml)
|
||||
{
|
||||
base.ConstructFromXML(xml);
|
||||
|
||||
state = GetControllerAt(0);
|
||||
bg = (GImage)GetChildAt(0);
|
||||
text = (GTextField)GetChildAt(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: abd26fd11b29a084b93baa0d815ca0e4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -10,13 +10,15 @@ namespace FGUI.Arrow_game
|
||||
public GGraph bg;
|
||||
public GButton btn_menu;
|
||||
public GComponent view_container;
|
||||
public ArrowEnd ArrowEnd;
|
||||
public ArrorPoint point;
|
||||
public GButton btn_close;
|
||||
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 const string URL = "ui://sjl9teijrsd40";
|
||||
|
||||
public static com_arrow_game CreateInstance()
|
||||
@@ -31,13 +33,15 @@ namespace FGUI.Arrow_game
|
||||
bg = (GGraph)GetChildAt(0);
|
||||
btn_menu = (GButton)GetChildAt(1);
|
||||
view_container = (GComponent)GetChildAt(2);
|
||||
ArrowEnd = (ArrowEnd)GetChildAt(3);
|
||||
point = (ArrorPoint)GetChildAt(4);
|
||||
btn_close = (GButton)GetChildAt(6);
|
||||
HeartsPanel = (HeartsPanel)GetChildAt(7);
|
||||
btn_clear = (GButton)GetChildAt(9);
|
||||
btn_hint = (GButton)GetChildAt(10);
|
||||
com_finger = (com_finger)GetChildAt(11);
|
||||
point = (ArrorPoint)GetChildAt(3);
|
||||
btn_close = (GButton)GetChildAt(5);
|
||||
HeartsPanel = (HeartsPanel)GetChildAt(6);
|
||||
btn_clear = (GButton)GetChildAt(8);
|
||||
btn_hint = (GButton)GetChildAt(9);
|
||||
com_finger = (com_finger)GetChildAt(10);
|
||||
btn_big = (btn_big)GetChildAt(11);
|
||||
btn_small = (btn_big)GetChildAt(12);
|
||||
zoomSlide = (GSlider)GetChildAt(13);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user