X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player_skate.c;h=50247502224d9b27963e44d9db793f256ddb9e90;hb=238a3a4ef19bb137e2a878ee38f99d253eddb51c;hp=75b65fc7df76ec46b12a46a4f553ee628b771904;hpb=304647a7672165dd35ffe54884ed9aedcc9bf363;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player_skate.c b/player_skate.c index 75b65fc..5024750 100644 --- a/player_skate.c +++ b/player_skate.c @@ -2796,15 +2796,16 @@ begin_collision:; } } -void player__skate_im_gui(void){ +void player__skate_im_gui( ui_context *ctx ) +{ struct player_skate_state *state = &player_skate.state; - player__debugtext( 1, "V: %5.2f %5.2f %5.2f",localplayer.rb.v[0], + player__debugtext( ctx, 1, "V: %5.2f %5.2f %5.2f",localplayer.rb.v[0], localplayer.rb.v[1], localplayer.rb.v[2] ); - player__debugtext( 1, "CO: %5.2f %5.2f %5.2f",localplayer.rb.co[0], + player__debugtext( ctx, 1, "CO: %5.2f %5.2f %5.2f",localplayer.rb.co[0], localplayer.rb.co[1], localplayer.rb.co[2] ); - player__debugtext( 1, "W: %5.2f %5.2f %5.2f",localplayer.rb.w[0], + player__debugtext( ctx, 1, "W: %5.2f %5.2f %5.2f",localplayer.rb.w[0], localplayer.rb.w[1], localplayer.rb.w[2] ); @@ -2822,19 +2823,14 @@ void player__skate_im_gui(void){ "grind_5050" }; - player__debugtext( 1, "activity: %s", activity_txt[state->activity] ); -#if 0 - player__debugtext( 1, "steer_s: %5.2f %5.2f [%.2f %.2f]", - state->steerx_s, state->steery_s, - k_steer_ground, k_steer_air ); -#endif - player__debugtext( 1, "flip: %.4f %.4f", state->flip_rate, + player__debugtext( ctx, 1, "activity: %s", activity_txt[state->activity] ); + player__debugtext( ctx, 1, "flip: %.4f %.4f", state->flip_rate, state->flip_time ); - player__debugtext( 1, "trickv: %.2f %.2f %.2f", + player__debugtext( ctx, 1, "trickv: %.2f %.2f %.2f", state->trick_vel[0], state->trick_vel[1], state->trick_vel[2] ); - player__debugtext( 1, "tricke: %.2fs %.2f %.2f %.2f", + player__debugtext( ctx, 1, "tricke: %.2fs %.2f %.2f %.2f", state->trick_time, state->trick_euler[0], state->trick_euler[1],