}
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" );
helper->text = text;
}
-VG_STATIC
+static
void gui_draw(void)
{
if( v3_dist2(localplayer.rb.co,gui.trick_co) > 2.0f ){
gui.helper_count = 0;
}
-VG_STATIC
+static
int gui_location_print_ccmd( int argc, const char *argv[] ){
if( argc > 0 ){
char new_loc[64];
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;
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;
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 );