1
0
mirror of https://github.com/TheFunny/ArisuAutoSweeper synced 2025-12-16 11:15:13 +00:00

fix: update ui assets and circle for en

(cherry picked from commit 2ec7e45172)
This commit is contained in:
YoursFunny 2024-07-24 17:23:42 +08:00
parent e832e3c27f
commit 90c47745d7
Signed by: YoursFunny
GPG Key ID: 207EDC3CD5B40F9C
9 changed files with 3 additions and 8 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

@ -1,9 +1,8 @@
from enum import Enum
from module.base.decorator import Config
from module.base.timer import Timer
from module.logger import logger
from tasks.base.page import page_circle, MAIN_GO_TO_CIRCLE, CIRCLE_CHECK
from tasks.base.page import CIRCLE_CHECK, MAIN_GO_TO_CIRCLE
from tasks.base.ui import UI
from tasks.circle.assets.assets_circle import *
@ -18,7 +17,6 @@ class CircleStatus(Enum):
class Circle(UI):
@Config.when(Emulator_GameLanguage='jp')
def _enter_circle(self):
self.ui_goto_main()
action_timer = Timer(1, 8)
@ -26,15 +24,12 @@ class Circle(UI):
self.device.screenshot()
if not action_timer.reached_and_reset():
continue
if self.appear_then_click(CIRCLE):
if self.appear(CIRCLE):
self.click_with_interval(CIRCLE, 3)
continue
else:
self.device.click(MAIN_GO_TO_CIRCLE)
@Config.when(Emulator_GameLanguage=None)
def _enter_circle(self):
self.ui_ensure(page_circle)
def _handle_circle(self, status):
match status:
case CircleStatus.REWARD: