if( skaterift.activity != k_skaterift_default ) return;
if( _cutscene.state != k_cutscene_state_none ) return;
if( localplayer.subsystem == k_player_subsystem_dead ) return;
+ if( _world.event != k_world_event_none )
+ {
+ if( _world.event == k_world_event_challenge )
+ {
+ if( _world.challenge_state <= k_challenge_state_viewing )
+ return;
+ }
+ else
+ return;
+ }
glEnable(GL_BLEND);
glDisable(GL_DEPTH_TEST);
if( press_dpad_e )
render_overlay_mesh( ov_dpad_e );
+#if 0
colorize( press_dpad_w, !(_world.main.info.flags & k_world_flag_no_rewind) );
render_overlay_mesh( ov_text_dw_rewind );
if( press_dpad_w )
render_overlay_mesh( ov_dpad_w );
+#endif
if( subsytem == k_player_subsystem_dead )
{
shader_model_menu_uColour( cnorm );
shader_model_menu_uMdl( mmdl );
+#if 0
colorize( press_r, !(_world.main.info.flags & k_world_flag_no_rewind) );
draw_key( press_r, 0 );
render_overlay_mesh( ov_text_rewind );
+#endif
/* space */
bool press_space = vg_getkey(SDLK_SPACE);
ui_rect title;
ui_split( panel, k_ui_axis_h, 28*2, 0, title, panel );
ctx->font = &vgf_default_title;
- ui_text( ctx, title,
- "Welcome to Skate Rift", 1, k_ui_align_middle_center, 0 );
+ ui_text( ctx, title, "Welcome to Skate Rift", 1, k_ui_align_middle_center, 0 );
ui_split( panel, k_ui_axis_h, 28, 0, title, panel );
ctx->font = &vgf_default_large;
- menu_checkbox( ctx, panel, R == 0,
- "Show controls overlay (good for new players)",
- &control_overlay.enabled );
- menu_checkbox( ctx, panel, R == 1, "Auto connect to global server",
- &network_client.auto_connect );
+ menu_checkbox( ctx, panel, R == 0, "Show controls overlay (good for new players)", &control_overlay.enabled );
+ menu_checkbox( ctx, panel, R == 1, "Auto connect to global server", &network_client.auto_connect );
ui_rect end = { panel[0], panel[1] + panel[3] - 100, panel[2], 100 };
- menu_checkbox( ctx, end, R == 2,
- "Don't show this again", &menu.skip_starter );
+ menu_checkbox( ctx, end, R == 2, "Don't show this again", &menu.skip_starter );
if( menu_button( ctx, end, R == 3, 1, "OK" ) )
{
+ if( network_client.auto_connect )
+ network_client.user_intent = k_server_intent_online;
+
menu.page = k_menu_page_main;
menu_close();
}
void player_look( v3f angles, float speed )
{
- if( vg_ui.ctx.wants_mouse ) return;
+ ui_context *ui_ctx = &vg_ui.ctx;
+ if( ui_ctx->wants_mouse )
+ {
+ if( skaterift.activity == k_skaterift_replay )
+ {
+ if( !ui_clicking( ui_ctx, UI_MOUSE_LEFT ) )
+ return;
+ if( ui_ctx->focused_control_type != k_ui_control_none )
+ return;
+ }
+ else
+ return;
+ }
angles[2] = 0.0f;