Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Commit

Permalink
监控将不会自动开启
Browse files Browse the repository at this point in the history
  • Loading branch information
lswlc33 committed Jun 5, 2024
1 parent 3d1acb6 commit d136263
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions 方块兽.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def get_login():
threading.Thread(target=main).start()
threading.Thread(target=pet_heartbeat).start()
threading.Thread(target=pick_up).start()
threading.Thread(target=escape_watch_loop).start()
if get_value("auto_extend"):
cave_mine()
else:
Expand Down Expand Up @@ -121,6 +120,11 @@ def escape_watch_loop():
time.sleep(1)


def start_escape_wacth():
threading.Thread(target=escape_watch_loop).start()
escape_button_start.place_forget()


def pet_heartbeat():
global is_sleep
if need_stop:
Expand Down Expand Up @@ -324,9 +328,12 @@ def get_rocks_logs():
justify="left",
font=("黑体", 12),
)
escape_wacth_textarea_text.set("\n⨀ 逃杀-监控\n")
escape_wacth_textarea_text.set("")
escape_wacth_textarea.place(x=0, y=0)

escape_button_start = tk.Button(
frame_escape_wacth, text="开始监控", command=start_escape_wacth
)
escape_button_start.place(x=10, y=20)
escape_label_manual = tk.Label(frame_escape_wacth, text="手动模式:")
escape_label_manual.place(x=10, y=290)
escape_label_manual_roomid_text = tk.Label(frame_escape_wacth, text="房间号:")
Expand Down

0 comments on commit d136263

Please sign in to comment.