feat: 添加任务列表OCR开关,更新配置与日志记录功能
This commit is contained in:
1 parent
4f74a5e95a
commit
2aa0aec99a
9 files changed
+290
-20
No files matched your search
@@ -424,6 +424,9 @@ def main():
|
||||
fudai_disable_content_recognition_var = tk.BooleanVar(
|
||||
value=bool(cfg.get("fudai_disable_content_recognition", False))
|
||||
)
|
||||
fudai_disable_task_recognition_var = tk.BooleanVar(
|
||||
value=bool(cfg.get("fudai_disable_task_recognition", False))
|
||||
)
|
||||
fudai_exit_after_misses_var = tk.IntVar(
|
||||
value=int(cfg.get("fudai_exit_after_misses", 30) or 30)
|
||||
)
|
||||
@@ -1237,6 +1240,15 @@ def main():
|
||||
side=LEFT, padx=(6, 0)
|
||||
)
|
||||
|
||||
# 任务列表 OCR 开关
|
||||
ttk.Checkbutton(
|
||||
row4c,
|
||||
text="禁用福袋任务列表OCR识别",
|
||||
variable=fudai_disable_task_recognition_var,
|
||||
onvalue=True,
|
||||
offvalue=False,
|
||||
).pack(side=LEFT, padx=(12, 0))
|
||||
|
||||
row4e = ttk.Frame(fudai_find_box)
|
||||
row4e.pack(fill=X, padx=10, pady=(0, 8))
|
||||
ttk.Label(row4e, text="切换直播间后等待时间(秒):").pack(side=LEFT)
|
||||
@@ -1599,6 +1611,9 @@ def main():
|
||||
fudai_disable_content_recognition_var.set(
|
||||
bool(cfg.get("fudai_disable_content_recognition", False))
|
||||
)
|
||||
fudai_disable_task_recognition_var.set(
|
||||
bool(cfg.get("fudai_disable_task_recognition", False))
|
||||
)
|
||||
try:
|
||||
fudai_exit_after_misses_var.set(
|
||||
int(cfg.get("fudai_exit_after_misses", 30) or 30)
|
||||
@@ -1825,6 +1840,9 @@ def main():
|
||||
cfg2["fudai_disable_content_recognition"] = bool(
|
||||
fudai_disable_content_recognition_var.get()
|
||||
)
|
||||
cfg2["fudai_disable_task_recognition"] = bool(
|
||||
fudai_disable_task_recognition_var.get()
|
||||
)
|
||||
cfg2["switch_room_wait_after_stage_diag_seconds"] = float(
|
||||
switch_room_wait_after_stage_diag_seconds_var.get() or 7.0
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user