summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/UILib/IXUISprite.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-27 14:15:08 +0800
committerchai <chaifix@163.com>2021-01-27 14:15:08 +0800
commit1fe4ffba72f56ccc6a89d1896142425c666887d4 (patch)
treee469b6fea9454938d3a26444982be4b25de37103 /Client/Assets/Scripts/UILib/IXUISprite.cs
parent310103405588040c7bc777c802273556343cae92 (diff)
+UILib 反编译
Diffstat (limited to 'Client/Assets/Scripts/UILib/IXUISprite.cs')
-rw-r--r--Client/Assets/Scripts/UILib/IXUISprite.cs68
1 files changed, 68 insertions, 0 deletions
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();
+ }
+}