st_ui_building_selector:
st_def 0, ui_building_selector_update, st_ui_building_selector
+st_ui_buildung_selector_exit:
+ st_def 0, ui_building_selector_exit, st_cursor
st_update_game:
st_def 0x00, update_game, st_update_game
-
st_update_pause:
st_def 0x00, update_pause, st_update_pause
-
st_update_game_over:
st_def 0x00, update_game_over, st_update_game_over
+
ret
+ ; exit state for build menu
+ ; clears shadow oam
+ui_building_selector_exit:
+ call shadow_oam_clear
+
+ ldnull bc
+ ret
+
ui_building_selector_inputs:
input_just BTNSELECT
jr z, @not_select REL
; select back to regular state
- ld bc, st_cursor
+ ld bc, st_ui_buildung_selector_exit
ret
@not_select:
ldnull bc