mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-25 18:05:26 +00:00
Opt: Hide Rogue task on GUI
This commit is contained in:
parent
be4ad40310
commit
c41210d6fb
@ -16,12 +16,5 @@
|
|||||||
"BattlePass",
|
"BattlePass",
|
||||||
"Assignment"
|
"Assignment"
|
||||||
]
|
]
|
||||||
},
|
|
||||||
"Rogue": {
|
|
||||||
"menu": "list",
|
|
||||||
"page": "setting",
|
|
||||||
"tasks": [
|
|
||||||
"Rogue"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -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 = [
|
||||||
|
Loading…
Reference in New Issue
Block a user