summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/UILib/IXUITexture.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/UILib/IXUITexture.cs')
-rw-r--r--Client/Assets/Scripts/UILib/IXUITexture.cs38
1 files changed, 38 insertions, 0 deletions
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);
+ }
+}