diff --git a/assets/share/dungeon/ui/TAB_SEARCH.png b/assets/share/dungeon/ui/TAB_SEARCH.png new file mode 100644 index 000000000..ad4e7bbd2 Binary files /dev/null and b/assets/share/dungeon/ui/TAB_SEARCH.png differ diff --git a/tasks/dungeon/assets/assets_dungeon_ui.py b/tasks/dungeon/assets/assets_dungeon_ui.py index d70a8e5b3..77c5fe3e6 100644 --- a/tasks/dungeon/assets/assets_dungeon_ui.py +++ b/tasks/dungeon/assets/assets_dungeon_ui.py @@ -153,6 +153,16 @@ SURVIVAL_INDEX_LOADED = ButtonWrapper( button=(451, 286, 476, 302), ), ) +TAB_SEARCH = ButtonWrapper( + name='TAB_SEARCH', + share=Button( + file='./assets/share/dungeon/ui/TAB_SEARCH.png', + area=(139, 84, 599, 144), + search=(119, 64, 619, 164), + color=(92, 87, 83), + button=(139, 84, 599, 144), + ), +) TREASURES_LIGHTWARD_CHECK = ButtonWrapper( name='TREASURES_LIGHTWARD_CHECK', share=Button( diff --git a/tasks/dungeon/ui.py b/tasks/dungeon/ui.py index 4ab40761e..571771f00 100644 --- a/tasks/dungeon/ui.py +++ b/tasks/dungeon/ui.py @@ -33,6 +33,14 @@ from tasks.map.keywords import KEYWORDS_MAP_WORLD, MapPlane class DungeonTabSwitch(Switch): + def add_state(self, state, check_button, click_button=None): + # Load search + if check_button is not None: + check_button.load_search(TAB_SEARCH.area) + if click_button is not None: + click_button.load_search(TAB_SEARCH.area) + return super().add_state(state, check_button, click_button) + def click(self, state, main): """ Args: