From bface07b5ea879e40f5be8d082bfa77fb873b0bd Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期四, 15 一月 2026 18:07:44 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts
---
Main/System/Store/StoreWin.cs | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/Main/System/Store/StoreWin.cs b/Main/System/Store/StoreWin.cs
index 240d780..111d50e 100644
--- a/Main/System/Store/StoreWin.cs
+++ b/Main/System/Store/StoreWin.cs
@@ -85,6 +85,7 @@
}
scroller.Refresh();
+ int jumpIndex = -1;
var list = StoreModel.Instance.storeTypeDict[(int)StoreModel.Instance.selectStoreFuncType];
for (int i = 0; i < list.Count; i++)
{
@@ -92,9 +93,18 @@
{
scroller.AddCell(ScrollerDataType.Header, i);
}
+ if (jumpIndex == -1 && list[i].shopId == StoreModel.Instance.jumpShopID)
+ {
+ jumpIndex = i / 3;
+ }
}
scroller.Restart();
scroller.lockType = EnhanceLockType.KeepVertical;
+ if (StoreModel.Instance.jumpShopID != 0)
+ {
+ scroller.JumpIndex(jumpIndex);
+ StoreModel.Instance.jumpShopID = 0;
+ }
}
--
Gitblit v1.8.0