if( call->function == 0 ){ /* view() */
if( localplayer.subsystem == k_player_subsystem_walk ){
world_entity_focus( call->id );
+
+ gui_helper_clear();
+ vg_str text;
+
+ if( (global_ent_route.helper_weekly =
+ gui_new_helper( input_button_list[k_srbind_mleft], &text )))
+ vg_strcat( &text, "weekly" );
+
+ if( (global_ent_route.helper_alltime =
+ gui_new_helper( input_button_list[k_srbind_mright], &text )))
+ vg_strcat( &text, "all time" );
+
+ if( gui_new_helper( input_button_list[k_srbind_mback], &text ) )
+ vg_strcat( &text, "exit" );
}
}
else {
world_entity_focus_camera( world, cam_id );
- gui_helper_action( button_display_string( k_srbind_mleft ), "weekly" );
- gui_helper_action( button_display_string( k_srbind_mright ), "all time" );
- gui_helper_action( button_display_string( k_srbind_mback ), "exit" );
-
if( button_down( k_srbind_mleft ) ){
world_sfd.view_weekly = 1;
world_sfd_compile_active_scores();
world_sfd_compile_active_scores();
}
+ global_ent_route.helper_alltime->greyed =!world_sfd.view_weekly;
+ global_ent_route.helper_weekly->greyed = world_sfd.view_weekly;
+
if( button_down( k_srbind_mback ) ){
world_entity_unfocus();
+ gui_helper_clear();
return;
}
}