+ /* extra keys for entering editor */
+ static u8 f1_key = 0;
+ u8 f1_now = vg_getkey(SDLK_F1);
+ if( f1_now && !f1_key && player_replay.show_ui )
+ {
+ player_replay.editor_mode ^= 0x1;
+
+ if( player_replay.editor_mode )
+ gui_helper_clear();
+ else
+ replay_show_helpers();
+ }
+ f1_key = f1_now;
+
+ static u8 f2_key = 0;
+ u8 f2_now = vg_getkey(SDLK_F2);
+ if( f2_now && !f2_key )
+ {
+ player_replay.show_ui ^= 0x1;
+ }
+ f2_key = f2_now;
+
+ if( player_replay.editor_mode )
+ {
+ static u8 space_key = 0;
+ u8 space_now = vg_getkey(SDLK_SPACE);
+ if( space_now & !space_key )
+ {
+ player_replay.replay_control ^= k_replay_control_play;
+ }
+ space_key = space_now;
+ }
+
+ if( !player_replay.show_ui ) return;
+
+ if( player_replay.editor_mode )
+ {
+ u32 colour = ui_opacity( ui_colour(k_ui_fg), 0.3333f );
+ ui_rect cx = { vg.window_x/2, 0, 1, vg.window_y },
+ cy = { 0, vg.window_y/2, vg.window_x, 1 };
+ ui_fill( cx, colour );
+ ui_fill( cy, colour );
+ }
+