uplev xlua

This commit is contained in:
2020-08-05 07:08:47 +08:00
parent 52cc2a59aa
commit b3f98bfda1
298 changed files with 444 additions and 250 deletions

View File

@@ -39,6 +39,7 @@ public class UIScrollView : MonoBehaviour
WhenDragging,
}
[XLua.CSharpCallLua]
public delegate void OnDragNotification ();
/// <summary>
@@ -129,29 +130,35 @@ public class UIScrollView : MonoBehaviour
/// Event callback to trigger when the drag process begins.
/// </summary>
[XLua.CSharpCallLua]
public OnDragNotification onDragStarted;
/// <summary>
/// Event callback to trigger when the drag process finished. Can be used for additional effects, such as centering on some object.
/// </summary>
[XLua.CSharpCallLua]
public OnDragNotification onDragFinished;
/// <summary>
/// Event callback triggered when the scroll view is moving as a result of momentum in between of OnDragFinished and OnStoppedMoving.
/// </summary>
///
///
[XLua.CSharpCallLua]
public OnDragNotification onMomentumMove;
public OnDragNotification onDragmMove;
[XLua.CSharpCallLua]
public OnDragNotification onDragmMove;
/// <summary>
/// Event callback to trigger when the scroll view's movement ends.
/// </summary>
/// <summary>
/// Event callback to trigger when the scroll view's movement ends.
/// </summary>
public OnDragNotification onStoppedMoving;
[XLua.CSharpCallLua]
public OnDragNotification onStoppedMoving;
[XLua.CSharpCallLua]
public OnDragNotification onStartCenterOnChild; // add by chenbin
// Deprecated functionality. Use 'movement' instead.

View File

@@ -122,12 +122,14 @@ public class UIPanel : UIRect
[System.NonSerialized]
public Vector4 drawCallClipRange = new Vector4(0f, 0f, 1f, 1f);
[XLua.CSharpCallLua]
public delegate void OnClippingMoved (UIPanel panel);
/// <summary>
/// Event callback that's triggered when the panel's clip region gets moved.
/// </summary>
[XLua.CSharpCallLua]
public OnClippingMoved onClipMove;
// Clip texture feature contributed by the community: http://www.tasharen.com/forum/index.php?topic=9268.0

View File

@@ -24,8 +24,12 @@
namespace Coolape
{
public delegate void Callback (params object[] objs);
public delegate void Callback<T> (T arg1);
public delegate void Callback<T, U> (T arg1, U arg2);
public delegate void Callback<T, U, V> (T arg1, U arg2, V arg3);
[XLua.CSharpCallLua]
public delegate void Callback (params object[] objs);
[XLua.CSharpCallLua]
public delegate void Callback<T> (T arg1);
[XLua.CSharpCallLua]
public delegate void Callback<T, U> (T arg1, U arg2);
[XLua.CSharpCallLua]
public delegate void Callback<T, U, V> (T arg1, U arg2, V arg3);
}