Del: Replace EXIT_CONFIRM with enlarged POPUP_*.SEARCH
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 6.9 KiB |
@ -48,7 +48,7 @@ POPUP_CANCEL = ButtonWrapper(
|
|||||||
share=Button(
|
share=Button(
|
||||||
file='./assets/share/base/popup/POPUP_CANCEL.png',
|
file='./assets/share/base/popup/POPUP_CANCEL.png',
|
||||||
area=(428, 537, 452, 561),
|
area=(428, 537, 452, 561),
|
||||||
search=(334, 453, 594, 653),
|
search=(339, 446, 482, 653),
|
||||||
color=(98, 92, 80),
|
color=(98, 92, 80),
|
||||||
button=(419, 531, 512, 567),
|
button=(419, 531, 512, 567),
|
||||||
),
|
),
|
||||||
@ -58,7 +58,7 @@ POPUP_CONFIRM = ButtonWrapper(
|
|||||||
share=Button(
|
share=Button(
|
||||||
file='./assets/share/base/popup/POPUP_CONFIRM.png',
|
file='./assets/share/base/popup/POPUP_CONFIRM.png',
|
||||||
area=(776, 537, 800, 561),
|
area=(776, 537, 800, 561),
|
||||||
search=(683, 464, 943, 644),
|
search=(686, 446, 829, 644),
|
||||||
color=(95, 90, 78),
|
color=(95, 90, 78),
|
||||||
button=(767, 531, 862, 567),
|
button=(767, 531, 862, 567),
|
||||||
),
|
),
|
||||||
@ -68,7 +68,7 @@ POPUP_SINGLE = ButtonWrapper(
|
|||||||
share=Button(
|
share=Button(
|
||||||
file='./assets/share/base/popup/POPUP_SINGLE.png',
|
file='./assets/share/base/popup/POPUP_SINGLE.png',
|
||||||
area=(602, 458, 626, 482),
|
area=(602, 458, 626, 482),
|
||||||
search=(511, 365, 771, 575),
|
search=(512, 446, 655, 644),
|
||||||
color=(95, 90, 77),
|
color=(95, 90, 77),
|
||||||
button=(578, 451, 705, 489),
|
button=(578, 451, 705, 489),
|
||||||
),
|
),
|
||||||
|
@ -43,16 +43,6 @@ ENTRANCE_CHECKED = ButtonWrapper(
|
|||||||
button=(55, 632, 71, 650),
|
button=(55, 632, 71, 650),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
EXIT_CONFIRM = ButtonWrapper(
|
|
||||||
name='EXIT_CONFIRM',
|
|
||||||
share=Button(
|
|
||||||
file='./assets/share/forgotten_hall/EXIT_CONFIRM.png',
|
|
||||||
area=(776, 458, 800, 482),
|
|
||||||
search=(756, 438, 820, 502),
|
|
||||||
color=(94, 88, 76),
|
|
||||||
button=(776, 458, 800, 482),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
FIRST_CHARACTER = ButtonWrapper(
|
FIRST_CHARACTER = ButtonWrapper(
|
||||||
name='FIRST_CHARACTER',
|
name='FIRST_CHARACTER',
|
||||||
share=Button(
|
share=Button(
|
||||||
|
@ -13,7 +13,7 @@ from tasks.base.assets.assets_base_page import FORGOTTEN_HALL_CHECK, MAP_EXIT
|
|||||||
from tasks.dungeon.keywords import DungeonList, KEYWORDS_DUNGEON_TAB
|
from tasks.dungeon.keywords import DungeonList, KEYWORDS_DUNGEON_TAB
|
||||||
from tasks.dungeon.ui import DungeonUI
|
from tasks.dungeon.ui import DungeonUI
|
||||||
from tasks.forgotten_hall.assets.assets_forgotten_hall import *
|
from tasks.forgotten_hall.assets.assets_forgotten_hall import *
|
||||||
from tasks.forgotten_hall.keywords import *
|
from tasks.forgotten_hall.keywords import ForgottenHallStage
|
||||||
from tasks.map.control.joystick import MapControlJoystick
|
from tasks.map.control.joystick import MapControlJoystick
|
||||||
|
|
||||||
|
|
||||||
@ -125,6 +125,7 @@ class ForgottenHallUI(DungeonUI):
|
|||||||
STAGE_LIST.select_row(stage_keyword, main=self)
|
STAGE_LIST.select_row(stage_keyword, main=self)
|
||||||
|
|
||||||
def exit_dungeon(self, skip_first_screenshot=True):
|
def exit_dungeon(self, skip_first_screenshot=True):
|
||||||
|
logger.info('Exit dungeon')
|
||||||
while 1:
|
while 1:
|
||||||
if skip_first_screenshot:
|
if skip_first_screenshot:
|
||||||
skip_first_screenshot = False
|
skip_first_screenshot = False
|
||||||
@ -137,7 +138,7 @@ class ForgottenHallUI(DungeonUI):
|
|||||||
|
|
||||||
if self.appear_then_click(MAP_EXIT):
|
if self.appear_then_click(MAP_EXIT):
|
||||||
continue
|
continue
|
||||||
if self.appear_then_click(EXIT_CONFIRM):
|
if self.handle_popup_confirm():
|
||||||
continue
|
continue
|
||||||
|
|
||||||
def _choose_first_character(self, skip_first_screenshot=True):
|
def _choose_first_character(self, skip_first_screenshot=True):
|
||||||
|