Add: UI swiches to page_map

This commit is contained in:
LmeSzinc 2023-07-01 22:53:04 +08:00
parent 3aa61c0ceb
commit cb7386374d
7 changed files with 60 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

View File

@ -13,6 +13,16 @@ ASSIGNMENT_CHECK = ButtonWrapper(
button=(45, 21, 70, 53),
),
)
BACK = ButtonWrapper(
name='BACK',
share=Button(
file='./assets/share/base/page/BACK.png',
area=(1217, 21, 1248, 51),
search=(1197, 1, 1268, 71),
color=(56, 59, 71),
button=(1217, 21, 1248, 51),
),
)
BATTLE_PASS_CHECK = ButtonWrapper(
name='BATTLE_PASS_CHECK',
share=Button(
@ -173,6 +183,16 @@ MAIN_GOTO_ITEM = ButtonWrapper(
button=(1064, 35, 1098, 59),
),
)
MAIN_GOTO_MAP = ButtonWrapper(
name='MAIN_GOTO_MAP',
share=Button(
file='./assets/share/base/page/MAIN_GOTO_MAP.png',
area=(70, 78, 166, 174),
search=(50, 58, 186, 194),
color=(91, 105, 119),
button=(70, 78, 166, 174),
),
)
MAIN_GOTO_MENU = ButtonWrapper(
name='MAIN_GOTO_MENU',
share=Button(
@ -223,6 +243,26 @@ MAIN_GOTO_TUTORIAL = ButtonWrapper(
button=(195, 58, 207, 82),
),
)
MAP_CHECK = ButtonWrapper(
name='MAP_CHECK',
share=Button(
file='./assets/share/base/page/MAP_CHECK.png',
area=(46, 19, 68, 54),
search=(26, 0, 88, 74),
color=(75, 75, 75),
button=(46, 19, 68, 54),
),
)
MAP_GOTO_WORLD = ButtonWrapper(
name='MAP_GOTO_WORLD',
share=Button(
file='./assets/share/base/page/MAP_GOTO_WORLD.png',
area=(896, 80, 1225, 116),
search=(876, 60, 1245, 136),
color=(132, 132, 132),
button=(896, 80, 1225, 116),
),
)
MENU_CHECK = ButtonWrapper(
name='MENU_CHECK',
share=Button(
@ -323,3 +363,13 @@ TUTORIAL_CHECK = ButtonWrapper(
button=(44, 30, 70, 56),
),
)
WORLD_CHECK = ButtonWrapper(
name='WORLD_CHECK',
share=Button(
file='./assets/share/base/page/WORLD_CHECK.png',
area=(46, 19, 68, 54),
search=(26, 0, 88, 74),
color=(110, 102, 87),
button=(46, 19, 68, 54),
),
)

View File

@ -111,6 +111,16 @@ page_event = Page(EVENT_CHECK)
page_event.link(CLOSE, destination=page_main)
page_main.link(MAIN_GOTO_EVENT, destination=page_event)
# Map
page_map = Page(MAP_CHECK)
page_map.link(CLOSE, destination=page_main)
page_main.link(MAIN_GOTO_MAP, destination=page_map)
# page_world, subpage of map, used to choose a world/planet e.g. Herta Space Station
page_world = Page(WORLD_CHECK)
page_world.link(BACK, destination=page_map)
page_map.link(MAP_GOTO_WORLD, destination=page_world)
# Tutorial
page_tutorial = Page(TUTORIAL_CHECK)
page_tutorial.link(CLOSE, destination=page_main)