X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=gui.h;fp=gui.h;h=18b3dbd5eac91d28b4cd5e8cbf36ecab56710571;hb=22f62f001f21d1b91fefd9fc495c122d9ddf205a;hp=433ba8314afec44f111267dd05031c06948d9673;hpb=a5cdfe2fc872f03c7988d63498abb7e7827325c1;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/gui.h b/gui.h index 433ba83..18b3dbd 100644 --- a/gui.h +++ b/gui.h @@ -54,7 +54,7 @@ struct{ } static gui; -VG_STATIC +static void gui_helper_action( const char *bindstr, const char *text ){ if( gui.helper_count >= vg_list_size(gui.helpers) ){ vg_error( "Too many helpers\n" ); @@ -66,7 +66,7 @@ void gui_helper_action( const char *bindstr, const char *text ){ helper->text = text; } -VG_STATIC +static void gui_draw(void) { if( v3_dist2(localplayer.rb.co,gui.trick_co) > 2.0f ){ @@ -232,7 +232,7 @@ void gui_draw(void) gui.helper_count = 0; } -VG_STATIC +static int gui_location_print_ccmd( int argc, const char *argv[] ){ if( argc > 0 ){ char new_loc[64]; @@ -249,7 +249,7 @@ int gui_location_print_ccmd( int argc, const char *argv[] ){ return 0; } -VG_STATIC int gui_showtrick_ccmd( int argc, const char *argv[] ){ +static int gui_showtrick_ccmd( int argc, const char *argv[] ){ if( argc == 1 ){ enum guitrick_type type = k_guitrick_type_none; if( !strcmp( argv[0], "pump" ) ) type = k_guitrick_type_pump; @@ -265,7 +265,7 @@ VG_STATIC int gui_showtrick_ccmd( int argc, const char *argv[] ){ return 1; } -VG_STATIC void gui_draw_icon( enum gui_icon icon, v2f co, f32 size ){ +static void gui_draw_icon( enum gui_icon icon, v2f co, f32 size ){ if( gui.icon_draw_count == vg_list_size(gui.icon_draw_buffer) ) return; @@ -289,7 +289,7 @@ static mdl_submesh *gui_find_icon( const char *name ){ return NULL; } -VG_STATIC void gui_init(void){ +static void gui_init(void){ font3d_load( &gui.font, "models/rs_font.mdl", vg_mem.rtmemory ); vg_console_reg_cmd( "gui_location", gui_location_print_ccmd, NULL ); vg_console_reg_cmd( "showtrick", gui_showtrick_ccmd, NULL );