Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 25 additions & 4 deletions MeoAsstMac/Configuration Views/FightSettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,30 @@ struct FightSettingsView: View {
Picker("关卡选择", selection: $config.stage) {
Text("当前/上次").tag("")
Text("1-7").tag("1-7")
Text("CE-6").tag("CE-6")
Text("AP-5").tag("AP-5")
Text("CA-5").tag("CA-5")

// 根据星期几显示不同的关卡
let weekday = Calendar.current.component(.weekday, from: Date()) // 1=周日, 2=周一...7=周六

// CE-6: 周二、四、六、日 (2,4,6,1)
if [1,2,4,6].contains(weekday) {
Text("CE-6").tag("CE-6")
}

// AP-5: 周一、四、六、日 (2,5,7,1)
if [1,2,5,7].contains(weekday) {
Text("AP-5").tag("AP-5")
}

// 新增 SK-5: 周一、三、五、六 (2,4,6,7)
if [2,4,6,7].contains(weekday) {
Text("SK-5").tag("SK-5")
}

// CA-5: 周二、三、五、日 (3,5,7,1)
if [1,3,5,7].contains(weekday) {
Text("CA-5").tag("CA-5")
}

Text("LS-6").tag("LS-6")
Text("剿灭模式").tag("Annihilation")
}
Expand Down Expand Up @@ -201,7 +222,7 @@ struct FightSettingsView: View {
}

private var stageNotListed: Bool { !listedStages.contains(config.stage) }
private let listedStages = ["", "1-7", "CE-6", "AP-5", "CA-5", "LS-6", "Annihilation"]
private let listedStages = ["", "1-7", "CE-6", "AP-5", "CA-5", "LS-6", "SK-5", "Annihilation"]
}

struct FightSettingsView_Previews: PreviewProvider {
Expand Down
17 changes: 14 additions & 3 deletions Resources/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -1330,6 +1330,17 @@
}
}
},
"SK-5" : {
"extractionState" : "manual",
"localizations" : {
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "碳-5"
}
}
}
},
"SSSGamePass" : {
"localizations" : {
"ko" : {
Expand Down Expand Up @@ -2643,9 +2654,6 @@
}
}
}
},
"繁中服(txwy)" : {

},
"组装批次数:" : {
"localizations" : {
Expand All @@ -2666,6 +2674,9 @@
}
}
}
},
"繁中服(txwy)" : {

},
"自动下载更新" : {
"localizations" : {
Expand Down