Fix: unrecognized ui page after empty mail receive (#4039)

* Fix: predict_enemy_genre in event_20220526_cn rerun (#4005)

* Fix: unrecognized ui page after empty mail receive

* Upd: [JP] Asset MAIL_CHECK

---------

Co-authored-by: LmeSzinc <lmeszincsales@gmail.com>
Co-authored-by: Air111 <54128005+Air111@users.noreply.github.com>
This commit is contained in:
guoh064 2024-07-28 13:32:03 +08:00 committed by GitHub
parent fe0e687dcb
commit 5ef353a507
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

View File

@ -196,6 +196,9 @@ class UI(InfoHandler):
if self.appear_then_click(GOTO_MAIN, offset=(30, 30), interval=2):
timeout.reset()
continue
if self.appear_then_click(GOTO_MAIN_WHITE, offset=(30, 30), interval=2):
timeout.reset()
continue
# if self.appear_then_click(RPG_HOME, offset=(30, 30), interval=2):
# timeout.reset()
# continue

View File

@ -6,7 +6,7 @@ from module.base.template import Template
BACK_ARROW_WHITE = Button(area={'cn': (54, 30, 69, 53), 'en': (54, 30, 69, 53), 'jp': (54, 30, 69, 53), 'tw': (54, 30, 69, 53)}, color={'cn': (199, 199, 199), 'en': (199, 199, 199), 'jp': (199, 199, 199), 'tw': (199, 199, 199)}, button={'cn': (54, 30, 69, 53), 'en': (54, 30, 69, 53), 'jp': (54, 30, 69, 53), 'tw': (54, 30, 69, 53)}, file={'cn': './assets/cn/ui_white/BACK_ARROW_WHITE.png', 'en': './assets/cn/ui_white/BACK_ARROW_WHITE.png', 'jp': './assets/cn/ui_white/BACK_ARROW_WHITE.png', 'tw': './assets/cn/ui_white/BACK_ARROW_WHITE.png'})
GOTO_MAIN_WHITE = Button(area={'cn': (1211, 24, 1239, 47), 'en': (1211, 24, 1239, 47), 'jp': (1211, 24, 1239, 47), 'tw': (1211, 24, 1239, 47)}, color={'cn': (151, 151, 152), 'en': (151, 151, 152), 'jp': (151, 151, 152), 'tw': (151, 151, 152)}, button={'cn': (1211, 24, 1239, 47), 'en': (1211, 24, 1239, 47), 'jp': (1211, 24, 1239, 47), 'tw': (1211, 24, 1239, 47)}, file={'cn': './assets/cn/ui_white/GOTO_MAIN_WHITE.png', 'en': './assets/cn/ui_white/GOTO_MAIN_WHITE.png', 'jp': './assets/cn/ui_white/GOTO_MAIN_WHITE.png', 'tw': './assets/cn/ui_white/GOTO_MAIN_WHITE.png'})
MAIL_CHECK = Button(area={'cn': (141, 21, 181, 41), 'en': (141, 21, 181, 41), 'jp': (141, 21, 181, 41), 'tw': (141, 21, 181, 41)}, color={'cn': (101, 109, 122), 'en': (101, 109, 122), 'jp': (101, 109, 122), 'tw': (101, 109, 122)}, button={'cn': (141, 21, 181, 41), 'en': (141, 21, 181, 41), 'jp': (141, 21, 181, 41), 'tw': (141, 21, 181, 41)}, file={'cn': './assets/cn/ui_white/MAIL_CHECK.png', 'en': './assets/cn/ui_white/MAIL_CHECK.png', 'jp': './assets/cn/ui_white/MAIL_CHECK.png', 'tw': './assets/cn/ui_white/MAIL_CHECK.png'})
MAIL_CHECK = Button(area={'cn': (141, 21, 181, 41), 'en': (141, 21, 181, 41), 'jp': (139, 22, 206, 43), 'tw': (141, 21, 181, 41)}, color={'cn': (101, 109, 122), 'en': (101, 109, 122), 'jp': (53, 60, 76), 'tw': (101, 109, 122)}, button={'cn': (141, 21, 181, 41), 'en': (141, 21, 181, 41), 'jp': (139, 22, 206, 43), 'tw': (141, 21, 181, 41)}, file={'cn': './assets/cn/ui_white/MAIL_CHECK.png', 'en': './assets/cn/ui_white/MAIL_CHECK.png', 'jp': './assets/jp/ui_white/MAIL_CHECK.png', 'tw': './assets/cn/ui_white/MAIL_CHECK.png'})
MAIL_ENTER_WHITE = Button(area={'cn': (1018, 22, 1087, 52), 'en': (1018, 22, 1085, 52), 'jp': (1020, 23, 1084, 51), 'tw': (1019, 21, 1086, 52)}, color={'cn': (194, 187, 190), 'en': (196, 194, 194), 'jp': (195, 187, 190), 'tw': (204, 196, 200)}, button={'cn': (1018, 22, 1087, 52), 'en': (1018, 22, 1085, 52), 'jp': (1020, 23, 1084, 51), 'tw': (1019, 21, 1086, 52)}, file={'cn': './assets/cn/ui_white/MAIL_ENTER_WHITE.png', 'en': './assets/en/ui_white/MAIL_ENTER_WHITE.png', 'jp': './assets/jp/ui_white/MAIL_ENTER_WHITE.png', 'tw': './assets/tw/ui_white/MAIL_ENTER_WHITE.png'})
MAIN_GOTO_BUILD_WHITE = Button(area={'cn': (959, 657, 1103, 703), 'en': (959, 657, 1104, 703), 'jp': (959, 657, 1105, 703), 'tw': (959, 657, 1105, 703)}, color={'cn': (229, 216, 216), 'en': (226, 220, 222), 'jp': (225, 216, 218), 'tw': (223, 212, 218)}, button={'cn': (959, 657, 1103, 703), 'en': (959, 657, 1104, 703), 'jp': (959, 657, 1105, 703), 'tw': (959, 657, 1105, 703)}, file={'cn': './assets/cn/ui_white/MAIN_GOTO_BUILD_WHITE.png', 'en': './assets/en/ui_white/MAIN_GOTO_BUILD_WHITE.png', 'jp': './assets/jp/ui_white/MAIN_GOTO_BUILD_WHITE.png', 'tw': './assets/tw/ui_white/MAIN_GOTO_BUILD_WHITE.png'})
MAIN_GOTO_CAMPAIGN_WHITE = Button(area={'cn': (1132, 529, 1187, 557), 'en': (1126, 549, 1219, 577), 'jp': (1133, 528, 1186, 554), 'tw': (1133, 527, 1188, 554)}, color={'cn': (152, 161, 161), 'en': (156, 164, 165), 'jp': (156, 165, 165), 'tw': (143, 152, 151)}, button={'cn': (1124, 437, 1260, 579), 'en': (1123, 439, 1260, 580), 'jp': (1123, 438, 1260, 580), 'tw': (1124, 437, 1260, 580)}, file={'cn': './assets/cn/ui_white/MAIN_GOTO_CAMPAIGN_WHITE.png', 'en': './assets/en/ui_white/MAIN_GOTO_CAMPAIGN_WHITE.png', 'jp': './assets/jp/ui_white/MAIN_GOTO_CAMPAIGN_WHITE.png', 'tw': './assets/tw/ui_white/MAIN_GOTO_CAMPAIGN_WHITE.png'})