Opt: Hide Rogue task on GUI

This commit is contained in:
LmeSzinc 2023-09-11 23:34:54 +08:00
parent be4ad40310
commit c41210d6fb
2 changed files with 6 additions and 8 deletions

View File

@ -16,12 +16,5 @@
"BattlePass", "BattlePass",
"Assignment" "Assignment"
] ]
},
"Rogue": {
"menu": "list",
"page": "setting",
"tasks": [
"Rogue"
]
} }
} }

View File

@ -441,6 +441,11 @@ class ConfigGenerator:
tasks = list(tasks.keys()) tasks = list(tasks.keys())
deep_set(data, keys=[task_group, 'tasks'], value=tasks) deep_set(data, keys=[task_group, 'tasks'], value=tasks)
# Simulated universe is WIP, task won't show on GUI but can still be bound
# e.g. `RogueUI('src', task='Rogue')`
# Comment this for development
data.pop('Rogue')
return data return data
@cached_property @cached_property
@ -513,6 +518,7 @@ class ConfigGenerator:
'Language': '{{language}}', 'Language': '{{language}}',
'Theme': '{{theme}}', 'Theme': '{{theme}}',
} }
def update(file, *args): def update(file, *args):
new = deepcopy(template) new = deepcopy(template)
for dic in args: for dic in args:
@ -554,7 +560,6 @@ class ConfigGenerator:
self.generate_deploy_template() self.generate_deploy_template()
class ConfigUpdater: class ConfigUpdater:
# source, target, (optional)convert_func # source, target, (optional)convert_func
redirection = [ redirection = [