X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=menu.h;h=86f573620f5fa10ecabe789d0a8d09b5590bc3c3;hb=137d40d96fe923600d8378b8e138e3c276f27ff4;hp=fa2d5812dd5a31c4892b76a9015f7733105d1eff;hpb=53597f45307d8a2120e3a0bbe71797b216e8750b;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/menu.h b/menu.h index fa2d581..86f5736 100644 --- a/menu.h +++ b/menu.h @@ -430,7 +430,8 @@ static void menu_update(void){ ent_menuitem *item = mdl_arritm( &menu.items, i ); if( item->type == k_ent_menuitem_type_page ) continue; - if( item->type == k_ent_menuitem_type_visual ) continue; + if( (item->type == k_ent_menuitem_type_visual) || + (item->type == k_ent_menuitem_type_visual_nocol) ) continue; if( item->type == k_ent_menuitem_type_binding ) continue; if( !(item->groups & (0x1<type != k_ent_menuitem_type_page) && (item->type != k_ent_menuitem_type_visual) && + (item->type != k_ent_menuitem_type_visual_nocol) && (item->groups & (0x1<type == k_ent_menuitem_type_visual ){ + if( item->type == k_ent_menuitem_type_visual_nocol ){ shader_model_menu_uColour( (v4f){1.0f,1.0f,1.0f,1.0f} ); } else{ @@ -761,7 +763,7 @@ VG_STATIC void menu_render(void){ m4x3f local; m4x3_identity( local ); - font3d_bind( &gui.font, &menu.view ); + font3d_bind( &gui.font, k_font_shader_default, 0, NULL, &menu.view ); for( u32 i=0; ibinding.font_variant; menu_binding_string( buf, item->binding.pstr_bind ); - f32 offset = font3d_string_width( &gui.font, variant, buf ); + f32 offset = font3d_string_width( variant, buf ); local[3][0] = -0.5f * offset; m4x3_mul( transform, local, transform ); - font3d_simple_draw( &gui.font, variant, k_font_shader_default, buf, - &menu.view, transform ); + font3d_simple_draw( variant, buf, &menu.view, transform ); } } -VG_STATIC void menu_binding_string( char buf[128], u32 pstr ){ +static void menu_binding_string( char buf[128], u32 pstr ){ vg_strncpy( "error", buf, 128, k_strncpy_allow_cutoff ); if( MDL_CONST_PSTREQ( &menu.model, pstr, "bind_jump" ) ){