From 8b2e7aa59f30a03af408eaa2ef573a705cc700f8 Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期二, 03 二月 2026 18:19:45 +0800
Subject: [PATCH] 411 定军阁-客户端 选择天赋加成界面,默认选中项不会重置为第一个,选择天赋确认按钮增加点击间隔
---
Main/System/WarlordPavilion/WarlordPavilionSelectBonusWin.cs | 11 +++++++++--
Main/System/WarlordPavilion/WarlordPavilionManager.cs | 2 ++
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/Main/System/WarlordPavilion/WarlordPavilionManager.cs b/Main/System/WarlordPavilion/WarlordPavilionManager.cs
index 3e36512..8a6f053 100644
--- a/Main/System/WarlordPavilion/WarlordPavilionManager.cs
+++ b/Main/System/WarlordPavilion/WarlordPavilionManager.cs
@@ -133,6 +133,8 @@
SelectAuto = 0;
SelectSetAttrIDList = null;
isAutoNext = true;
+
+ m_SelectIndex = 0;
}
private void PlayerDataRefresh(PlayerDataType type)
diff --git a/Main/System/WarlordPavilion/WarlordPavilionSelectBonusWin.cs b/Main/System/WarlordPavilion/WarlordPavilionSelectBonusWin.cs
index aafe846..3db007b 100644
--- a/Main/System/WarlordPavilion/WarlordPavilionSelectBonusWin.cs
+++ b/Main/System/WarlordPavilion/WarlordPavilionSelectBonusWin.cs
@@ -122,8 +122,15 @@
{
if (manager.SelectEffList.IsNullOrEmpty())
return;
- manager.selectIndex = 0;
- manager.selectEffID = (int)manager.SelectEffList[0];
+ if (manager.selectIndex >= manager.SelectEffList.Length)
+ {
+ manager.selectEffID = (int)manager.SelectEffList[0];
+ }
+ else
+ {
+ manager.selectEffID = (int)manager.SelectEffList[manager.selectIndex];
+ }
+
}
private void Display()
--
Gitblit v1.8.0