Add: Dialogue clicker settings

This commit is contained in:
LmeSzinc 2023-12-27 00:56:15 +08:00
parent 9ddd26ba6a
commit 20de15e011
12 changed files with 150 additions and 2 deletions

View File

@ -194,5 +194,10 @@
"RogueDebug": {
"DebugMode": false
}
},
"Daemon": {
"Daemon": {
"Enable": true
}
}
}

View File

@ -1291,5 +1291,19 @@
"value": false
}
}
},
"Daemon": {
"Daemon": {
"Enable": {
"type": "state",
"value": true,
"option": [
true
],
"option_bold": [
true
]
}
}
}
}

View File

@ -252,3 +252,13 @@ RogueBlessing:
RogueDebug:
DebugMode: false
# ==================== Tool ====================
Daemon:
Enable:
type: state
value: true
option: [ true ]
option_bold: [ true, ]

View File

@ -26,5 +26,12 @@
"Weekly",
"Rogue"
]
},
"Tool": {
"menu": "list",
"page": "tool",
"tasks": [
"Daemon"
]
}
}

View File

@ -44,6 +44,7 @@ Daily:
Freebies:
- Scheduler
- SupportReward
# ==================== Weekly ====================
Weekly:
@ -60,3 +61,12 @@ Weekly:
- RogueCurio
- RoguePath
- RogueDebug
# ==================== Tool ====================
Tool:
menu: 'list'
page: 'tool'
tasks:
Daemon:
- Daemon

View File

@ -136,3 +136,6 @@ class GeneratedConfig:
# Group `RogueDebug`
RogueDebug_DebugMode = False
# Group `Daemon`
Daemon_Enable = True # True

View File

@ -11,6 +11,10 @@
"Weekly": {
"name": "Weekly",
"help": ""
},
"Tool": {
"name": "Tools",
"help": ""
}
},
"Task": {
@ -53,6 +57,10 @@
"Rogue": {
"name": "Simulated Universe",
"help": ""
},
"Daemon": {
"name": "Dialogue Clicker",
"help": ""
}
},
"Scheduler": {
@ -884,6 +892,17 @@
"help": "No stop conditions, no error handling, stop when encountering an error. Please report errors according to the doc: https://github.com/LmeSzinc/StarRailCopilot/wiki/RogueMap_cn"
}
},
"Daemon": {
"_info": {
"name": "Dialogue Clicker",
"help": "Tools need to stop the scheduler and then run independently"
},
"Enable": {
"name": "Dialogue Clicker",
"help": "Monitor game, automatically click dialogue, phone chatting, and blessing in simulated universe (follow the simulated universe task settings)",
"True": "Enabled"
}
},
"Gui": {
"Aside": {
"Install": "Install",

View File

@ -11,6 +11,10 @@
"Weekly": {
"name": "Semanario",
"help": ""
},
"Tool": {
"name": "útiles",
"help": ""
}
},
"Task": {
@ -53,6 +57,10 @@
"Rogue": {
"name": "Universo Simulado",
"help": ""
},
"Daemon": {
"name": "Clic de diálogo",
"help": ""
}
},
"Scheduler": {
@ -63,7 +71,7 @@
"Enable": {
"name": "Activar tarea",
"help": "Añadir tarea al Planificador.",
"True": "Verdadero",
"True": "Activado",
"False": "Falso"
},
"NextRun": {
@ -884,6 +892,17 @@
"help": "Sin condiciones de parada, sin manejo de errores, deténgase cuando encuentre un error. Informe el error de acuerdo con el documento: https://github.com/LmeSzinc/StarRailCopilot/wiki/RogueMap_cn"
}
},
"Daemon": {
"_info": {
"name": "Clic de diálogo",
"help": "Las herramientas necesitan detener el programador y luego ejecutarlo de forma independiente"
},
"Enable": {
"name": "Clic de diálogo",
"help": "Monitorear el juego, hacer clic automáticamente en el diálogo, chatear por teléfono y bendecir en el universo simulado (sigue la configuración de tareas del universo simulado)",
"True": "Activado"
}
},
"Gui": {
"Aside": {
"Install": "Instalar",

View File

@ -11,6 +11,10 @@
"Weekly": {
"name": "Menu.Weekly.name",
"help": "Menu.Weekly.help"
},
"Tool": {
"name": "Menu.Tool.name",
"help": "Menu.Tool.help"
}
},
"Task": {
@ -53,6 +57,10 @@
"Rogue": {
"name": "Task.Rogue.name",
"help": "Task.Rogue.help"
},
"Daemon": {
"name": "Task.Daemon.name",
"help": "Task.Daemon.help"
}
},
"Scheduler": {
@ -884,6 +892,17 @@
"help": "RogueDebug.DebugMode.help"
}
},
"Daemon": {
"_info": {
"name": "Daemon._info.name",
"help": "Daemon._info.help"
},
"Enable": {
"name": "Daemon.Enable.name",
"help": "Daemon.Enable.help",
"True": "True"
}
},
"Gui": {
"Aside": {
"Install": "インストール",

View File

@ -11,6 +11,10 @@
"Weekly": {
"name": "每周",
"help": ""
},
"Tool": {
"name": "工具",
"help": ""
}
},
"Task": {
@ -53,6 +57,10 @@
"Rogue": {
"name": "模拟宇宙",
"help": ""
},
"Daemon": {
"name": "剧情连点器",
"help": ""
}
},
"Scheduler": {
@ -884,6 +892,17 @@
"help": "无停止条件无异常处理遇错误即停止请按文档上报异常https://github.com/LmeSzinc/StarRailCopilot/wiki/RogueMap_cn"
}
},
"Daemon": {
"_info": {
"name": "剧情连点器",
"help": "工具需要停止调度器再单独运行"
},
"Enable": {
"name": "剧情连点器",
"help": "监听画面自动点击剧情、手机聊天、模拟宇宙祝福(遵循模拟宇宙任务设置)",
"True": "已启用"
}
},
"Gui": {
"Aside": {
"Install": "安装",

View File

@ -11,6 +11,10 @@
"Weekly": {
"name": "每週",
"help": ""
},
"Tool": {
"name": "工具",
"help": ""
}
},
"Task": {
@ -53,6 +57,10 @@
"Rogue": {
"name": "模擬宇宙",
"help": ""
},
"Daemon": {
"name": "劇情連點器",
"help": ""
}
},
"Scheduler": {
@ -881,7 +889,18 @@
},
"DebugMode": {
"name": "開發模式",
"help": "無停止條件無異常處理遇錯誤即停止請依文件回報異常https://github.com/LmeSzinc/StarRailCopilot/wiki/RogueMap_cn"
"help": "無停止條件無異常處理遇錯誤即停止請依檔案回報異常https://github.com/LmeSzinc/StarRailCopilot/wiki/RogueMap_cn"
}
},
"Daemon": {
"_info": {
"name": "劇情連點器",
"help": "工具需要停止調度器再單獨運作"
},
"Enable": {
"name": "劇情連點器",
"help": "監聽畫面自動點擊劇情、手機聊天、模擬宇宙祝福(遵循模擬宇宙任務設定)",
"True": "已啟用"
}
},
"Gui": {

View File

@ -147,6 +147,10 @@ class ProcessManager:
if e is not None:
AzurLaneAutoScript.stop_event = e
StarRailCopilot(config_name=config_name).loop()
elif func == "Daemon":
from tasks.base.daemon import Daemon
Daemon(config=config_name, task="Daemon").run()
else:
logger.critical(f"No function matched: {func}")
logger.info(f"[{config_name}] exited. Reason: Finish\n")