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": { "RogueDebug": {
"DebugMode": false "DebugMode": false
} }
},
"Daemon": {
"Daemon": {
"Enable": true
}
} }
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -11,6 +11,10 @@
"Weekly": { "Weekly": {
"name": "Weekly", "name": "Weekly",
"help": "" "help": ""
},
"Tool": {
"name": "Tools",
"help": ""
} }
}, },
"Task": { "Task": {
@ -53,6 +57,10 @@
"Rogue": { "Rogue": {
"name": "Simulated Universe", "name": "Simulated Universe",
"help": "" "help": ""
},
"Daemon": {
"name": "Dialogue Clicker",
"help": ""
} }
}, },
"Scheduler": { "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" "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": { "Gui": {
"Aside": { "Aside": {
"Install": "Install", "Install": "Install",

View File

@ -11,6 +11,10 @@
"Weekly": { "Weekly": {
"name": "Semanario", "name": "Semanario",
"help": "" "help": ""
},
"Tool": {
"name": "útiles",
"help": ""
} }
}, },
"Task": { "Task": {
@ -53,6 +57,10 @@
"Rogue": { "Rogue": {
"name": "Universo Simulado", "name": "Universo Simulado",
"help": "" "help": ""
},
"Daemon": {
"name": "Clic de diálogo",
"help": ""
} }
}, },
"Scheduler": { "Scheduler": {
@ -63,7 +71,7 @@
"Enable": { "Enable": {
"name": "Activar tarea", "name": "Activar tarea",
"help": "Añadir tarea al Planificador.", "help": "Añadir tarea al Planificador.",
"True": "Verdadero", "True": "Activado",
"False": "Falso" "False": "Falso"
}, },
"NextRun": { "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" "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": { "Gui": {
"Aside": { "Aside": {
"Install": "Instalar", "Install": "Instalar",

View File

@ -11,6 +11,10 @@
"Weekly": { "Weekly": {
"name": "Menu.Weekly.name", "name": "Menu.Weekly.name",
"help": "Menu.Weekly.help" "help": "Menu.Weekly.help"
},
"Tool": {
"name": "Menu.Tool.name",
"help": "Menu.Tool.help"
} }
}, },
"Task": { "Task": {
@ -53,6 +57,10 @@
"Rogue": { "Rogue": {
"name": "Task.Rogue.name", "name": "Task.Rogue.name",
"help": "Task.Rogue.help" "help": "Task.Rogue.help"
},
"Daemon": {
"name": "Task.Daemon.name",
"help": "Task.Daemon.help"
} }
}, },
"Scheduler": { "Scheduler": {
@ -884,6 +892,17 @@
"help": "RogueDebug.DebugMode.help" "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": { "Gui": {
"Aside": { "Aside": {
"Install": "インストール", "Install": "インストール",

View File

@ -11,6 +11,10 @@
"Weekly": { "Weekly": {
"name": "每周", "name": "每周",
"help": "" "help": ""
},
"Tool": {
"name": "工具",
"help": ""
} }
}, },
"Task": { "Task": {
@ -53,6 +57,10 @@
"Rogue": { "Rogue": {
"name": "模拟宇宙", "name": "模拟宇宙",
"help": "" "help": ""
},
"Daemon": {
"name": "剧情连点器",
"help": ""
} }
}, },
"Scheduler": { "Scheduler": {
@ -884,6 +892,17 @@
"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": { "Gui": {
"Aside": { "Aside": {
"Install": "安装", "Install": "安装",

View File

@ -11,6 +11,10 @@
"Weekly": { "Weekly": {
"name": "每週", "name": "每週",
"help": "" "help": ""
},
"Tool": {
"name": "工具",
"help": ""
} }
}, },
"Task": { "Task": {
@ -53,6 +57,10 @@
"Rogue": { "Rogue": {
"name": "模擬宇宙", "name": "模擬宇宙",
"help": "" "help": ""
},
"Daemon": {
"name": "劇情連點器",
"help": ""
} }
}, },
"Scheduler": { "Scheduler": {
@ -881,7 +889,18 @@
}, },
"DebugMode": { "DebugMode": {
"name": "開發模式", "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": { "Gui": {

View File

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