mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 06:39:25 +08:00
Revert "Add: hide_in_upper_left option for combat manual"
This commit was manually merged into this repository earlier, and later guoh064 merged this commit into LmeSzinc’s repository.
This reverts commit 13aba919a2.
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 6.9 KiB |
@@ -86,46 +86,3 @@ class CombatManual(ModuleBase):
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
|
||||
from module.combat.my_assets import *
|
||||
|
||||
|
||||
class CombatManual(CombatManual):
|
||||
def handle_combat_stand_still_upper_left(self, auto):
|
||||
"""
|
||||
Args:
|
||||
auto (str): Combat auto mode.
|
||||
|
||||
Returns:
|
||||
bool: If executed
|
||||
"""
|
||||
|
||||
if auto != 'hide_in_upper_left':
|
||||
return False
|
||||
|
||||
self.device.long_click(my_MOVE_LEFT_UP, duration=(1.5, 3.5))
|
||||
return True
|
||||
|
||||
def handle_combat_manual(self, auto):
|
||||
"""
|
||||
Args:
|
||||
auto (str): Combat auto mode.
|
||||
|
||||
Returns:
|
||||
bool: If executed
|
||||
"""
|
||||
if self.manual_executed or not self.auto_mode_checked:
|
||||
return False
|
||||
|
||||
if self.handle_combat_stand_still_in_the_middle(auto):
|
||||
self.manual_executed = True
|
||||
return True
|
||||
if self.handle_combat_stand_still_bottom_left(auto):
|
||||
self.manual_executed = True
|
||||
return True
|
||||
if self.handle_combat_stand_still_upper_left(auto):
|
||||
self.manual_executed = True
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
from module.base.button import Button
|
||||
from module.base.template import Template
|
||||
|
||||
# This file was automatically generated by dev_tools/button_extract.py.
|
||||
# Don't modify it manually.
|
||||
|
||||
my_MOVE_LEFT_UP = Button(area={'cn': (101, 539, 136, 574), 'en': (101, 539, 136, 574), 'jp': (101, 539, 136, 574), 'tw': (101, 539, 136, 574)}, color={'cn': (255, 255, 255), 'en': (255, 255, 255), 'jp': (255, 255, 255), 'tw': (255, 255, 255)}, button={'cn': (101, 539, 136, 574), 'en': (101, 539, 136, 574), 'jp': (101, 539, 136, 574), 'tw': (101, 539, 136, 574)}, file={'cn': './assets/cn/combat/my_MOVE_LEFT_UP.png', 'en': './assets/cn/combat/my_MOVE_LEFT_UP.png', 'jp': './assets/cn/combat/my_MOVE_LEFT_UP.png', 'tw': './assets/cn/combat/my_MOVE_LEFT_UP.png'})
|
||||
Reference in New Issue
Block a user