mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-15 22:19:18 +00:00
Fix: Strict is_in_main() with color check
This commit is contained in:
parent
2041fe8a74
commit
6e789412af
@ -276,7 +276,13 @@ class UI( MainPage):
|
||||
continue
|
||||
|
||||
def is_in_main(self):
|
||||
return self.appear(page_main.check_button) or self.appear(MAP_EXIT)
|
||||
if self.appear(page_main.check_button):
|
||||
if self.image_color_count(page_main.check_button, color=(235, 235, 235), threshold=221, count=400):
|
||||
return True
|
||||
if self.appear(MAP_EXIT):
|
||||
if self.image_color_count(MAP_EXIT, color=(235, 235, 235), threshold=221, count=50):
|
||||
return True
|
||||
return False
|
||||
|
||||
def ui_goto_main(self):
|
||||
return self.ui_ensure(destination=page_main)
|
||||
|
Loading…
Reference in New Issue
Block a user