1
0
mirror of https://github.com/TheFunny/ArisuAutoSweeper synced 2026-06-09 20:04:52 +00:00

fix: accept area attr in ClickButton

This commit is contained in:
2023-11-21 19:20:04 +08:00
parent 03380b2d71
commit 9604e8962a
+6 -3
View File
@@ -231,9 +231,12 @@ class ButtonWrapper(Resource):
class ClickButton:
def __init__(self, button, name='CLICK_BUTTON'):
self.area = button
self.button = button
def __init__(self, area, button=None, name='CLICK_BUTTON'):
self.area = area
if button is None:
self.button = area
else:
self.button = button
self.name = name
def __str__(self):