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

Opt: Switch class

- Add offset argument, rename is_choice to is_selector
This commit is contained in:
LmeSzinc
2020-10-20 15:44:32 +08:00
parent e217ceae35
commit df0c33c72c
5 changed files with 26 additions and 26 deletions

View File

@@ -7,9 +7,9 @@ from module.ui.switch import Switch
fast_forward = Switch('Fast_Forward')
fast_forward.add_status('on', check_button=FAST_FORWARD_ON)
fast_forward.add_status('off', check_button=FAST_FORWARD_OFF)
fleet_lock = Switch('Fleet_Lock')
fleet_lock.add_status('on', check_button=FLEET_LOCKED, offset=(5, 5))
fleet_lock.add_status('off', check_button=FLEET_UNLOCKED, offset=(5, 5))
fleet_lock = Switch('Fleet_Lock', offset=(5, 5))
fleet_lock.add_status('on', check_button=FLEET_LOCKED)
fleet_lock.add_status('off', check_button=FLEET_UNLOCKED)
class FastForwardHandler(ModuleBase):