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