1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 00:28:20 +08:00

Fix: Wrong arguments of fit_points

This commit is contained in:
LmeSzinc
2022-02-08 23:57:27 +08:00
parent ca649b8c40
commit 1415c9e8dd

View File

@@ -168,9 +168,10 @@ class ModuleBase:
# Not having enough pixels to match
return None
point = fit_points(points, mod=image.shape, encourage=encourage)
point = fit_points(points, mod=image_size(image), encourage=encourage)
point = ensure_int(point + area[:2])
button_area = area_offset((-encourage, -encourage, encourage, encourage), offset=point)
color = get_color(self.device.image, button_area)
return Button(area=button_area, color=color, button=button_area, name=name)
def interval_reset(self, button):