diff --git a/assets/en/base/popup/LEVEL_UP.BUTTON.png b/assets/en/base/popup/LEVEL_UP.BUTTON.png new file mode 100644 index 0000000..a8e8b85 Binary files /dev/null and b/assets/en/base/popup/LEVEL_UP.BUTTON.png differ diff --git a/assets/en/base/popup/LEVEL_UP.png b/assets/en/base/popup/LEVEL_UP.png new file mode 100644 index 0000000..19ded3d Binary files /dev/null and b/assets/en/base/popup/LEVEL_UP.png differ diff --git a/assets/en/base/popup/LOCATION_LEVEL_UP.BUTTON.png b/assets/en/base/popup/LOCATION_LEVEL_UP.BUTTON.png new file mode 100644 index 0000000..a9f6b33 Binary files /dev/null and b/assets/en/base/popup/LOCATION_LEVEL_UP.BUTTON.png differ diff --git a/assets/en/base/popup/LOCATION_LEVEL_UP.png b/assets/en/base/popup/LOCATION_LEVEL_UP.png new file mode 100644 index 0000000..cee4301 Binary files /dev/null and b/assets/en/base/popup/LOCATION_LEVEL_UP.png differ diff --git a/tasks/base/assets/assets_base_popup.py b/tasks/base/assets/assets_base_popup.py index 2b1d4d5..23ff62a 100644 --- a/tasks/base/assets/assets_base_popup.py +++ b/tasks/base/assets/assets_base_popup.py @@ -135,6 +135,28 @@ ITEM_EXPIRED = ButtonWrapper( button=(537, 487, 742, 553), ), ) +LEVEL_UP = ButtonWrapper( + name='LEVEL_UP', + jp=None, + en=Button( + file='./assets/en/base/popup/LEVEL_UP.png', + area=(722, 210, 746, 238), + search=(702, 190, 766, 258), + color=(184, 202, 219), + button=(571, 559, 713, 601), + ), +) +LOCATION_LEVEL_UP = ButtonWrapper( + name='LOCATION_LEVEL_UP', + jp=None, + en=Button( + file='./assets/en/base/popup/LOCATION_LEVEL_UP.png', + area=(430, 141, 463, 180), + search=(410, 121, 483, 200), + color=(177, 194, 207), + button=(577, 616, 707, 647), + ), +) NETWORK_RECONNECT = ButtonWrapper( name='NETWORK_RECONNECT', jp=Button( diff --git a/tasks/base/popup.py b/tasks/base/popup.py index 2559c91..129a60f 100644 --- a/tasks/base/popup.py +++ b/tasks/base/popup.py @@ -105,3 +105,15 @@ class PopupHandler(ModuleBase): return True return False + + def handle_location_level_up(self, interval=5) -> bool: + if self.appear_then_click(LOCATION_LEVEL_UP, interval=interval): + return True + + return False + + def handle_level_up(self, interval=5) -> bool: + if self.appear_then_click(LEVEL_UP, interval=interval): + return True + + return False \ No newline at end of file