feat(ui): 适配MAA连战次数AUTO模式
This commit is contained in:
@@ -532,7 +532,12 @@ class MaaUserConfig(QConfig):
|
||||
self.Info_MedicineNumb = ConfigItem(
|
||||
"Info", "MedicineNumb", 0, RangeValidator(0, 1024)
|
||||
)
|
||||
self.Info_SeriesNumb = ConfigItem("Info", "SeriesNumb", 1, RangeValidator(1, 6))
|
||||
self.Info_SeriesNumb = OptionsConfigItem(
|
||||
"Info",
|
||||
"SeriesNumb",
|
||||
"1",
|
||||
OptionsValidator(["1000", "6", "5", "4", "3", "2", "1"]),
|
||||
)
|
||||
self.Info_GameId = ConfigItem("Info", "GameId", "-")
|
||||
self.Info_GameId_1 = ConfigItem("Info", "GameId_1", "-")
|
||||
self.Info_GameId_2 = ConfigItem("Info", "GameId_2", "-")
|
||||
@@ -617,7 +622,7 @@ class MaaUserConfig(QConfig):
|
||||
|
||||
class AppConfig(GlobalConfig):
|
||||
|
||||
VERSION = "4.3.6.5"
|
||||
VERSION = "4.3.6.0"
|
||||
|
||||
gameid_refreshed = Signal()
|
||||
PASSWORD_refreshed = Signal()
|
||||
|
||||
@@ -1278,9 +1278,9 @@ class MaaManager(QObject):
|
||||
) # 剩余理智关卡
|
||||
data["Configurations"]["Default"][
|
||||
"MainFunction.Series.Quantity"
|
||||
] = str(
|
||||
user_data["Info"]["SeriesNumb"]
|
||||
) # 连战次数
|
||||
] = user_data["Info"][
|
||||
"SeriesNumb"
|
||||
] # 连战次数
|
||||
data["Configurations"]["Default"][
|
||||
"Penguin.IsDrGrandet"
|
||||
] = "False" # 博朗台模式
|
||||
@@ -1382,9 +1382,9 @@ class MaaManager(QObject):
|
||||
) # 剩余理智关卡
|
||||
data["Configurations"]["Default"][
|
||||
"MainFunction.Series.Quantity"
|
||||
] = str(
|
||||
user_data["Info"]["SeriesNumb"]
|
||||
) # 连战次数
|
||||
] = user_data["Info"][
|
||||
"SeriesNumb"
|
||||
] # 连战次数
|
||||
data["Configurations"]["Default"][
|
||||
"GUI.UseAlternateStage"
|
||||
] = "True" # 备选关卡
|
||||
|
||||
@@ -1421,15 +1421,16 @@ class MemberManager(QWidget):
|
||||
configItem=self.config.Info_MedicineNumb,
|
||||
parent=self,
|
||||
)
|
||||
self.card_SeriesNumb = SpinBoxSettingCard(
|
||||
self.card_SeriesNumb = ComboBoxSettingCard(
|
||||
icon=FluentIcon.GAME,
|
||||
title="连战次数",
|
||||
content="连战次数较大时建议搭配剩余理智关卡使用",
|
||||
range=(1, 6),
|
||||
texts=["AUTO", "6", "5", "4", "3", "2", "1"],
|
||||
qconfig=self.config,
|
||||
configItem=self.config.Info_SeriesNumb,
|
||||
parent=self,
|
||||
)
|
||||
self.card_SeriesNumb.comboBox.setMinimumWidth(150)
|
||||
self.card_GameId = EditableComboBoxSettingCard(
|
||||
icon=FluentIcon.GAME,
|
||||
title="关卡选择",
|
||||
|
||||
Reference in New Issue
Block a user