mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-26 07:05:02 +08:00
Fix: globe_focus_to clicks outside of valid box
This commit is contained in:
@@ -28,7 +28,7 @@ class GlobeCamera(GlobeOperation, ZoneManager):
|
|||||||
center = self.camera_to_zone(self.globe.center_loca)
|
center = self.camera_to_zone(self.globe.center_loca)
|
||||||
logger.attr('Globe_center', center)
|
logger.attr('Globe_center', center)
|
||||||
|
|
||||||
def globe_swipe(self, vector, box=(0, 200, 1000, 620)):
|
def globe_swipe(self, vector, box=(0, 220, 980, 620)):
|
||||||
"""
|
"""
|
||||||
Args:
|
Args:
|
||||||
vector (tuple, np.ndarray): float
|
vector (tuple, np.ndarray): float
|
||||||
@@ -97,7 +97,7 @@ class GlobeCamera(GlobeOperation, ZoneManager):
|
|||||||
button = Button(area=area, color=(), button=area, name=f'ZONE_{zone.zone_id}')
|
button = Button(area=area, color=(), button=area, name=f'ZONE_{zone.zone_id}')
|
||||||
return button
|
return button
|
||||||
|
|
||||||
def globe_in_sight(self, zone, swipe_limit=(620, 340), sight=(0, 200, 1000, 620)):
|
def globe_in_sight(self, zone, swipe_limit=(620, 340), sight=(0, 220, 980, 620)):
|
||||||
"""
|
"""
|
||||||
Args:
|
Args:
|
||||||
zone (str, int, Zone): Name in CN/EN/JP, zone id, or Zone instance.
|
zone (str, int, Zone): Name in CN/EN/JP, zone id, or Zone instance.
|
||||||
|
|||||||
Reference in New Issue
Block a user