cull(engine-cleanup): pass-9 cascade round 1 after UIPanel stub
This commit is contained in:
@@ -26,8 +26,6 @@ public class UIScrollView : MonoBehaviour
|
||||
|
||||
public delegate void OnDragNotification();
|
||||
|
||||
public static BetterList<UIScrollView> list = new BetterList<UIScrollView>();
|
||||
|
||||
public Movement movement;
|
||||
|
||||
public DragEffect dragEffect = DragEffect.MomentumAndSpring;
|
||||
@@ -97,18 +95,6 @@ public class UIScrollView : MonoBehaviour
|
||||
|
||||
public UIPanel panel => mPanel;
|
||||
|
||||
public bool isDragging
|
||||
{
|
||||
get
|
||||
{
|
||||
if (mPressed)
|
||||
{
|
||||
return mDragStarted;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public virtual Bounds bounds
|
||||
{
|
||||
get
|
||||
@@ -495,21 +481,6 @@ public class UIScrollView : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
public void UpdatePosition()
|
||||
{
|
||||
if (!mIgnoreCallbacks && (horizontalScrollBar != null || verticalScrollBar != null))
|
||||
{
|
||||
mIgnoreCallbacks = true;
|
||||
mCalculatedBounds = false;
|
||||
Vector2 pivotOffset = NGUIMath.GetPivotOffset(contentPivot);
|
||||
float x = ((horizontalScrollBar != null) ? horizontalScrollBar.value : pivotOffset.x);
|
||||
float y = ((verticalScrollBar != null) ? verticalScrollBar.value : (1f - pivotOffset.y));
|
||||
SetDragAmount(x, y, updateScrollbars: false);
|
||||
UpdateScrollbars(recalculateBounds: true);
|
||||
mIgnoreCallbacks = false;
|
||||
}
|
||||
}
|
||||
|
||||
public virtual void MoveRelative(Vector3 relative)
|
||||
{
|
||||
mTrans.localPosition += relative;
|
||||
|
||||
Reference in New Issue
Block a user