diff options
Diffstat (limited to 'Client/Assets/Scripts')
165 files changed, 2443 insertions, 2 deletions
diff --git a/Client/Assets/Scripts/UILib.meta b/Client/Assets/Scripts/UILib.meta new file mode 100644 index 00000000..91a7ab51 --- /dev/null +++ b/Client/Assets/Scripts/UILib.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 6c8aba42f8eb8d34c88bfc3c819cf146 +folderAsset: yes +timeCreated: 1611727446 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/AnimFinishedEventHandler.cs b/Client/Assets/Scripts/UILib/AnimFinishedEventHandler.cs new file mode 100644 index 00000000..d24d0468 --- /dev/null +++ b/Client/Assets/Scripts/UILib/AnimFinishedEventHandler.cs @@ -0,0 +1,6 @@ +using System;
+
+namespace UILib
+{
+ public delegate void AnimFinishedEventHandler();
+}
diff --git a/Client/Assets/Scripts/UILib/AnimFinishedEventHandler.cs.meta b/Client/Assets/Scripts/UILib/AnimFinishedEventHandler.cs.meta new file mode 100644 index 00000000..83587d7b --- /dev/null +++ b/Client/Assets/Scripts/UILib/AnimFinishedEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b4486a9aea86007478634c94a373156e +timeCreated: 1611727665 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/ButtonClickEventHandler.cs b/Client/Assets/Scripts/UILib/ButtonClickEventHandler.cs new file mode 100644 index 00000000..434b5ab2 --- /dev/null +++ b/Client/Assets/Scripts/UILib/ButtonClickEventHandler.cs @@ -0,0 +1,6 @@ +using System;
+
+namespace UILib
+{
+ public delegate bool ButtonClickEventHandler(IXUIButton button);
+}
diff --git a/Client/Assets/Scripts/UILib/ButtonClickEventHandler.cs.meta b/Client/Assets/Scripts/UILib/ButtonClickEventHandler.cs.meta new file mode 100644 index 00000000..deaa342c --- /dev/null +++ b/Client/Assets/Scripts/UILib/ButtonClickEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fe7816e496b02de47a067ce8ed09647d +timeCreated: 1611727668 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/ButtonDragEventHandler.cs b/Client/Assets/Scripts/UILib/ButtonDragEventHandler.cs new file mode 100644 index 00000000..ecdf3ad6 --- /dev/null +++ b/Client/Assets/Scripts/UILib/ButtonDragEventHandler.cs @@ -0,0 +1,7 @@ +using System;
+using UnityEngine;
+
+namespace UILib
+{
+ public delegate void ButtonDragEventHandler(IXUIButton button, Vector2 delta);
+}
diff --git a/Client/Assets/Scripts/UILib/ButtonDragEventHandler.cs.meta b/Client/Assets/Scripts/UILib/ButtonDragEventHandler.cs.meta new file mode 100644 index 00000000..9a8d16c0 --- /dev/null +++ b/Client/Assets/Scripts/UILib/ButtonDragEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: af34ec3672c71de468e795231780820e +timeCreated: 1611727665 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/ButtonPressEventHandler.cs b/Client/Assets/Scripts/UILib/ButtonPressEventHandler.cs new file mode 100644 index 00000000..1d862ac3 --- /dev/null +++ b/Client/Assets/Scripts/UILib/ButtonPressEventHandler.cs @@ -0,0 +1,6 @@ +using System;
+
+namespace UILib
+{
+ public delegate void ButtonPressEventHandler(IXUIButton button, bool state);
+}
diff --git a/Client/Assets/Scripts/UILib/ButtonPressEventHandler.cs.meta b/Client/Assets/Scripts/UILib/ButtonPressEventHandler.cs.meta new file mode 100644 index 00000000..4c5906ff --- /dev/null +++ b/Client/Assets/Scripts/UILib/ButtonPressEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4d1a758a271edfb47b9037e24438da63 +timeCreated: 1611727663 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/CheckBoxOnCheckEventHandler.cs b/Client/Assets/Scripts/UILib/CheckBoxOnCheckEventHandler.cs new file mode 100644 index 00000000..eb402376 --- /dev/null +++ b/Client/Assets/Scripts/UILib/CheckBoxOnCheckEventHandler.cs @@ -0,0 +1,6 @@ +using System;
+
+namespace UILib
+{
+ public delegate bool CheckBoxOnCheckEventHandler(IXUICheckBox iXUICheckBox);
+}
diff --git a/Client/Assets/Scripts/UILib/CheckBoxOnCheckEventHandler.cs.meta b/Client/Assets/Scripts/UILib/CheckBoxOnCheckEventHandler.cs.meta new file mode 100644 index 00000000..61466324 --- /dev/null +++ b/Client/Assets/Scripts/UILib/CheckBoxOnCheckEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e058787b8e8c1d946a54ff34810c5aaf +timeCreated: 1611727667 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/CollectFinishEventHandler.cs b/Client/Assets/Scripts/UILib/CollectFinishEventHandler.cs new file mode 100644 index 00000000..831227a3 --- /dev/null +++ b/Client/Assets/Scripts/UILib/CollectFinishEventHandler.cs @@ -0,0 +1,6 @@ +using System;
+
+namespace UILib
+{
+ public delegate void CollectFinishEventHandler();
+}
diff --git a/Client/Assets/Scripts/UILib/CollectFinishEventHandler.cs.meta b/Client/Assets/Scripts/UILib/CollectFinishEventHandler.cs.meta new file mode 100644 index 00000000..347354c5 --- /dev/null +++ b/Client/Assets/Scripts/UILib/CollectFinishEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 02b36ac94be0a2b429d5a1885348a53b +timeCreated: 1611727660 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/ComboboxClickEventHandler.cs b/Client/Assets/Scripts/UILib/ComboboxClickEventHandler.cs new file mode 100644 index 00000000..5d536cee --- /dev/null +++ b/Client/Assets/Scripts/UILib/ComboboxClickEventHandler.cs @@ -0,0 +1,6 @@ +using System;
+
+namespace UILib
+{
+ public delegate void ComboboxClickEventHandler(int value);
+}
diff --git a/Client/Assets/Scripts/UILib/ComboboxClickEventHandler.cs.meta b/Client/Assets/Scripts/UILib/ComboboxClickEventHandler.cs.meta new file mode 100644 index 00000000..c5355f90 --- /dev/null +++ b/Client/Assets/Scripts/UILib/ComboboxClickEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e998d1d7c9287dc4f8efc2e31590dd50 +timeCreated: 1611727667 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/HyperLinkClickEventHandler.cs b/Client/Assets/Scripts/UILib/HyperLinkClickEventHandler.cs new file mode 100644 index 00000000..3a546563 --- /dev/null +++ b/Client/Assets/Scripts/UILib/HyperLinkClickEventHandler.cs @@ -0,0 +1,6 @@ +using System;
+
+namespace UILib
+{
+ public delegate void HyperLinkClickEventHandler(string param);
+}
diff --git a/Client/Assets/Scripts/UILib/HyperLinkClickEventHandler.cs.meta b/Client/Assets/Scripts/UILib/HyperLinkClickEventHandler.cs.meta new file mode 100644 index 00000000..3f242f60 --- /dev/null +++ b/Client/Assets/Scripts/UILib/HyperLinkClickEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 126b45b3b9c08e641857ea28564c9416 +timeCreated: 1611727661 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IUI3DFollow.cs b/Client/Assets/Scripts/UILib/IUI3DFollow.cs new file mode 100644 index 00000000..9fb90dfa --- /dev/null +++ b/Client/Assets/Scripts/UILib/IUI3DFollow.cs @@ -0,0 +1,10 @@ +using System;
+using UnityEngine;
+
+namespace UILib
+{
+ public interface IUI3DFollow
+ {
+ void SetPos(Vector3 pos);
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IUI3DFollow.cs.meta b/Client/Assets/Scripts/UILib/IUI3DFollow.cs.meta new file mode 100644 index 00000000..8420ded6 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IUI3DFollow.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9f7b155f61181554fa590418e10cee4a +timeCreated: 1611727664 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IUIBloodGrid.cs b/Client/Assets/Scripts/UILib/IUIBloodGrid.cs new file mode 100644 index 00000000..5081e1f4 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IUIBloodGrid.cs @@ -0,0 +1,11 @@ +using System;
+
+namespace UILib
+{
+ public interface IUIBloodGrid : IUIWidget, IUIRect
+ {
+ int MAXHP { get; }
+
+ void SetMAXHP(int maxHp);
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IUIBloodGrid.cs.meta b/Client/Assets/Scripts/UILib/IUIBloodGrid.cs.meta new file mode 100644 index 00000000..be907451 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IUIBloodGrid.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f77f18f9effadaa488619e18126d3bd1 +timeCreated: 1611727667 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IUIDummy.cs b/Client/Assets/Scripts/UILib/IUIDummy.cs new file mode 100644 index 00000000..34c3c491 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IUIDummy.cs @@ -0,0 +1,17 @@ +using System;
+
+namespace UILib
+{
+ public interface IUIDummy : IUIWidget, IUIRect
+ {
+ int RenderQueue { get; }
+
+ RefreshRenderQueueCb RefreshRenderQueue { get; set; }
+
+ int depth { get; set; }
+
+ float alpha { get; set; }
+
+ void Reset();
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IUIDummy.cs.meta b/Client/Assets/Scripts/UILib/IUIDummy.cs.meta new file mode 100644 index 00000000..09205d54 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IUIDummy.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ee0fac63033fe954bb61601f4469f0fd +timeCreated: 1611727667 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IUIPanel.cs b/Client/Assets/Scripts/UILib/IUIPanel.cs new file mode 100644 index 00000000..01a523a3 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IUIPanel.cs @@ -0,0 +1,8 @@ +using System;
+
+namespace UILib
+{
+ public interface IUIPanel : IUIRect
+ {
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IUIPanel.cs.meta b/Client/Assets/Scripts/UILib/IUIPanel.cs.meta new file mode 100644 index 00000000..1906c208 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IUIPanel.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 96f91a537e06ed148bdca53b1dc7f301 +timeCreated: 1611727664 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IUIRect.cs b/Client/Assets/Scripts/UILib/IUIRect.cs new file mode 100644 index 00000000..b5cda034 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IUIRect.cs @@ -0,0 +1,10 @@ +using System;
+using UnityEngine;
+
+namespace UILib
+{
+ public interface IUIRect
+ {
+ Transform transform { get; }
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IUIRect.cs.meta b/Client/Assets/Scripts/UILib/IUIRect.cs.meta new file mode 100644 index 00000000..f656a8f2 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IUIRect.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 98d8ff7067481ac40af370919b164f3f +timeCreated: 1611727664 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IUIWidget.cs b/Client/Assets/Scripts/UILib/IUIWidget.cs new file mode 100644 index 00000000..53f29083 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IUIWidget.cs @@ -0,0 +1,9 @@ +using System;
+
+namespace UILib
+{
+ public interface IUIWidget : IUIRect
+ {
+ IXUIPanel GetPanel();
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IUIWidget.cs.meta b/Client/Assets/Scripts/UILib/IUIWidget.cs.meta new file mode 100644 index 00000000..26ae70ba --- /dev/null +++ b/Client/Assets/Scripts/UILib/IUIWidget.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 53eeb5074132ec941b06169e1383a362 +timeCreated: 1611727663 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXRadarMap.cs b/Client/Assets/Scripts/UILib/IXRadarMap.cs new file mode 100644 index 00000000..a71abb92 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXRadarMap.cs @@ -0,0 +1,11 @@ +using System;
+
+namespace UILib
+{
+ public interface IXRadarMap
+ {
+ void Refresh();
+
+ void SetSite(int pos, float value);
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXRadarMap.cs.meta b/Client/Assets/Scripts/UILib/IXRadarMap.cs.meta new file mode 100644 index 00000000..29fedc53 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXRadarMap.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 75338be2fb7be2143a4ba12363fa5392 +timeCreated: 1611727664 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUIAtlas.cs b/Client/Assets/Scripts/UILib/IXUIAtlas.cs new file mode 100644 index 00000000..5dfd72f9 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIAtlas.cs @@ -0,0 +1,8 @@ +using System;
+
+namespace UILib
+{
+ public interface IXUIAtlas
+ {
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUIAtlas.cs.meta b/Client/Assets/Scripts/UILib/IXUIAtlas.cs.meta new file mode 100644 index 00000000..2df7acc4 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIAtlas.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 52af3f51f1415324e9b7c6724398c839 +timeCreated: 1611727663 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUIBehaviour.cs b/Client/Assets/Scripts/UILib/IXUIBehaviour.cs new file mode 100644 index 00000000..1fb1a8be --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIBehaviour.cs @@ -0,0 +1,11 @@ +using System;
+
+namespace UILib
+{
+ public interface IXUIBehaviour : IXUIObject
+ {
+ IXUIDlg uiDlgInterface { get; }
+
+ IXUIObject[] uiChilds { get; }
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUIBehaviour.cs.meta b/Client/Assets/Scripts/UILib/IXUIBehaviour.cs.meta new file mode 100644 index 00000000..033a900b --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0176cb8674183134b8b09d612a1c0195 +timeCreated: 1611727660 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUIBillBoardCompRef.cs b/Client/Assets/Scripts/UILib/IXUIBillBoardCompRef.cs new file mode 100644 index 00000000..39533c73 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIBillBoardCompRef.cs @@ -0,0 +1,17 @@ +using System;
+
+namespace UILib
+{
+ public interface IXUIBillBoardCompRef
+ {
+ IXUISpecLabelSymbol NameSpecLabelSymbol { get; }
+
+ IXUISpecLabelSymbol GuildSpecLabelSymbol { get; }
+
+ IXUISpecLabelSymbol DesiSpecLabelSymbol { get; }
+
+ IXUIProgress BloodBar { get; }
+
+ IXUIProgress IndureBar { get; }
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUIBillBoardCompRef.cs.meta b/Client/Assets/Scripts/UILib/IXUIBillBoardCompRef.cs.meta new file mode 100644 index 00000000..3c5f7729 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIBillBoardCompRef.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b54bc6764eea0fd4986579c196484ec7 +timeCreated: 1611727665 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUIButton.cs b/Client/Assets/Scripts/UILib/IXUIButton.cs new file mode 100644 index 00000000..9aa19106 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIButton.cs @@ -0,0 +1,45 @@ +using System;
+
+namespace UILib
+{
+ public interface IXUIButton : IXUIObject, IXUICD
+ {
+ int spriteWidth { get; }
+
+ int spriteHeight { get; }
+
+ int spriteDepth { get; set; }
+
+ void SetCaption(string strText);
+
+ void SetEnable(bool bEnable, bool withcollider = false);
+
+ void SetGrey(bool bGrey);
+
+ void SetAlpha(float f);
+
+ void CloseScrollView();
+
+ void RegisterClickEventHandler(ButtonClickEventHandler eventHandler);
+
+ void RegisterPressEventHandler(ButtonPressEventHandler eventHandler);
+
+ void RegisterDragEventHandler(ButtonDragEventHandler eventHandler);
+
+ void SetSpriteWithPrefix(string prefix);
+
+ void SetAudioClip(string name);
+
+ void SetSprites(string normal, string hover, string press);
+
+ ButtonClickEventHandler GetClickEventHandler();
+
+ ButtonPressEventHandler GetPressEventHandler();
+
+ void ResetState();
+
+ void ResetPanel();
+
+ void SetUnavailableCD(int cd);
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUIButton.cs.meta b/Client/Assets/Scripts/UILib/IXUIButton.cs.meta new file mode 100644 index 00000000..3560853b --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIButton.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 407f9607f4e07124da78256ce168a68d +timeCreated: 1611727662 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUICD.cs b/Client/Assets/Scripts/UILib/IXUICD.cs new file mode 100644 index 00000000..d58fea7a --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUICD.cs @@ -0,0 +1,11 @@ +using System;
+
+namespace UILib
+{
+ public interface IXUICD
+ {
+ void SetClickCD(float cd);
+
+ void ResetCD();
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUICD.cs.meta b/Client/Assets/Scripts/UILib/IXUICD.cs.meta new file mode 100644 index 00000000..3c694ff0 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUICD.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4362389cbfbea054eaff4b8aab3ac276 +timeCreated: 1611727662 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUICenterOnClick.cs b/Client/Assets/Scripts/UILib/IXUICenterOnClick.cs new file mode 100644 index 00000000..493d3e0d --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUICenterOnClick.cs @@ -0,0 +1,9 @@ +using System;
+
+namespace UILib
+{
+ public interface IXUICenterOnClick : IXUIObject
+ {
+ void OnClick();
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUICenterOnClick.cs.meta b/Client/Assets/Scripts/UILib/IXUICenterOnClick.cs.meta new file mode 100644 index 00000000..daeb89ea --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUICenterOnClick.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e7a1348fc137fb740876cc8649d8c3a1 +timeCreated: 1611727667 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUICheckBox.cs b/Client/Assets/Scripts/UILib/IXUICheckBox.cs new file mode 100644 index 00000000..94555018 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUICheckBox.cs @@ -0,0 +1,29 @@ +using System;
+
+namespace UILib
+{
+ public interface IXUICheckBox : IXUIObject
+ {
+ bool bChecked { get; set; }
+
+ bool bInstantTween { get; set; }
+
+ int spriteHeight { get; set; }
+
+ int spriteWidth { get; set; }
+
+ void RegisterOnCheckEventHandler(CheckBoxOnCheckEventHandler eventHandler);
+
+ CheckBoxOnCheckEventHandler GetCheckEventHandler();
+
+ void SetEnable(bool bEnable);
+
+ void ForceSetFlag(bool bCheckd);
+
+ void SetAlpha(float f);
+
+ void SetAudioClip(string name);
+
+ void SetGroup(int group);
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUICheckBox.cs.meta b/Client/Assets/Scripts/UILib/IXUICheckBox.cs.meta new file mode 100644 index 00000000..5a2e5073 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUICheckBox.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d6e27c08117a38745bb7538bfee6f24a +timeCreated: 1611727666 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUIComboBox.cs b/Client/Assets/Scripts/UILib/IXUIComboBox.cs new file mode 100644 index 00000000..12b4924d --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIComboBox.cs @@ -0,0 +1,22 @@ +using System;
+using UnityEngine;
+
+namespace UILib
+{
+ public interface IXUIComboBox : IXUIObject
+ {
+ void ModuleInit();
+
+ void AddItem(string text, int value);
+
+ GameObject GetItem(int value);
+
+ void ClearItems();
+
+ bool SelectItem(int value, bool withCallback);
+
+ void RegisterSpriteClickEventHandler(ComboboxClickEventHandler eventHandler);
+
+ void ResetState();
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUIComboBox.cs.meta b/Client/Assets/Scripts/UILib/IXUIComboBox.cs.meta new file mode 100644 index 00000000..00c88a94 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIComboBox.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 87a6ab74a09617548aa9babefc92f2fd +timeCreated: 1611727664 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUIDlg.cs b/Client/Assets/Scripts/UILib/IXUIDlg.cs new file mode 100644 index 00000000..b5e0a64b --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIDlg.cs @@ -0,0 +1,63 @@ +using System;
+
+namespace UILib
+{
+ public interface IXUIDlg
+ {
+ IXUIBehaviour uiBehaviourInterface { get; }
+
+ string fileName { get; }
+
+ int layer { get; }
+
+ int group { get; }
+
+ bool exclusive { get; }
+
+ bool hideMainMenu { get; }
+
+ bool pushstack { get; }
+
+ bool isMainUI { get; }
+
+ bool isHideTutorial { get; }
+
+ bool isHideChat { get; }
+
+ int sysid { get; }
+
+ bool fullscreenui { get; }
+
+ bool needOnTop { get; }
+
+ void OnUpdate();
+
+ void OnPostUpdate();
+
+ void Load();
+
+ void UnLoad(bool bTransfer = false);
+
+ void SetVisiblePure(bool bVisible);
+
+ void SetVisible(bool bVisible, bool bEnableAuto = true);
+
+ bool IsVisible();
+
+ void Reset();
+
+ void SetDepthZ(int nDepthZ);
+
+ bool BindReverse(IXUIBehaviour uiBehaviour);
+
+ void SetAlpha(float a);
+
+ void StackRefresh();
+
+ void LeaveStackTop();
+
+ void SetRelatedVisible(bool bVisible);
+
+ int[] GetTitanBarItems();
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUIDlg.cs.meta b/Client/Assets/Scripts/UILib/IXUIDlg.cs.meta new file mode 100644 index 00000000..d9b215a4 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8636a022efad84144909b1f57b4b6bdf +timeCreated: 1611727664 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUIDragDropItem.cs b/Client/Assets/Scripts/UILib/IXUIDragDropItem.cs new file mode 100644 index 00000000..da8856b3 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIDragDropItem.cs @@ -0,0 +1,24 @@ +using System;
+using UnityEngine;
+
+namespace UILib
+{
+ public interface IXUIDragDropItem : IXUIObject
+ {
+ void RegisterOnStartEventHandler(OnDropStartEventHandler eventHandler);
+
+ void RegisterOnFinishEventHandler(OnDropReleaseEventHandler eventHandler);
+
+ void SetCloneOnDrag(bool cloneOnDrag);
+
+ void SetRestriction(int restriction);
+
+ void SetParent(Transform parent, bool addPanel = false, int depth = 0);
+
+ void SetActive(bool active);
+
+ OnDropStartEventHandler GetStartEventHandler();
+
+ OnDropReleaseEventHandler GetReleaseEventHandler();
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUIDragDropItem.cs.meta b/Client/Assets/Scripts/UILib/IXUIDragDropItem.cs.meta new file mode 100644 index 00000000..6ddfee26 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIDragDropItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1731c3b35793d4144918b8e107cfd5c2 +timeCreated: 1611727661 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUIInput.cs b/Client/Assets/Scripts/UILib/IXUIInput.cs new file mode 100644 index 00000000..15d99e6b --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIInput.cs @@ -0,0 +1,25 @@ +using System;
+
+namespace UILib
+{
+ public interface IXUIInput : IXUIObject
+ {
+ string GetText();
+
+ void SetText(string strText);
+
+ void SetCharacterLimit(int num);
+
+ void SetDefault(string strText);
+
+ string GetDefault();
+
+ void RegisterKeyTriggeredEventHandler(InputKeyTriggeredEventHandler eventHandler);
+
+ void RegisterSubmitEventHandler(InputSubmitEventHandler eventHandler);
+
+ void RegisterChangeEventHandler(InputChangeEventHandler eventHandler);
+
+ void selected(bool value);
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUIInput.cs.meta b/Client/Assets/Scripts/UILib/IXUIInput.cs.meta new file mode 100644 index 00000000..a97b6397 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIInput.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 816cb5521087117418afe212caf849d2 +timeCreated: 1611727664 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUIInterface.cs b/Client/Assets/Scripts/UILib/IXUIInterface.cs new file mode 100644 index 00000000..e80ac9ab --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIInterface.cs @@ -0,0 +1,13 @@ +using System;
+
+namespace UILib
+{
+ public interface IXUIInterface
+ {
+ void ShowUI(string name);
+
+ void HideUI(string name);
+
+ void SetCustomId(string dlgName, string widgetName, uint ID);
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUIInterface.cs.meta b/Client/Assets/Scripts/UILib/IXUIInterface.cs.meta new file mode 100644 index 00000000..96d14ac7 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIInterface.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 881472f6656041a469dcf24d48427aed +timeCreated: 1611727664 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUILabel.cs b/Client/Assets/Scripts/UILib/IXUILabel.cs new file mode 100644 index 00000000..b1ac2ba4 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUILabel.cs @@ -0,0 +1,50 @@ +using System;
+using UnityEngine;
+
+namespace UILib
+{
+ public interface IXUILabel : IXUIObject
+ {
+ float AlphaVar { get; }
+
+ float Alpha { get; set; }
+
+ int spriteWidth { get; set; }
+
+ int spriteHeight { get; }
+
+ int spriteDepth { get; set; }
+
+ int fontSize { get; set; }
+
+ Color GetColor();
+
+ string GetText();
+
+ void SetText(string strText);
+
+ void SetRootAsUIPanel(bool bFlag);
+
+ void SetColor(Color c);
+
+ void SetEffectColor(Color c);
+
+ void SetGradient(bool bEnable, Color top, Color bottom);
+
+ void ToggleGradient(bool bEnable);
+
+ void SetEnabled(bool bEnabled);
+
+ Vector2 GetPrintSize();
+
+ void SetDepthOffset(int d);
+
+ void MakePixelPerfect();
+
+ void RegisterLabelClickEventHandler(LabelClickEventHandler eventHandler);
+
+ void SetIdentity(int i);
+
+ bool HasIdentityChanged(int i);
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUILabel.cs.meta b/Client/Assets/Scripts/UILib/IXUILabel.cs.meta new file mode 100644 index 00000000..60df4579 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUILabel.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 133a89291cdfe724eb0d4db7c4bee743 +timeCreated: 1611727661 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUILabelSymbol.cs b/Client/Assets/Scripts/UILib/IXUILabelSymbol.cs new file mode 100644 index 00000000..ca0113c0 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUILabelSymbol.cs @@ -0,0 +1,33 @@ +using System;
+
+namespace UILib
+{
+ public interface IXUILabelSymbol : IXUIObject
+ {
+ string InputText { set; }
+
+ IXUISprite IBoardSprite { get; }
+
+ void UpdateDepth(int depth);
+
+ void RegisterTeamEventHandler(HyperLinkClickEventHandler eventHandler);
+
+ void RegisterGuildEventHandler(HyperLinkClickEventHandler eventHandler);
+
+ void RegisterDragonGuildEventHandler(HyperLinkClickEventHandler eventHandler);
+
+ void RegisterItemEventHandler(HyperLinkClickEventHandler eventHandler);
+
+ void RegisterNameEventHandler(HyperLinkClickEventHandler eventHandler);
+
+ void RegisterPkEventHandler(HyperLinkClickEventHandler eventHandler);
+
+ void RegisterSpectateEventHandler(HyperLinkClickEventHandler eventHandler);
+
+ void RegisterUIEventHandler(HyperLinkClickEventHandler eventHandler);
+
+ void RegisterDefaultEventHandler(HyperLinkClickEventHandler eventHandler);
+
+ void RegisterSymbolClickHandler(LabelSymbolClickEventHandler eventHandler);
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUILabelSymbol.cs.meta b/Client/Assets/Scripts/UILib/IXUILabelSymbol.cs.meta new file mode 100644 index 00000000..a1b10ddf --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUILabelSymbol.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e3f0018669ff51e41ab8fb7bc916d323 +timeCreated: 1611727667 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUIList.cs b/Client/Assets/Scripts/UILib/IXUIList.cs new file mode 100644 index 00000000..4b3a978b --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIList.cs @@ -0,0 +1,19 @@ +using System;
+
+namespace UILib
+{
+ public interface IXUIList : IXUIObject
+ {
+ void Refresh();
+
+ void CloseList();
+
+ void SetAnimateSmooth(bool b);
+
+ void RegisterRepositionHandle(OnAfterRepostion reposition);
+
+ IUIRect GetParentUIRect();
+
+ IUIPanel GetParentPanel();
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUIList.cs.meta b/Client/Assets/Scripts/UILib/IXUIList.cs.meta new file mode 100644 index 00000000..e8ea30d8 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 09bbcef9e01053d488c7cc8b2019cd38 +timeCreated: 1611727661 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUIListItem.cs b/Client/Assets/Scripts/UILib/IXUIListItem.cs new file mode 100644 index 00000000..7ad215be --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIListItem.cs @@ -0,0 +1,30 @@ +using System;
+using UnityEngine;
+
+namespace UILib
+{
+ public interface IXUIListItem : IXUIObject
+ {
+ uint id { get; set; }
+
+ int Index { get; }
+
+ void SetIconSprite(string strSprite);
+
+ void SetIconSprite(string strSprite, string strAtlas);
+
+ void SetIconTexture(string strTexture);
+
+ void SetTip(string strTip);
+
+ void SetColor(Color color);
+
+ bool SetText(uint unIndex, string strText);
+
+ void SetEnable(bool bEnable);
+
+ void SetEnableSelect(bool bEnable);
+
+ void Clear();
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUIListItem.cs.meta b/Client/Assets/Scripts/UILib/IXUIListItem.cs.meta new file mode 100644 index 00000000..4a15a018 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIListItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 51947b811d447754aac5c80a427b264a +timeCreated: 1611727663 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUILongPress.cs b/Client/Assets/Scripts/UILib/IXUILongPress.cs new file mode 100644 index 00000000..74e37d4b --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUILongPress.cs @@ -0,0 +1,9 @@ +using System;
+
+namespace UILib
+{
+ public interface IXUILongPress : IXUIObject
+ {
+ void RegisterSpriteLongPressEventHandler(SpriteClickEventHandler eventHandler);
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUILongPress.cs.meta b/Client/Assets/Scripts/UILib/IXUILongPress.cs.meta new file mode 100644 index 00000000..d03168d0 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUILongPress.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 447a2ff2d93149b478ce065c4d3d857f +timeCreated: 1611727663 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUIObject.cs b/Client/Assets/Scripts/UILib/IXUIObject.cs new file mode 100644 index 00000000..d0a39b10 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIObject.cs @@ -0,0 +1,26 @@ +using System;
+using UnityEngine;
+
+namespace UILib
+{
+ public interface IXUIObject
+ {
+ GameObject gameObject { get; }
+
+ IXUIObject parent { get; set; }
+
+ ulong ID { get; set; }
+
+ bool Exculsive { get; set; }
+
+ IXUIObject GetUIObject(string strName);
+
+ bool IsVisible();
+
+ void SetVisible(bool bVisible);
+
+ void OnFocus();
+
+ void Highlight(bool bTrue);
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUIObject.cs.meta b/Client/Assets/Scripts/UILib/IXUIObject.cs.meta new file mode 100644 index 00000000..d3d5c71a --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIObject.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d4e8f65ed63d9a14995bad61d7bf79a7 +timeCreated: 1611727666 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUIPanel.cs b/Client/Assets/Scripts/UILib/IXUIPanel.cs new file mode 100644 index 00000000..43e4d8a7 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIPanel.cs @@ -0,0 +1,32 @@ +using System;
+using UnityEngine;
+
+namespace UILib
+{
+ public interface IXUIPanel : IXUIObject
+ {
+ Vector2 offset { get; set; }
+
+ Vector2 softness { get; set; }
+
+ Vector4 ClipRange { get; set; }
+
+ Action onMoveDel { get; set; }
+
+ Component UIComponent { get; }
+
+ void SetSize(float width, float height);
+
+ void SetCenter(float width, float height);
+
+ void SetAlpha(float a);
+
+ float GetAlpha();
+
+ void SetDepth(int d);
+
+ int GetDepth();
+
+ Vector4 GetBaseRect();
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUIPanel.cs.meta b/Client/Assets/Scripts/UILib/IXUIPanel.cs.meta new file mode 100644 index 00000000..4fceaed7 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIPanel.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e68fe60abcd270c4fb4c1d1a886e774d +timeCreated: 1611727667 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUIPlayTweenGroup.cs b/Client/Assets/Scripts/UILib/IXUIPlayTweenGroup.cs new file mode 100644 index 00000000..fede3915 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIPlayTweenGroup.cs @@ -0,0 +1,13 @@ +using System;
+
+namespace UILib
+{
+ public interface IXUIPlayTweenGroup
+ {
+ void PlayTween(bool bForward);
+
+ void ResetTween(bool bForward);
+
+ void StopTween();
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUIPlayTweenGroup.cs.meta b/Client/Assets/Scripts/UILib/IXUIPlayTweenGroup.cs.meta new file mode 100644 index 00000000..dbd79a80 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIPlayTweenGroup.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1602689e3023e0e4c86bb7da7b21f7f0 +timeCreated: 1611727661 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUIPopupList.cs b/Client/Assets/Scripts/UILib/IXUIPopupList.cs new file mode 100644 index 00000000..1f656cee --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIPopupList.cs @@ -0,0 +1,14 @@ +using System;
+using System.Collections.Generic;
+
+namespace UILib
+{
+ public interface IXUIPopupList : IXUIObject
+ {
+ string value { get; set; }
+
+ int currentIndex { get; set; }
+
+ void SetOptionList(List<string> options);
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUIPopupList.cs.meta b/Client/Assets/Scripts/UILib/IXUIPopupList.cs.meta new file mode 100644 index 00000000..1524a436 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIPopupList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d6f2417cb779adc4c9b178ba8a7a3469 +timeCreated: 1611727666 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUIProgress.cs b/Client/Assets/Scripts/UILib/IXUIProgress.cs new file mode 100644 index 00000000..09c8431c --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIProgress.cs @@ -0,0 +1,24 @@ +using System;
+using UnityEngine;
+
+namespace UILib
+{
+ public interface IXUIProgress : IXUIObject
+ {
+ float value { get; set; }
+
+ int width { get; set; }
+
+ GameObject foreground { get; }
+
+ void SetValueWithAnimation(float value);
+
+ void SetTotalSection(uint section);
+
+ void SetDepthOffset(int d);
+
+ void SetForegroundColor(Color c);
+
+ void ForceUpdate();
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUIProgress.cs.meta b/Client/Assets/Scripts/UILib/IXUIProgress.cs.meta new file mode 100644 index 00000000..75dae2d8 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIProgress.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4ed4048cec8cef54a8beb3eadf915ef3 +timeCreated: 1611727663 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUIScrollBar.cs b/Client/Assets/Scripts/UILib/IXUIScrollBar.cs new file mode 100644 index 00000000..9c4f0b1c --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIScrollBar.cs @@ -0,0 +1,15 @@ +using System;
+
+namespace UILib
+{
+ public interface IXUIScrollBar
+ {
+ float value { get; set; }
+
+ float size { get; set; }
+
+ void RegisterScrollBarChangeEventHandler(ScrollBarChangeEventHandler eventHandler);
+
+ void RegisterScrollBarDragFinishedEventHandler(ScrollBarDragFinishedEventHandler eventHandler);
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUIScrollBar.cs.meta b/Client/Assets/Scripts/UILib/IXUIScrollBar.cs.meta new file mode 100644 index 00000000..5aa08da3 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIScrollBar.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 53d4590e4d9dc83429cf53e362339851 +timeCreated: 1611727663 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUIScrollView.cs b/Client/Assets/Scripts/UILib/IXUIScrollView.cs new file mode 100644 index 00000000..0d83961a --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIScrollView.cs @@ -0,0 +1,30 @@ +using System;
+using UnityEngine;
+
+namespace UILib
+{
+ public interface IXUIScrollView : IXUIObject
+ {
+ void UpdatePosition();
+
+ void ResetPosition();
+
+ void SetPosition(float pos);
+
+ void SetDragPositionX(float pos);
+
+ void SetCustomMovement(Vector2 movement);
+
+ void SetDragFinishDelegate(Delegate func);
+
+ void SetAutoMove(float from, float to, float moveSpeed);
+
+ bool RestrictWithinBounds(bool instant);
+
+ void MoveAbsolute(Vector3 absolute);
+
+ void MoveRelative(Vector3 relative);
+
+ void NeedRecalcBounds();
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUIScrollView.cs.meta b/Client/Assets/Scripts/UILib/IXUIScrollView.cs.meta new file mode 100644 index 00000000..d9f29c1e --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIScrollView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 349eef83ecad8f64697f22658fa64f5a +timeCreated: 1611727662 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUISimpleList.cs b/Client/Assets/Scripts/UILib/IXUISimpleList.cs new file mode 100644 index 00000000..c33043e4 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUISimpleList.cs @@ -0,0 +1,9 @@ +using System;
+
+namespace UILib
+{
+ public interface IXUISimpleList : IXUIObject
+ {
+ void Refresh();
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUISimpleList.cs.meta b/Client/Assets/Scripts/UILib/IXUISimpleList.cs.meta new file mode 100644 index 00000000..140ecfaf --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUISimpleList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3fb557704bc81ba47b03bbdbaaacb78e +timeCreated: 1611727662 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUISlider.cs b/Client/Assets/Scripts/UILib/IXUISlider.cs new file mode 100644 index 00000000..8c1b5b71 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUISlider.cs @@ -0,0 +1,13 @@ +using System;
+
+namespace UILib
+{
+ public interface IXUISlider : IXUIObject
+ {
+ float Value { get; set; }
+
+ void RegisterValueChangeEventHandler(SliderValueChangeEventHandler eventHandler);
+
+ void RegisterClickEventHandler(SliderClickEventHandler eventHandler);
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUISlider.cs.meta b/Client/Assets/Scripts/UILib/IXUISlider.cs.meta new file mode 100644 index 00000000..c9290c57 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUISlider.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1a4618e1289032a44b4f4ec98b00044a +timeCreated: 1611727662 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUISpecLabelSymbol.cs b/Client/Assets/Scripts/UILib/IXUISpecLabelSymbol.cs new file mode 100644 index 00000000..8f1a95c2 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUISpecLabelSymbol.cs @@ -0,0 +1,25 @@ +using System;
+using System.Collections.Generic;
+using UnityEngine;
+
+namespace UILib
+{
+ public interface IXUISpecLabelSymbol : IXUIObject
+ {
+ IXUILabel Label { get; }
+
+ IXUISprite Board { get; }
+
+ IXUISprite[] SpriteList { get; }
+
+ void SetColor(Color color);
+
+ Color GetColor();
+
+ void SetInputText(List<string> sprite);
+
+ void Copy(IXUISpecLabelSymbol other);
+
+ void SetSpriteVisibleFalse(int index);
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUISpecLabelSymbol.cs.meta b/Client/Assets/Scripts/UILib/IXUISpecLabelSymbol.cs.meta new file mode 100644 index 00000000..4d878d70 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUISpecLabelSymbol.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d9a3e3b0fdbb36a4094871191bae3b1a +timeCreated: 1611727666 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUISprite.cs b/Client/Assets/Scripts/UILib/IXUISprite.cs new file mode 100644 index 00000000..f59ad001 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUISprite.cs @@ -0,0 +1,68 @@ +using System;
+using UnityEngine;
+
+namespace UILib
+{
+ public interface IXUISprite : IXUIObject, IUIWidget, IUIRect, IXUICD
+ {
+ IXUIAtlas uiAtlas { get; }
+
+ string spriteName { get; set; }
+
+ int spriteWidth { get; set; }
+
+ int spriteHeight { get; set; }
+
+ int spriteDepth { get; set; }
+
+ string atlasPath { get; }
+
+ Vector4 drawRegion { get; set; }
+
+ void SetAlpha(float alpha);
+
+ float GetAlpha();
+
+ bool SetSprite(string strSprite, string strAtlas, bool fullAtlasName = false);
+
+ bool SetSprite(string strSprite);
+
+ void SetEnabled(bool bEnabled);
+
+ void SetGrey(bool bGrey);
+
+ void SetColor(Color c);
+
+ void SetAudioClip(string name);
+
+ void CloseScrollView();
+
+ void MakePixelPerfect();
+
+ void RegisterSpriteClickEventHandler(SpriteClickEventHandler eventHandler);
+
+ void RegisterSpritePressEventHandler(SpritePressEventHandler eventHandler);
+
+ void RegisterSpriteDragEventHandler(SpriteDragEventHandler eventHandler);
+
+ void SetRootAsUIPanel(bool bFlag);
+
+ void SetFillAmount(float val);
+
+ void SetFlipHorizontal(bool bValue);
+
+ void SetFlipVertical(bool bValue);
+
+ void ResetAnimationAndPlay();
+
+ SpriteClickEventHandler GetSpriteClickHandler();
+
+ SpritePressEventHandler GetSpritePressHandler();
+
+ void ResetPanel();
+
+ void UpdateAnchors();
+
+ bool IsEnabled();
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUISprite.cs.meta b/Client/Assets/Scripts/UILib/IXUISprite.cs.meta new file mode 100644 index 00000000..aba50706 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUISprite.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0639a2b0146754b45ae4909bbb58e390 +timeCreated: 1611727661 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUISpriteAnimation.cs b/Client/Assets/Scripts/UILib/IXUISpriteAnimation.cs new file mode 100644 index 00000000..45c8e13f --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUISpriteAnimation.cs @@ -0,0 +1,21 @@ +using System;
+
+namespace UILib
+{
+ public interface IXUISpriteAnimation : IXUIObject
+ {
+ void SetNamePrefix(string name);
+
+ void SetNamePrefix(string atlas, string name);
+
+ void SetFrameRate(int rate);
+
+ void Reset();
+
+ void StopAndReset();
+
+ void RegisterFinishCallback(SpriteAnimationFinishCallback callback);
+
+ void MakePixelPerfect();
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUISpriteAnimation.cs.meta b/Client/Assets/Scripts/UILib/IXUISpriteAnimation.cs.meta new file mode 100644 index 00000000..f5a7641e --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUISpriteAnimation.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3e006bf84f2800c4f9f3a48358842c95 +timeCreated: 1611727662 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUISthCollector.cs b/Client/Assets/Scripts/UILib/IXUISthCollector.cs new file mode 100644 index 00000000..8059dabc --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUISthCollector.cs @@ -0,0 +1,21 @@ +using System;
+using System.Collections.Generic;
+using UnityEngine;
+
+namespace UILib
+{
+ public interface IXUISthCollector : IXUIObject
+ {
+ void SetPosition(Vector3 srcGlobalPos, Vector3 desGlobalPos);
+
+ void SetSth(string name);
+
+ void SetSth(List<GameObject> goes);
+
+ void Emit();
+
+ void RegisterSthArrivedEventHandler(SthArrivedEventHandler eventHandler);
+
+ void RegisterCollectFinishEventHandler(CollectFinishEventHandler eventHandler);
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUISthCollector.cs.meta b/Client/Assets/Scripts/UILib/IXUISthCollector.cs.meta new file mode 100644 index 00000000..61b2b00c --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUISthCollector.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5f5f8cc1a635f8443be6d09273a1606c +timeCreated: 1611727663 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUITable.cs b/Client/Assets/Scripts/UILib/IXUITable.cs new file mode 100644 index 00000000..b2b8a7dd --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUITable.cs @@ -0,0 +1,13 @@ +using System;
+
+namespace UILib
+{
+ public interface IXUITable
+ {
+ void RePositionNow();
+
+ void RePositionOnlyOneLevel();
+
+ void Reposition();
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUITable.cs.meta b/Client/Assets/Scripts/UILib/IXUITable.cs.meta new file mode 100644 index 00000000..70a13863 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUITable.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ed7234d49d139a74095b521fac4ac86c +timeCreated: 1611727667 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUITextList.cs b/Client/Assets/Scripts/UILib/IXUITextList.cs new file mode 100644 index 00000000..e38806c3 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUITextList.cs @@ -0,0 +1,11 @@ +using System;
+
+namespace UILib
+{
+ public interface IXUITextList : IXUIObject
+ {
+ void Clear();
+
+ void Add(string text);
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUITextList.cs.meta b/Client/Assets/Scripts/UILib/IXUITextList.cs.meta new file mode 100644 index 00000000..50fceea1 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUITextList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a194430b9f170464485c1eb9c0ae0d95 +timeCreated: 1611727664 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUITexture.cs b/Client/Assets/Scripts/UILib/IXUITexture.cs new file mode 100644 index 00000000..b4ac5123 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUITexture.cs @@ -0,0 +1,38 @@ +using System;
+using UnityEngine;
+
+namespace UILib
+{
+ public interface IXUITexture : IXUIObject
+ {
+ int spriteWidth { get; set; }
+
+ int spriteHeight { get; set; }
+
+ int spriteDepth { get; set; }
+
+ int aspectRatioSource { get; set; }
+
+ void SetTexturePath(string texPath);
+
+ void SetRuntimeTex(Texture tex, bool autoDestroy = true);
+
+ void SetUVRect(Rect rect);
+
+ void RegisterLabelClickEventHandler(TextureClickEventHandler eventHandler);
+
+ void SetEnabled(bool bEnabled);
+
+ void SetColor(Color color);
+
+ void SetAlpha(float alpha);
+
+ void MakePixelPerfect();
+
+ TextureClickEventHandler GetTextureClickHandler();
+
+ void CloseScrollView();
+
+ void SetClickCD(float cd);
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUITexture.cs.meta b/Client/Assets/Scripts/UILib/IXUITexture.cs.meta new file mode 100644 index 00000000..df494d09 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUITexture.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d83a675a17cb23445bd00f0a0598d448 +timeCreated: 1611727666 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUITool.cs b/Client/Assets/Scripts/UILib/IXUITool.cs new file mode 100644 index 00000000..a049175f --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUITool.cs @@ -0,0 +1,52 @@ +using System;
+using UnityEngine;
+
+namespace UILib
+{
+ public interface IXUITool
+ {
+ void SetActive(GameObject obj, bool state);
+
+ void SetLayer(GameObject go, int layer);
+
+ void SetUIEventFallThrough(GameObject obj);
+
+ void SetUIGenericEventHandle(GameObject obj);
+
+ void ShowTooltip(string str);
+
+ void RegisterLoadUIAsynEventHandler(LoadUIAsynEventHandler eventHandler);
+
+ Camera GetUICamera();
+
+ void PlayAnim(Animation anim, string strClipName, AnimFinishedEventHandler eventHandler);
+
+ void MarkParentAsChanged(GameObject go);
+
+ void Destroy(UnityEngine.Object obj);
+
+ void SetUIDepthDelta(GameObject go, int delta);
+
+ string GetLocalizedStr(string key);
+
+ Vector2 CalculatePrintedSize(string text);
+
+ void ReleaseAllDrawCall();
+
+ void HideGameObject(GameObject go);
+
+ void ShowGameObject(GameObject go, IXUIPanel panel);
+
+ void ChangePanel(GameObject go, IUIRect parent, IXUIPanel panel);
+
+ void ChangePanel(GameObject go, IUIRect parent, IUIPanel panel);
+
+ void SetRootPanelUpdateFreq(int count);
+
+ void PreLoad(bool load);
+
+ void EnableUILoadingUpdate(bool enable);
+
+ void SetUIOptOption(bool globalMerge, bool selectMerge, bool lowDeviceMerge);
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUITool.cs.meta b/Client/Assets/Scripts/UILib/IXUITool.cs.meta new file mode 100644 index 00000000..54261785 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUITool.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e02d0127cf593384eb4ce96a83772fff +timeCreated: 1611727666 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUITweenTool.cs b/Client/Assets/Scripts/UILib/IXUITweenTool.cs new file mode 100644 index 00000000..77a287ca --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUITweenTool.cs @@ -0,0 +1,40 @@ +using System;
+using UnityEngine;
+
+namespace UILib
+{
+ public interface IXUITweenTool
+ {
+ bool bPlayForward { get; }
+
+ int TweenGroup { get; }
+
+ GameObject gameObject { get; }
+
+ void SetTargetGameObject(GameObject go);
+
+ void PlayTween(bool bForward, float duaration = -1f);
+
+ void ResetTween(bool bForward);
+
+ void ResetTweenByGroup(bool bForward, int group = 0);
+
+ void ResetTweenExceptGroup(bool bForward, int group);
+
+ void ResetTweenByCurGroup(bool bForward);
+
+ void StopTween();
+
+ void StopTweenByGroup(int group = 0);
+
+ void StopTweenExceptGroup(int group);
+
+ void SetPositionTweenPos(int group, Vector3 from, Vector3 to);
+
+ void SetTweenGroup(int group);
+
+ void SetTweenEnabledWhenFinish(bool enabled);
+
+ void RegisterOnFinishEventHandler(OnTweenFinishEventHandler eventHandler);
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUITweenTool.cs.meta b/Client/Assets/Scripts/UILib/IXUITweenTool.cs.meta new file mode 100644 index 00000000..0d1a6923 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUITweenTool.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0e08492e95f65844db78f67d3051b209 +timeCreated: 1611727661 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUITweener.cs b/Client/Assets/Scripts/UILib/IXUITweener.cs new file mode 100644 index 00000000..84c07c96 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUITweener.cs @@ -0,0 +1,9 @@ +using System;
+
+namespace UILib
+{
+ public interface IXUITweener
+ {
+ float Duration { get; }
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUITweener.cs.meta b/Client/Assets/Scripts/UILib/IXUITweener.cs.meta new file mode 100644 index 00000000..6e4a7cfa --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUITweener.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6ed35a07ec26adf4e8dc0832195e2afb +timeCreated: 1611727663 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/IXUIWrapContent.cs b/Client/Assets/Scripts/UILib/IXUIWrapContent.cs new file mode 100644 index 00000000..80514d5b --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIWrapContent.cs @@ -0,0 +1,33 @@ +using System;
+using System.Collections.Generic;
+using UnityEngine;
+
+namespace UILib
+{
+ public interface IXUIWrapContent : IXUIObject
+ {
+ bool enableBounds { get; set; }
+
+ Vector2 itemSize { get; set; }
+
+ int widthDimension { get; set; }
+
+ int heightDimensionMax { get; }
+
+ int maxItemCount { get; }
+
+ void SetContentCount(int num, bool fadeIn = false);
+
+ void SetOffset(int offset);
+
+ void RegisterItemUpdateEventHandler(WrapItemUpdateEventHandler eventHandler);
+
+ void RegisterItemInitEventHandler(WrapItemInitEventHandler eventHandler);
+
+ void InitContent();
+
+ void RefreshAllVisibleContents();
+
+ void GetActiveList(List<GameObject> ret);
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/IXUIWrapContent.cs.meta b/Client/Assets/Scripts/UILib/IXUIWrapContent.cs.meta new file mode 100644 index 00000000..e0a3ca70 --- /dev/null +++ b/Client/Assets/Scripts/UILib/IXUIWrapContent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6b514e48566d1ae41bd14467dbdfb938 +timeCreated: 1611727663 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/InputChangeEventHandler.cs b/Client/Assets/Scripts/UILib/InputChangeEventHandler.cs new file mode 100644 index 00000000..5a85d34d --- /dev/null +++ b/Client/Assets/Scripts/UILib/InputChangeEventHandler.cs @@ -0,0 +1,6 @@ +using System;
+
+namespace UILib
+{
+ public delegate void InputChangeEventHandler(IXUIInput input);
+}
diff --git a/Client/Assets/Scripts/UILib/InputChangeEventHandler.cs.meta b/Client/Assets/Scripts/UILib/InputChangeEventHandler.cs.meta new file mode 100644 index 00000000..ba031930 --- /dev/null +++ b/Client/Assets/Scripts/UILib/InputChangeEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7dbfa7e558a54a34583bc5817891f6e1 +timeCreated: 1611727664 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/InputKeyTriggeredEventHandler.cs b/Client/Assets/Scripts/UILib/InputKeyTriggeredEventHandler.cs new file mode 100644 index 00000000..e438ecb8 --- /dev/null +++ b/Client/Assets/Scripts/UILib/InputKeyTriggeredEventHandler.cs @@ -0,0 +1,7 @@ +using System;
+using UnityEngine;
+
+namespace UILib
+{
+ public delegate void InputKeyTriggeredEventHandler(IXUIInput input, KeyCode key);
+}
diff --git a/Client/Assets/Scripts/UILib/InputKeyTriggeredEventHandler.cs.meta b/Client/Assets/Scripts/UILib/InputKeyTriggeredEventHandler.cs.meta new file mode 100644 index 00000000..5fea0a52 --- /dev/null +++ b/Client/Assets/Scripts/UILib/InputKeyTriggeredEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3521fd3e2a21de046ba7b10338ba791d +timeCreated: 1611727662 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/InputSubmitEventHandler.cs b/Client/Assets/Scripts/UILib/InputSubmitEventHandler.cs new file mode 100644 index 00000000..945fdbba --- /dev/null +++ b/Client/Assets/Scripts/UILib/InputSubmitEventHandler.cs @@ -0,0 +1,6 @@ +using System;
+
+namespace UILib
+{
+ public delegate void InputSubmitEventHandler(IXUIInput input);
+}
diff --git a/Client/Assets/Scripts/UILib/InputSubmitEventHandler.cs.meta b/Client/Assets/Scripts/UILib/InputSubmitEventHandler.cs.meta new file mode 100644 index 00000000..24077a54 --- /dev/null +++ b/Client/Assets/Scripts/UILib/InputSubmitEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 193e16d93acfcca4db0b88de3cf6d4f8 +timeCreated: 1611727661 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/LabelClickEventHandler.cs b/Client/Assets/Scripts/UILib/LabelClickEventHandler.cs new file mode 100644 index 00000000..956a961d --- /dev/null +++ b/Client/Assets/Scripts/UILib/LabelClickEventHandler.cs @@ -0,0 +1,6 @@ +using System;
+
+namespace UILib
+{
+ public delegate void LabelClickEventHandler(IXUILabel uiSprite);
+}
diff --git a/Client/Assets/Scripts/UILib/LabelClickEventHandler.cs.meta b/Client/Assets/Scripts/UILib/LabelClickEventHandler.cs.meta new file mode 100644 index 00000000..8bba4e89 --- /dev/null +++ b/Client/Assets/Scripts/UILib/LabelClickEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fa8c15b84e06e9041b78324f9928ea5b +timeCreated: 1611727668 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/LabelSymbolClickEventHandler.cs b/Client/Assets/Scripts/UILib/LabelSymbolClickEventHandler.cs new file mode 100644 index 00000000..65958d45 --- /dev/null +++ b/Client/Assets/Scripts/UILib/LabelSymbolClickEventHandler.cs @@ -0,0 +1,6 @@ +using System;
+
+namespace UILib
+{
+ public delegate void LabelSymbolClickEventHandler(IXUILabelSymbol symbol);
+}
diff --git a/Client/Assets/Scripts/UILib/LabelSymbolClickEventHandler.cs.meta b/Client/Assets/Scripts/UILib/LabelSymbolClickEventHandler.cs.meta new file mode 100644 index 00000000..ec6f1227 --- /dev/null +++ b/Client/Assets/Scripts/UILib/LabelSymbolClickEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c65284639fdf2d744943a0f5c3f3c9ac +timeCreated: 1611727666 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/ListDoubleClickEventHandler.cs b/Client/Assets/Scripts/UILib/ListDoubleClickEventHandler.cs new file mode 100644 index 00000000..79927dd5 --- /dev/null +++ b/Client/Assets/Scripts/UILib/ListDoubleClickEventHandler.cs @@ -0,0 +1,6 @@ +using System;
+
+namespace UILib
+{
+ public delegate bool ListDoubleClickEventHandler(IXUIListItem uiListItem);
+}
diff --git a/Client/Assets/Scripts/UILib/ListDoubleClickEventHandler.cs.meta b/Client/Assets/Scripts/UILib/ListDoubleClickEventHandler.cs.meta new file mode 100644 index 00000000..3c5c1871 --- /dev/null +++ b/Client/Assets/Scripts/UILib/ListDoubleClickEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2f3e307dc9fb61e46b5d4616ef5d3c74 +timeCreated: 1611727662 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/ListSelectEventHandler.cs b/Client/Assets/Scripts/UILib/ListSelectEventHandler.cs new file mode 100644 index 00000000..9327c349 --- /dev/null +++ b/Client/Assets/Scripts/UILib/ListSelectEventHandler.cs @@ -0,0 +1,6 @@ +using System;
+
+namespace UILib
+{
+ public delegate bool ListSelectEventHandler(IXUIListItem uiListItem);
+}
diff --git a/Client/Assets/Scripts/UILib/ListSelectEventHandler.cs.meta b/Client/Assets/Scripts/UILib/ListSelectEventHandler.cs.meta new file mode 100644 index 00000000..e01d8e89 --- /dev/null +++ b/Client/Assets/Scripts/UILib/ListSelectEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: da30e2cf950a6924ba6ecfc7bdb9037f +timeCreated: 1611727666 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/LoadUIAsynEventHandler.cs b/Client/Assets/Scripts/UILib/LoadUIAsynEventHandler.cs new file mode 100644 index 00000000..d66ca11a --- /dev/null +++ b/Client/Assets/Scripts/UILib/LoadUIAsynEventHandler.cs @@ -0,0 +1,6 @@ +using System;
+
+namespace UILib
+{
+ public delegate void LoadUIAsynEventHandler(string strUIFile, LoadUIFinishedEventHandler eventHandler);
+}
diff --git a/Client/Assets/Scripts/UILib/LoadUIAsynEventHandler.cs.meta b/Client/Assets/Scripts/UILib/LoadUIAsynEventHandler.cs.meta new file mode 100644 index 00000000..0ffbc857 --- /dev/null +++ b/Client/Assets/Scripts/UILib/LoadUIAsynEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ab3d4a04b6a7d62449e9c5b2b3100952 +timeCreated: 1611727665 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/LoadUIFinishedEventHandler.cs b/Client/Assets/Scripts/UILib/LoadUIFinishedEventHandler.cs new file mode 100644 index 00000000..c3c62402 --- /dev/null +++ b/Client/Assets/Scripts/UILib/LoadUIFinishedEventHandler.cs @@ -0,0 +1,6 @@ +using System;
+
+namespace UILib
+{
+ public delegate void LoadUIFinishedEventHandler(string location);
+}
diff --git a/Client/Assets/Scripts/UILib/LoadUIFinishedEventHandler.cs.meta b/Client/Assets/Scripts/UILib/LoadUIFinishedEventHandler.cs.meta new file mode 100644 index 00000000..88490542 --- /dev/null +++ b/Client/Assets/Scripts/UILib/LoadUIFinishedEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bbc952b7c38226545a98bdc51e4c9e7f +timeCreated: 1611727665 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/OnAfterRepostion.cs b/Client/Assets/Scripts/UILib/OnAfterRepostion.cs new file mode 100644 index 00000000..6ed1110b --- /dev/null +++ b/Client/Assets/Scripts/UILib/OnAfterRepostion.cs @@ -0,0 +1,6 @@ +using System;
+
+namespace UILib
+{
+ public delegate void OnAfterRepostion();
+}
diff --git a/Client/Assets/Scripts/UILib/OnAfterRepostion.cs.meta b/Client/Assets/Scripts/UILib/OnAfterRepostion.cs.meta new file mode 100644 index 00000000..b203490a --- /dev/null +++ b/Client/Assets/Scripts/UILib/OnAfterRepostion.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a49f6d459a5698d429990bf1a3e772e7 +timeCreated: 1611727665 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/OnDropReleaseEventHandler.cs b/Client/Assets/Scripts/UILib/OnDropReleaseEventHandler.cs new file mode 100644 index 00000000..17f4c42d --- /dev/null +++ b/Client/Assets/Scripts/UILib/OnDropReleaseEventHandler.cs @@ -0,0 +1,7 @@ +using System;
+using UnityEngine;
+
+namespace UILib
+{
+ public delegate void OnDropReleaseEventHandler(GameObject item, GameObject surface);
+}
diff --git a/Client/Assets/Scripts/UILib/OnDropReleaseEventHandler.cs.meta b/Client/Assets/Scripts/UILib/OnDropReleaseEventHandler.cs.meta new file mode 100644 index 00000000..abbbe241 --- /dev/null +++ b/Client/Assets/Scripts/UILib/OnDropReleaseEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b06c4f7eec21df94cb9733ef2be0cac4 +timeCreated: 1611727665 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/OnDropStartEventHandler.cs b/Client/Assets/Scripts/UILib/OnDropStartEventHandler.cs new file mode 100644 index 00000000..9d76af95 --- /dev/null +++ b/Client/Assets/Scripts/UILib/OnDropStartEventHandler.cs @@ -0,0 +1,7 @@ +using System;
+using UnityEngine;
+
+namespace UILib
+{
+ public delegate void OnDropStartEventHandler(GameObject item);
+}
diff --git a/Client/Assets/Scripts/UILib/OnDropStartEventHandler.cs.meta b/Client/Assets/Scripts/UILib/OnDropStartEventHandler.cs.meta new file mode 100644 index 00000000..b4aa8759 --- /dev/null +++ b/Client/Assets/Scripts/UILib/OnDropStartEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bd5a0ca2dbf16b44486f0ccbf918417d +timeCreated: 1611727666 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/OnTweenFinishEventHandler.cs b/Client/Assets/Scripts/UILib/OnTweenFinishEventHandler.cs new file mode 100644 index 00000000..cb4e09c6 --- /dev/null +++ b/Client/Assets/Scripts/UILib/OnTweenFinishEventHandler.cs @@ -0,0 +1,6 @@ +using System;
+
+namespace UILib
+{
+ public delegate void OnTweenFinishEventHandler(IXUITweenTool tween);
+}
diff --git a/Client/Assets/Scripts/UILib/OnTweenFinishEventHandler.cs.meta b/Client/Assets/Scripts/UILib/OnTweenFinishEventHandler.cs.meta new file mode 100644 index 00000000..8f25dc5c --- /dev/null +++ b/Client/Assets/Scripts/UILib/OnTweenFinishEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d41c6e34e2df93c4fb06e6058aadb010 +timeCreated: 1611727666 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/RefreshRenderQueueCb.cs b/Client/Assets/Scripts/UILib/RefreshRenderQueueCb.cs new file mode 100644 index 00000000..b3b116fa --- /dev/null +++ b/Client/Assets/Scripts/UILib/RefreshRenderQueueCb.cs @@ -0,0 +1,6 @@ +using System;
+
+namespace UILib
+{
+ public delegate void RefreshRenderQueueCb(int rq);
+}
diff --git a/Client/Assets/Scripts/UILib/RefreshRenderQueueCb.cs.meta b/Client/Assets/Scripts/UILib/RefreshRenderQueueCb.cs.meta new file mode 100644 index 00000000..b2bedf72 --- /dev/null +++ b/Client/Assets/Scripts/UILib/RefreshRenderQueueCb.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 347ff20584a09ab4cbdc6a20a4d02143 +timeCreated: 1611727662 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/ScrollBarChangeEventHandler.cs b/Client/Assets/Scripts/UILib/ScrollBarChangeEventHandler.cs new file mode 100644 index 00000000..c1c17e2b --- /dev/null +++ b/Client/Assets/Scripts/UILib/ScrollBarChangeEventHandler.cs @@ -0,0 +1,6 @@ +using System;
+
+namespace UILib
+{
+ public delegate bool ScrollBarChangeEventHandler(IXUIScrollBar iXUIScrollBar);
+}
diff --git a/Client/Assets/Scripts/UILib/ScrollBarChangeEventHandler.cs.meta b/Client/Assets/Scripts/UILib/ScrollBarChangeEventHandler.cs.meta new file mode 100644 index 00000000..72be6607 --- /dev/null +++ b/Client/Assets/Scripts/UILib/ScrollBarChangeEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e48c47829b4cdd046967f102c953a173 +timeCreated: 1611727667 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/ScrollBarDragFinishedEventHandler.cs b/Client/Assets/Scripts/UILib/ScrollBarDragFinishedEventHandler.cs new file mode 100644 index 00000000..41e5917e --- /dev/null +++ b/Client/Assets/Scripts/UILib/ScrollBarDragFinishedEventHandler.cs @@ -0,0 +1,6 @@ +using System;
+
+namespace UILib
+{
+ public delegate bool ScrollBarDragFinishedEventHandler();
+}
diff --git a/Client/Assets/Scripts/UILib/ScrollBarDragFinishedEventHandler.cs.meta b/Client/Assets/Scripts/UILib/ScrollBarDragFinishedEventHandler.cs.meta new file mode 100644 index 00000000..74ed4400 --- /dev/null +++ b/Client/Assets/Scripts/UILib/ScrollBarDragFinishedEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b59cc7401f8aa6b44b7de152344ad9ab +timeCreated: 1611727665 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/SliderClickEventHandler.cs b/Client/Assets/Scripts/UILib/SliderClickEventHandler.cs new file mode 100644 index 00000000..6b25669c --- /dev/null +++ b/Client/Assets/Scripts/UILib/SliderClickEventHandler.cs @@ -0,0 +1,7 @@ +using System;
+using UnityEngine;
+
+namespace UILib
+{
+ public delegate bool SliderClickEventHandler(GameObject go);
+}
diff --git a/Client/Assets/Scripts/UILib/SliderClickEventHandler.cs.meta b/Client/Assets/Scripts/UILib/SliderClickEventHandler.cs.meta new file mode 100644 index 00000000..90e46ba2 --- /dev/null +++ b/Client/Assets/Scripts/UILib/SliderClickEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6c8646e8c7b445c478ca4214870d0181 +timeCreated: 1611727663 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/SliderValueChangeEventHandler.cs b/Client/Assets/Scripts/UILib/SliderValueChangeEventHandler.cs new file mode 100644 index 00000000..3c9738e6 --- /dev/null +++ b/Client/Assets/Scripts/UILib/SliderValueChangeEventHandler.cs @@ -0,0 +1,6 @@ +using System;
+
+namespace UILib
+{
+ public delegate bool SliderValueChangeEventHandler(float val);
+}
diff --git a/Client/Assets/Scripts/UILib/SliderValueChangeEventHandler.cs.meta b/Client/Assets/Scripts/UILib/SliderValueChangeEventHandler.cs.meta new file mode 100644 index 00000000..3c0503d4 --- /dev/null +++ b/Client/Assets/Scripts/UILib/SliderValueChangeEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 41fbdfbf07bd3dd4584750e8fb282f73 +timeCreated: 1611727662 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/SpriteAnimationFinishCallback.cs b/Client/Assets/Scripts/UILib/SpriteAnimationFinishCallback.cs new file mode 100644 index 00000000..e3010739 --- /dev/null +++ b/Client/Assets/Scripts/UILib/SpriteAnimationFinishCallback.cs @@ -0,0 +1,6 @@ +using System;
+
+namespace UILib
+{
+ public delegate void SpriteAnimationFinishCallback(IXUISpriteAnimation iSA);
+}
diff --git a/Client/Assets/Scripts/UILib/SpriteAnimationFinishCallback.cs.meta b/Client/Assets/Scripts/UILib/SpriteAnimationFinishCallback.cs.meta new file mode 100644 index 00000000..44ece7b6 --- /dev/null +++ b/Client/Assets/Scripts/UILib/SpriteAnimationFinishCallback.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f4f2018644ab5044f9ba565b9475b8b5 +timeCreated: 1611727667 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/SpriteClickEventHandler.cs b/Client/Assets/Scripts/UILib/SpriteClickEventHandler.cs new file mode 100644 index 00000000..58728ebf --- /dev/null +++ b/Client/Assets/Scripts/UILib/SpriteClickEventHandler.cs @@ -0,0 +1,6 @@ +using System;
+
+namespace UILib
+{
+ public delegate void SpriteClickEventHandler(IXUISprite uiSprite);
+}
diff --git a/Client/Assets/Scripts/UILib/SpriteClickEventHandler.cs.meta b/Client/Assets/Scripts/UILib/SpriteClickEventHandler.cs.meta new file mode 100644 index 00000000..f509bce8 --- /dev/null +++ b/Client/Assets/Scripts/UILib/SpriteClickEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ebdeeb689dd1ce74bad56941bac9afed +timeCreated: 1611727667 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/SpriteDragEventHandler.cs b/Client/Assets/Scripts/UILib/SpriteDragEventHandler.cs new file mode 100644 index 00000000..8ab764fd --- /dev/null +++ b/Client/Assets/Scripts/UILib/SpriteDragEventHandler.cs @@ -0,0 +1,7 @@ +using System;
+using UnityEngine;
+
+namespace UILib
+{
+ public delegate bool SpriteDragEventHandler(Vector2 delta);
+}
diff --git a/Client/Assets/Scripts/UILib/SpriteDragEventHandler.cs.meta b/Client/Assets/Scripts/UILib/SpriteDragEventHandler.cs.meta new file mode 100644 index 00000000..ec36309e --- /dev/null +++ b/Client/Assets/Scripts/UILib/SpriteDragEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d02a754391b21374292c06d8b0e8b2d3 +timeCreated: 1611727666 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/SpritePressEventHandler.cs b/Client/Assets/Scripts/UILib/SpritePressEventHandler.cs new file mode 100644 index 00000000..6c6f9677 --- /dev/null +++ b/Client/Assets/Scripts/UILib/SpritePressEventHandler.cs @@ -0,0 +1,6 @@ +using System;
+
+namespace UILib
+{
+ public delegate bool SpritePressEventHandler(IXUISprite uiSprite, bool isPressed);
+}
diff --git a/Client/Assets/Scripts/UILib/SpritePressEventHandler.cs.meta b/Client/Assets/Scripts/UILib/SpritePressEventHandler.cs.meta new file mode 100644 index 00000000..b945b27c --- /dev/null +++ b/Client/Assets/Scripts/UILib/SpritePressEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7b957ec8d2adddb4eb53baa70d579b34 +timeCreated: 1611727664 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/SthArrivedEventHandler.cs b/Client/Assets/Scripts/UILib/SthArrivedEventHandler.cs new file mode 100644 index 00000000..97402680 --- /dev/null +++ b/Client/Assets/Scripts/UILib/SthArrivedEventHandler.cs @@ -0,0 +1,6 @@ +using System;
+
+namespace UILib
+{
+ public delegate void SthArrivedEventHandler(int rank);
+}
diff --git a/Client/Assets/Scripts/UILib/SthArrivedEventHandler.cs.meta b/Client/Assets/Scripts/UILib/SthArrivedEventHandler.cs.meta new file mode 100644 index 00000000..3a11d27b --- /dev/null +++ b/Client/Assets/Scripts/UILib/SthArrivedEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a8183872815aa5d40a1e2cdc32350e67 +timeCreated: 1611727665 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/TextureClickEventHandler.cs b/Client/Assets/Scripts/UILib/TextureClickEventHandler.cs new file mode 100644 index 00000000..2c17695d --- /dev/null +++ b/Client/Assets/Scripts/UILib/TextureClickEventHandler.cs @@ -0,0 +1,6 @@ +using System;
+
+namespace UILib
+{
+ public delegate void TextureClickEventHandler(IXUITexture uiSprite);
+}
diff --git a/Client/Assets/Scripts/UILib/TextureClickEventHandler.cs.meta b/Client/Assets/Scripts/UILib/TextureClickEventHandler.cs.meta new file mode 100644 index 00000000..eb8c21dc --- /dev/null +++ b/Client/Assets/Scripts/UILib/TextureClickEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c10dc0c9d4792d842bf44963dea58955 +timeCreated: 1611727666 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/UILib.csproj b/Client/Assets/Scripts/UILib/UILib.csproj new file mode 100644 index 00000000..41ac415e --- /dev/null +++ b/Client/Assets/Scripts/UILib/UILib.csproj @@ -0,0 +1,125 @@ +<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{D0676C0F-5B43-4CED-BE8A-EF5A0228B057}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <RootNamespace>UILib</RootNamespace>
+ <AssemblyName>UILib</AssemblyName>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <PlatformTarget>AnyCPU</PlatformTarget>
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <PlatformTarget>AnyCPU</PlatformTarget>
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System.Core">
+ <HintPath>..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Among Us\Among Us_Data\Managed\System.Core.dll</HintPath>
+ </Reference>
+ <Reference Include="UnityEngine" />
+ </ItemGroup>
+ <ItemGroup>
+ <AppDesigner Include="Properties\" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="AnimFinishedEventHandler.cs" />
+ <Compile Include="ButtonClickEventHandler.cs" />
+ <Compile Include="ButtonDragEventHandler.cs" />
+ <Compile Include="ButtonPressEventHandler.cs" />
+ <Compile Include="CheckBoxOnCheckEventHandler.cs" />
+ <Compile Include="CollectFinishEventHandler.cs" />
+ <Compile Include="ComboboxClickEventHandler.cs" />
+ <Compile Include="HyperLinkClickEventHandler.cs" />
+ <Compile Include="InputChangeEventHandler.cs" />
+ <Compile Include="InputKeyTriggeredEventHandler.cs" />
+ <Compile Include="InputSubmitEventHandler.cs" />
+ <Compile Include="IUI3DFollow.cs" />
+ <Compile Include="IUIBloodGrid.cs" />
+ <Compile Include="IUIDummy.cs" />
+ <Compile Include="IUIPanel.cs" />
+ <Compile Include="IUIRect.cs" />
+ <Compile Include="IUIWidget.cs" />
+ <Compile Include="IXRadarMap.cs" />
+ <Compile Include="IXUIAtlas.cs" />
+ <Compile Include="IXUIBehaviour.cs" />
+ <Compile Include="IXUIBillBoardCompRef.cs" />
+ <Compile Include="IXUIButton.cs" />
+ <Compile Include="IXUICD.cs" />
+ <Compile Include="IXUICenterOnClick.cs" />
+ <Compile Include="IXUICheckBox.cs" />
+ <Compile Include="IXUIComboBox.cs" />
+ <Compile Include="IXUIDlg.cs" />
+ <Compile Include="IXUIDragDropItem.cs" />
+ <Compile Include="IXUIInput.cs" />
+ <Compile Include="IXUIInterface.cs" />
+ <Compile Include="IXUILabel.cs" />
+ <Compile Include="IXUILabelSymbol.cs" />
+ <Compile Include="IXUIList.cs" />
+ <Compile Include="IXUIListItem.cs" />
+ <Compile Include="IXUILongPress.cs" />
+ <Compile Include="IXUIObject.cs" />
+ <Compile Include="IXUIPanel.cs" />
+ <Compile Include="IXUIPlayTweenGroup.cs" />
+ <Compile Include="IXUIPopupList.cs" />
+ <Compile Include="IXUIProgress.cs" />
+ <Compile Include="IXUIScrollBar.cs" />
+ <Compile Include="IXUIScrollView.cs" />
+ <Compile Include="IXUISimpleList.cs" />
+ <Compile Include="IXUISlider.cs" />
+ <Compile Include="IXUISpecLabelSymbol.cs" />
+ <Compile Include="IXUISprite.cs" />
+ <Compile Include="IXUISpriteAnimation.cs" />
+ <Compile Include="IXUISthCollector.cs" />
+ <Compile Include="IXUITable.cs" />
+ <Compile Include="IXUITextList.cs" />
+ <Compile Include="IXUITexture.cs" />
+ <Compile Include="IXUITool.cs" />
+ <Compile Include="IXUITweener.cs" />
+ <Compile Include="IXUITweenTool.cs" />
+ <Compile Include="IXUIWrapContent.cs" />
+ <Compile Include="LabelClickEventHandler.cs" />
+ <Compile Include="LabelSymbolClickEventHandler.cs" />
+ <Compile Include="ListDoubleClickEventHandler.cs" />
+ <Compile Include="ListSelectEventHandler.cs" />
+ <Compile Include="LoadUIAsynEventHandler.cs" />
+ <Compile Include="LoadUIFinishedEventHandler.cs" />
+ <Compile Include="OnAfterRepostion.cs" />
+ <Compile Include="OnDropReleaseEventHandler.cs" />
+ <Compile Include="OnDropStartEventHandler.cs" />
+ <Compile Include="OnTweenFinishEventHandler.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="RefreshRenderQueueCb.cs" />
+ <Compile Include="ScrollBarChangeEventHandler.cs" />
+ <Compile Include="ScrollBarDragFinishedEventHandler.cs" />
+ <Compile Include="SliderClickEventHandler.cs" />
+ <Compile Include="SliderValueChangeEventHandler.cs" />
+ <Compile Include="SpriteAnimationFinishCallback.cs" />
+ <Compile Include="SpriteClickEventHandler.cs" />
+ <Compile Include="SpriteDragEventHandler.cs" />
+ <Compile Include="SpritePressEventHandler.cs" />
+ <Compile Include="SthArrivedEventHandler.cs" />
+ <Compile Include="TextureClickEventHandler.cs" />
+ <Compile Include="WrapItemInitEventHandler.cs" />
+ <Compile Include="WrapItemUpdateEventHandler.cs" />
+ <Compile Include="XUIObjectBase.cs" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+</Project>
\ No newline at end of file diff --git a/Client/Assets/Scripts/UILib/UILib.csproj.meta b/Client/Assets/Scripts/UILib/UILib.csproj.meta new file mode 100644 index 00000000..22890e76 --- /dev/null +++ b/Client/Assets/Scripts/UILib/UILib.csproj.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 041436c3c340b614a9e383c628235782 +timeCreated: 1611727660 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/WrapItemInitEventHandler.cs b/Client/Assets/Scripts/UILib/WrapItemInitEventHandler.cs new file mode 100644 index 00000000..4198ae31 --- /dev/null +++ b/Client/Assets/Scripts/UILib/WrapItemInitEventHandler.cs @@ -0,0 +1,7 @@ +using System;
+using UnityEngine;
+
+namespace UILib
+{
+ public delegate void WrapItemInitEventHandler(Transform itemTransform, int index);
+}
diff --git a/Client/Assets/Scripts/UILib/WrapItemInitEventHandler.cs.meta b/Client/Assets/Scripts/UILib/WrapItemInitEventHandler.cs.meta new file mode 100644 index 00000000..e766f5d7 --- /dev/null +++ b/Client/Assets/Scripts/UILib/WrapItemInitEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3d2f1cf22a6b0ce4599e9889d3ca48a4 +timeCreated: 1611727662 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/WrapItemUpdateEventHandler.cs b/Client/Assets/Scripts/UILib/WrapItemUpdateEventHandler.cs new file mode 100644 index 00000000..d63942ca --- /dev/null +++ b/Client/Assets/Scripts/UILib/WrapItemUpdateEventHandler.cs @@ -0,0 +1,7 @@ +using System;
+using UnityEngine;
+
+namespace UILib
+{
+ public delegate void WrapItemUpdateEventHandler(Transform itemTransform, int index);
+}
diff --git a/Client/Assets/Scripts/UILib/WrapItemUpdateEventHandler.cs.meta b/Client/Assets/Scripts/UILib/WrapItemUpdateEventHandler.cs.meta new file mode 100644 index 00000000..c8ccd741 --- /dev/null +++ b/Client/Assets/Scripts/UILib/WrapItemUpdateEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6ea00be568a038348b688fa79b3400a1 +timeCreated: 1611727663 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/UILib/XUIObjectBase.cs b/Client/Assets/Scripts/UILib/XUIObjectBase.cs new file mode 100644 index 00000000..8744f6bb --- /dev/null +++ b/Client/Assets/Scripts/UILib/XUIObjectBase.cs @@ -0,0 +1,133 @@ +using System;
+using UILib;
+using UnityEngine;
+
+public abstract class XUIObjectBase : MonoBehaviour, IXUIObject
+{
+ public virtual IXUIObject parent
+ {
+ get
+ {
+ return this.m_parent;
+ }
+ set
+ {
+ this.m_parent = value;
+ }
+ }
+
+ public ulong ID
+ {
+ get
+ {
+ return this.m_id;
+ }
+ set
+ {
+ this.m_id = value;
+ }
+ }
+
+ public bool Exculsive
+ {
+ get
+ {
+ return this.m_bExculsive;
+ }
+ set
+ {
+ this.m_bExculsive = value;
+ }
+ }
+
+ private IXUIObject m_parent = null;
+
+ private ulong m_id;
+
+ private bool m_bExculsive = false;
+
+ public bool IsVisible()
+ {
+ return base.gameObject.activeInHierarchy;
+ }
+
+ public virtual void SetVisible(bool bVisible)
+ {
+ base.gameObject.SetActive(bVisible);
+ }
+
+ public virtual void OnFocus()
+ {
+ bool flag = this.parent != null;
+ if (flag)
+ {
+ this.parent.OnFocus();
+ }
+ }
+
+ public IXUIObject GetUIObject(string strName)
+ {
+ Transform transform = base.transform.Find(strName);
+ bool flag = null != transform;
+ IXUIObject result;
+ if (flag)
+ {
+ result = transform.GetComponent<XUIObjectBase>();
+ }
+ else
+ {
+ result = null;
+ }
+ return result;
+ }
+
+ public virtual void Highlight(bool bTrue)
+ {
+ }
+
+ protected virtual void OnPress(bool isPressed)
+ {
+ this.OnFocus();
+ }
+
+ protected virtual void OnDrag(Vector2 delta)
+ {
+ this.OnFocus();
+ }
+
+ public virtual void Init()
+ {
+ }
+
+ protected virtual void OnAwake()
+ {
+ }
+
+ protected virtual void OnStart()
+ {
+ }
+
+ protected virtual void OnUpdate()
+ {
+ }
+
+ private void Awake()
+ {
+ this.OnAwake();
+ }
+
+ private void Start()
+ {
+ this.OnStart();
+ }
+
+
+
+ GameObject IXUIObject.gameObject
+ {
+ get
+ {
+ return base.gameObject;
+ }
+ }
+}
diff --git a/Client/Assets/Scripts/UILib/XUIObjectBase.cs.meta b/Client/Assets/Scripts/UILib/XUIObjectBase.cs.meta new file mode 100644 index 00000000..80c5fb96 --- /dev/null +++ b/Client/Assets/Scripts/UILib/XUIObjectBase.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 190e73679a1e70f40a5afaf4e7e72901 +timeCreated: 1611727661 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XComponentMgr.cs b/Client/Assets/Scripts/XMainClient/XComponentMgr.cs index e690d0c5..9aba5136 100644 --- a/Client/Assets/Scripts/XMainClient/XComponentMgr.cs +++ b/Client/Assets/Scripts/XMainClient/XComponentMgr.cs @@ -8,6 +8,7 @@ namespace XMainClient {
private Dictionary<uint, int> _slots = new Dictionary<uint, int>();
+ // 复用component的池子
private Dictionary<uint, XComponentMgr.ComponentCache> _componentCache = new Dictionary<uint, XComponentMgr.ComponentCache>();
public static int ComponenCreatetCount = 0;
@@ -329,6 +330,7 @@ namespace XMainClient {
XComponent xcomponent = null;
XComponentMgr.ComponentCache componentCache = null;
+ // 先从池子中取
bool flag = this._componentCache.TryGetValue(uuid, out componentCache);
if (flag)
{
@@ -379,6 +381,7 @@ namespace XMainClient bool flag2 = this._componentCache.TryGetValue(c.ID, out componentCache);
if (flag2)
{
+ // 放到池子里
componentCache.componentCache.Enqueue(c);
}
}
diff --git a/Client/Assets/Scripts/XMainClient/XObject.cs b/Client/Assets/Scripts/XMainClient/XObject.cs index 4dfc105f..b82ac51c 100644 --- a/Client/Assets/Scripts/XMainClient/XObject.cs +++ b/Client/Assets/Scripts/XMainClient/XObject.cs @@ -61,6 +61,7 @@ namespace XMainClient return true;
}
+ //销毁、回收对象
public virtual void Uninitilize()
{
bool flag = this.internalIterator != null;
@@ -72,7 +73,7 @@ namespace XMainClient xcomponent.OnDetachFromHost();
this.OnComponentDetached(xcomponent);
this.Components.RemoveAt(i);
- XSingleton<XComponentMgr>.singleton.RemoveComponent(xcomponent);
+ XSingleton<XComponentMgr>.singleton.RemoveComponent(xcomponent); // 回收组件
}
ListPool<XComponent>.Release(this.internalIterator);
this.internalIterator = null;
diff --git a/Client/Assets/Scripts/XMainClient/XStateMachine.cs b/Client/Assets/Scripts/XMainClient/XStateMachine.cs index 0dd73785..50cfda9e 100644 --- a/Client/Assets/Scripts/XMainClient/XStateMachine.cs +++ b/Client/Assets/Scripts/XMainClient/XStateMachine.cs @@ -61,7 +61,7 @@ namespace XMainClient }
}
- public new static readonly uint uuID = XSingleton<XCommon>.singleton.XHash("StateMachine");
+ public new static readonly uint uuID = XCommon.singleton.XHash("StateMachine");
private IXStateTransform _current = null;
diff --git a/Client/Assets/Scripts/XUtliPoolLib/XCommon.cs b/Client/Assets/Scripts/XUtliPoolLib/XCommon.cs index d08dbcbd..7cdd874e 100644 --- a/Client/Assets/Scripts/XUtliPoolLib/XCommon.cs +++ b/Client/Assets/Scripts/XUtliPoolLib/XCommon.cs @@ -66,6 +66,7 @@ namespace XUtliPoolLib this._idx = 5;
}
+ //c 从string生成一个ID
public uint XHash(string str)
{
bool flag = str == null;
|