mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 16:47:03 +08:00
Upd: config_updater for event_20221124_cn rerun
This commit is contained in:
@@ -44,6 +44,7 @@ import module.webui.lang as lang
|
||||
from module.config.config import AzurLaneConfig, Function
|
||||
from module.config.deep import deep_get, deep_iter, deep_set
|
||||
from module.config.env import IS_ON_PHONE_CLOUD
|
||||
from module.config.server import to_server
|
||||
from module.config.utils import (
|
||||
alas_instance,
|
||||
alas_template,
|
||||
@@ -365,7 +366,12 @@ class AlasGUI(Frame):
|
||||
# Default value
|
||||
output_kwargs["value"] = value
|
||||
# Options
|
||||
output_kwargs["options"] = options = output_kwargs.pop("option", [])
|
||||
options = output_kwargs.pop("option", [])
|
||||
server = to_server(deep_get(config, 'Alas.Emulator.PackageName', 'cn'))
|
||||
available_events = deep_get(self.ALAS_ARGS, keys=f'{task}.{group_name}.{arg_name}.option_{server}')
|
||||
if available_events is not None:
|
||||
options = [opt for opt in options if opt in available_events]
|
||||
output_kwargs["options"] = options
|
||||
# Options label
|
||||
options_label = []
|
||||
for opt in options:
|
||||
|
||||
Reference in New Issue
Block a user