}
-void player__walk_im_gui(void){
+void player__walk_im_gui( ui_context *ctx )
+{
struct player_walk *w = &player_walk;
- player__debugtext( 1, "V: %5.2f %5.2f %5.2f (%5.2fm/s)",
+ player__debugtext( ctx, 1, "V: %5.2f %5.2f %5.2f (%5.2fm/s)",
localplayer.rb.v[0], localplayer.rb.v[1], localplayer.rb.v[2],
v3_length(localplayer.rb.v) );
- 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, "transition: %5.2f ", w->state.transition_t );
- player__debugtext( 1, "activity: %s\n",
+ player__debugtext( ctx, 1, "transition: %5.2f ", w->state.transition_t );
+ player__debugtext( ctx, 1, "activity: %s\n",
(const char *[]){ "air",
"ground",
"sit",
"odrop_in",
"oregular" }
[w->state.activity] );
- player__debugtext( 1, "surface: %s\n",
+ player__debugtext( ctx, 1, "surface: %s\n",
(const char *[]){ "concrete",
"wood",
"grass",