MCPcopy Index your code
hub / github.com/LmeSzinc/AzurLaneAutoScript / get

Method get

module/ui/switch.py:65–77  ·  view source on GitHub ↗

Args: main (ModuleBase): Returns: str: state name or 'unknown'.

(self, main)

Source from the content-addressed store, hash-verified

63 return self.get(main=main) != 'unknown'
64
65 def get(self, main):
66 """
67 Args:
68 main (ModuleBase):
69
70 Returns:
71 str: state name or 'unknown'.
72 """
73 for data in self.state_list:
74 if main.appear(data['check_button'], offset=data['offset']):
75 return data['state']
76
77 return 'unknown'
78
79 def click(self, state, main):
80 """

Callers 15

coalition_set_fleetMethod · 0.95
appearMethod · 0.95
setMethod · 0.95
waitMethod · 0.95
fast_retryMethod · 0.45
_get_research_seriesFunction · 0.45
match_templateMethod · 0.45
__init__Method · 0.45
satisfy_limitationMethod · 0.45
set_limitationMethod · 0.45
equipment_filter_setMethod · 0.45
setMethod · 0.45

Calls 1

appearMethod · 0.45

Tested by

no test coverage detected