Fix: [EN] Confirm button in SOS signal search list

- Re-arrange SOS templates
This commit is contained in:
LmeSzinc 2022-12-07 01:38:41 +08:00
parent e3b9586a57
commit 2168329e07
15 changed files with 5 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

@ -9,3 +9,6 @@ SIGNAL_LIST_CHECK = Button(area={'cn': (351, 164, 482, 198), 'en': (352, 159, 52
SIGNAL_SEARCH_CLOSE = Button(area={'cn': (896, 157, 939, 194), 'en': (896, 157, 939, 194), 'jp': (895, 161, 932, 195), 'tw': (896, 157, 939, 194)}, color={'cn': (205, 95, 87), 'en': (205, 95, 87), 'jp': (214, 106, 105), 'tw': (205, 95, 87)}, button={'cn': (896, 157, 939, 194), 'en': (896, 157, 939, 194), 'jp': (895, 161, 932, 195), 'tw': (896, 157, 939, 194)}, file={'cn': './assets/cn/sos/SIGNAL_SEARCH_CLOSE.png', 'en': './assets/en/sos/SIGNAL_SEARCH_CLOSE.png', 'jp': './assets/jp/sos/SIGNAL_SEARCH_CLOSE.png', 'tw': './assets/tw/sos/SIGNAL_SEARCH_CLOSE.png'})
SIGNAL_SEARCH_ENTER = Button(area={'cn': (1175, 499, 1230, 554), 'en': (1175, 499, 1230, 554), 'jp': (1175, 499, 1230, 554), 'tw': (1175, 499, 1230, 554)}, color={'cn': (72, 81, 98), 'en': (72, 81, 98), 'jp': (72, 81, 98), 'tw': (72, 81, 98)}, button={'cn': (1175, 499, 1230, 554), 'en': (1175, 499, 1230, 554), 'jp': (1175, 499, 1230, 554), 'tw': (1175, 499, 1230, 554)}, file={'cn': './assets/cn/sos/SIGNAL_SEARCH_ENTER.png', 'en': './assets/en/sos/SIGNAL_SEARCH_ENTER.png', 'jp': './assets/jp/sos/SIGNAL_SEARCH_ENTER.png', 'tw': './assets/tw/sos/SIGNAL_SEARCH_ENTER.png'})
SOS_SCROLL_AREA = Button(area={'cn': (935, 257, 941, 516), 'en': (935, 257, 941, 516), 'jp': (935, 257, 941, 516), 'tw': (937, 258, 941, 514)}, color={'cn': (120, 133, 146), 'en': (120, 133, 146), 'jp': (120, 133, 146), 'tw': (153, 141, 85)}, button={'cn': (935, 257, 941, 516), 'en': (935, 257, 941, 516), 'jp': (935, 257, 941, 516), 'tw': (937, 258, 941, 514)}, file={'cn': './assets/cn/sos/SOS_SCROLL_AREA.png', 'en': './assets/en/sos/SOS_SCROLL_AREA.png', 'jp': './assets/jp/sos/SOS_SCROLL_AREA.png', 'tw': './assets/tw/sos/SOS_SCROLL_AREA.png'})
TEMPLATE_SIGNAL_CONFIRM = Template(file={'cn': './assets/cn/sos/TEMPLATE_SIGNAL_CONFIRM.png', 'en': './assets/en/sos/TEMPLATE_SIGNAL_CONFIRM.png', 'jp': './assets/jp/sos/TEMPLATE_SIGNAL_CONFIRM.png', 'tw': './assets/tw/sos/TEMPLATE_SIGNAL_CONFIRM.png'})
TEMPLATE_SIGNAL_GOTO = Template(file={'cn': './assets/cn/sos/TEMPLATE_SIGNAL_GOTO.png', 'en': './assets/en/sos/TEMPLATE_SIGNAL_GOTO.png', 'jp': './assets/jp/sos/TEMPLATE_SIGNAL_GOTO.png', 'tw': './assets/tw/sos/TEMPLATE_SIGNAL_GOTO.png'})
TEMPLATE_SIGNAL_SEARCH = Template(file={'cn': './assets/cn/sos/TEMPLATE_SIGNAL_SEARCH.png', 'en': './assets/en/sos/TEMPLATE_SIGNAL_SEARCH.png', 'jp': './assets/jp/sos/TEMPLATE_SIGNAL_SEARCH.png', 'tw': './assets/tw/sos/TEMPLATE_SIGNAL_SEARCH.png'})

View File

@ -5,7 +5,6 @@ from module.campaign.run import CampaignRun
from module.logger import logger
from module.ocr.ocr import Digit
from module.sos.assets import *
from module.template.assets import *
from module.ui.assets import CAMPAIGN_CHECK
from module.ui.page import page_campaign
from module.ui.scroll import Scroll
@ -173,6 +172,8 @@ class CampaignSos(CampaignRun, CampaignBase):
self.device.click(entrance)
if TEMPLATE_SIGNAL_GOTO.match(image):
self.device.click(entrance)
if TEMPLATE_SIGNAL_CONFIRM.match(image):
self.device.click(entrance)
# End
if self.appear(CAMPAIGN_CHECK, offset=(20, 20)):

View File

@ -35,8 +35,6 @@ TEMPLATE_OPERATIONS_RED_DOT = Template(file={'cn': './assets/cn/template/TEMPLAT
TEMPLATE_OS_AllyCargo = Template(file={'cn': './assets/cn/template/TEMPLATE_OS_AllyCargo.png', 'en': './assets/en/template/TEMPLATE_OS_AllyCargo.png', 'jp': './assets/jp/template/TEMPLATE_OS_AllyCargo.png', 'tw': './assets/tw/template/TEMPLATE_OS_AllyCargo.png'})
TEMPLATE_OS_Meowfficer = Template(file={'cn': './assets/cn/template/TEMPLATE_OS_Meowfficer.gif', 'en': './assets/en/template/TEMPLATE_OS_Meowfficer.gif', 'jp': './assets/jp/template/TEMPLATE_OS_Meowfficer.gif', 'tw': './assets/tw/template/TEMPLATE_OS_Meowfficer.gif'})
TEMPLATE_OS_Resource = Template(file={'cn': './assets/cn/template/TEMPLATE_OS_Resource.png', 'en': './assets/en/template/TEMPLATE_OS_Resource.png', 'jp': './assets/jp/template/TEMPLATE_OS_Resource.png', 'tw': './assets/tw/template/TEMPLATE_OS_Resource.png'})
TEMPLATE_SIGNAL_GOTO = Template(file={'cn': './assets/cn/template/TEMPLATE_SIGNAL_GOTO.png', 'en': './assets/en/template/TEMPLATE_SIGNAL_GOTO.png', 'jp': './assets/jp/template/TEMPLATE_SIGNAL_GOTO.png', 'tw': './assets/tw/template/TEMPLATE_SIGNAL_GOTO.png'})
TEMPLATE_SIGNAL_SEARCH = Template(file={'cn': './assets/cn/template/TEMPLATE_SIGNAL_SEARCH.png', 'en': './assets/en/template/TEMPLATE_SIGNAL_SEARCH.png', 'jp': './assets/jp/template/TEMPLATE_SIGNAL_SEARCH.png', 'tw': './assets/tw/template/TEMPLATE_SIGNAL_SEARCH.png'})
TEMPLATE_SIREN_Akagi = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_Akagi.gif', 'en': './assets/en/template/TEMPLATE_SIREN_Akagi.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_Akagi.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_Akagi.gif'})
TEMPLATE_SIREN_Akashi = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_Akashi.gif', 'en': './assets/en/template/TEMPLATE_SIREN_Akashi.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_Akashi.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_Akashi.gif'})
TEMPLATE_SIREN_AlbacoreIdol = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_AlbacoreIdol.gif', 'en': './assets/en/template/TEMPLATE_SIREN_AlbacoreIdol.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_AlbacoreIdol.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_AlbacoreIdol.gif'})