static void respawn_chooser_pre_update(void){
if( skaterift.activity != k_skaterift_respawning ) return;
- gui_helper_action( joystick_display_string(k_srjoystick_steer,2), "move" );
- if( world_static.instances[0].status == k_world_status_loaded )
- gui_helper_action( axis_display_string(k_sraxis_mworld_h), "world" );
- gui_helper_action( button_display_string(k_srbind_maccept), "spawn" );
- gui_helper_action( button_display_string(k_srbind_home), "home" );
-
if( button_down( k_srbind_mback ) ){
- srinput.enabled = 0;
+ srinput.state = k_input_state_resume;
skaterift.activity = k_skaterift_menu;
menu.page = 0xffffffff;
menu_open_page( "Main Menu", k_ent_menuitem_stack_append );
if( button_down( k_srbind_maccept ) ){
skaterift.activity = k_skaterift_default;
- srinput.enabled = 0;
+ srinput.state = k_input_state_resume;
if( respawn_chooser.spawn ){
world_static.active_instance = respawn_chooser.world_id;
respawn_world_to_plane_pos( localplayer.rb.co, respawn_chooser.plane_pos );
respawn_chooser.boom_dist = 400.0f;
respawn_chooser.home_select = 0;
+
+ gui_helper_clear();
+
+ vg_str text;
+ if( gui_new_helper( input_joy_list[k_srjoystick_steer], &text ) )
+ vg_strcat( &text, "move" );
+
+ if( gui_new_helper( input_button_list[k_srbind_mleft], &text ) )
+ vg_strcat( &text, "world" );
+
+ if( gui_new_helper( input_button_list[k_srbind_maccept], &text ) )
+ vg_strcat( &text, "spawn" );
+
+ if( gui_new_helper( input_button_list[k_srbind_home], &text ) )
+ vg_strcat( &text, "home" );
}
static void respawn_chooser_shader_uniforms(void){