mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-26 18:20:42 +00:00
Fix: [CN] No default values in GUI, due to wrong dictionary name
This commit is contained in:
parent
07d404077f
commit
2685a81d05
@ -6,7 +6,7 @@ import shutil
|
|||||||
from gooey import Gooey, GooeyParser
|
from gooey import Gooey, GooeyParser
|
||||||
|
|
||||||
from alas import AzurLaneAutoScript
|
from alas import AzurLaneAutoScript
|
||||||
from module.config.dictionary import dic_true_eng_to_eng, dic_eng_to_chi
|
from module.config.dictionary import dic_true_eng_to_eng, dic_eng_to_true_eng
|
||||||
from module.logger import logger, pyw_name
|
from module.logger import logger, pyw_name
|
||||||
|
|
||||||
|
|
||||||
@ -79,14 +79,14 @@ def main(ini_name=''):
|
|||||||
|
|
||||||
config = update_config_from_template(config, file=config_file)
|
config = update_config_from_template(config, file=config_file)
|
||||||
|
|
||||||
event_folder = [dic_eng_to_chi.get(f, f) for f in os.listdir('./campaign') if f.startswith('event_')][::-1]
|
event_folder = [dic_eng_to_true_eng.get(f, f) for f in os.listdir('./campaign') if f.startswith('event_')][::-1]
|
||||||
|
|
||||||
saved_config = {}
|
saved_config = {}
|
||||||
for opt, option in config.items():
|
for opt, option in config.items():
|
||||||
for key, value in option.items():
|
for key, value in option.items():
|
||||||
key = dic_eng_to_chi.get(key, key)
|
key = dic_eng_to_true_eng.get(key, key)
|
||||||
if value in dic_eng_to_chi:
|
if value in dic_eng_to_true_eng:
|
||||||
value = dic_eng_to_chi.get(value, value)
|
value = dic_eng_to_true_eng.get(value, value)
|
||||||
if value == 'None':
|
if value == 'None':
|
||||||
value = ''
|
value = ''
|
||||||
|
|
||||||
|
@ -198,6 +198,7 @@ dic_true_eng_to_eng = {
|
|||||||
'event_20200521_en': 'event_20200521_en',
|
'event_20200521_en': 'event_20200521_en',
|
||||||
|
|
||||||
}
|
}
|
||||||
|
dic_eng_to_true_eng = {v: k for k, v in dic_true_eng_to_eng.items()}
|
||||||
|
|
||||||
dic_chi_to_eng = {
|
dic_chi_to_eng = {
|
||||||
# Function
|
# Function
|
||||||
@ -380,7 +381,7 @@ dic_chi_to_eng = {
|
|||||||
'穹顶下的圣咏曲': 'event_20200521_cn',
|
'穹顶下的圣咏曲': 'event_20200521_cn',
|
||||||
}
|
}
|
||||||
|
|
||||||
dic_eng_to_chi = {v: k for k, v in dic_true_eng_to_eng.items()}
|
dic_eng_to_chi = {v: k for k, v in dic_chi_to_eng.items()}
|
||||||
|
|
||||||
|
|
||||||
def to_bool(string):
|
def to_bool(string):
|
||||||
|
Loading…
Reference in New Issue
Block a user