cull(engine-cleanup): pass-9 cascade round 1 after UIPanel stub

This commit is contained in:
gamer147
2026-07-03 23:29:52 -04:00
parent 853b060f02
commit 36bd90c2b3
12 changed files with 2 additions and 551 deletions

View File

@@ -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;