1
0
mirror of https://github.com/sui-feng-cb/AzurLaneAutoScript1.git synced 2026-06-14 22:00:01 +08:00

Add: Hierarchy button support

This commit is contained in:
LmeSzinc
2022-05-01 22:03:26 +08:00
parent 17243e74f6
commit d9332a7325
2 changed files with 33 additions and 2 deletions

View File

@@ -203,3 +203,10 @@ class HierarchyButton:
def __str__(self):
return self.name
@cached_property
def focused(self):
if self.exist:
return self.nodes[0].attrib.get("focused").lower() == 'true'
else:
return False