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.