mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-22 16:40:28 +00:00
Fix: Accept area
attribute in ClickButton
This commit is contained in:
parent
acc0be8c05
commit
571104831d
@ -308,9 +308,12 @@ class ButtonWrapper(Resource):
|
|||||||
|
|
||||||
|
|
||||||
class ClickButton:
|
class ClickButton:
|
||||||
def __init__(self, button, name='CLICK_BUTTON'):
|
def __init__(self, area, button=None, name='CLICK_BUTTON'):
|
||||||
self.area = button
|
self.area = area
|
||||||
self.button = button
|
if button is None:
|
||||||
|
self.button = area
|
||||||
|
else:
|
||||||
|
self.button = button
|
||||||
self.name = name
|
self.name = name
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user