mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-10 13:32:26 +00:00
fix: use 'area' in 'ClickButton'
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import numpy as np
|
||||
|
||||
from module.base.button import ClickButton
|
||||
from module.base.decorator import cached_property
|
||||
from module.base.timer import Timer
|
||||
@@ -8,8 +10,6 @@ from module.device.method.minitouch import Minitouch
|
||||
from module.device.method.scrcpy import Scrcpy
|
||||
from module.logger import logger
|
||||
|
||||
import numpy as np
|
||||
|
||||
|
||||
class Control(Hermit, Minitouch, Scrcpy, MaaTouch):
|
||||
def handle_control_check(self, button):
|
||||
@@ -169,7 +169,7 @@ class Control(Hermit, Minitouch, Scrcpy, MaaTouch):
|
||||
logger.warning(f'Control method {method} does not support drag well, '
|
||||
f'falling back to ADB swipe may cause unexpected behaviour')
|
||||
self.swipe_adb(p1, p2, duration=ensure_time(swipe_duration * 2))
|
||||
self.click(ClickButton(button=area_offset(point_random, p2), name=name))
|
||||
self.click(ClickButton(area=area_offset(point_random, p2), name=name))
|
||||
|
||||
# just used in cafe
|
||||
def pinch(self, box=(35, 130, 1250, 560), name='PINCH'):
|
||||
|
||||
Reference in New Issue
Block a user