summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/UILib/IXUITexture.cs
blob: b4ac5123e8c192d7e05dff9cad395c464484c837 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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);
	}
}