ent_menuitem *item = mdl_arritm( &menu.items, i );
if( item->type == k_ent_menuitem_type_page ) continue;
ent_menuitem *item = mdl_arritm( &menu.items, i );
if( item->type == k_ent_menuitem_type_page ) continue;
if( item->type == k_ent_menuitem_type_binding ) continue;
if( !(item->groups & (0x1<<menu.page)) ) continue;
if( item->type == k_ent_menuitem_type_binding ) continue;
if( !(item->groups & (0x1<<menu.page)) ) continue;
menu_setitem_type( menu.ctr_steam, k_ent_menuitem_type_disabled );
if( vg_input.display_input_method == k_input_method_kbm )
menu_setitem_type( menu.ctr_steam, k_ent_menuitem_type_disabled );
if( vg_input.display_input_method == k_input_method_kbm )
else{
if( vg_input.display_input_type == SDL_CONTROLLER_TYPE_PS3 ||
vg_input.display_input_type == SDL_CONTROLLER_TYPE_PS4 ||
vg_input.display_input_type == SDL_CONTROLLER_TYPE_PS5 ){
else{
if( vg_input.display_input_type == SDL_CONTROLLER_TYPE_PS3 ||
vg_input.display_input_type == SDL_CONTROLLER_TYPE_PS4 ||
vg_input.display_input_type == SDL_CONTROLLER_TYPE_PS5 ){
glEnable(GL_BLEND);
glDisable(GL_DEPTH_TEST);
glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );
glEnable(GL_BLEND);
glDisable(GL_DEPTH_TEST);
glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );
shader_model_menu_uColour( (v4f){1.0f,1.0f,1.0f,1.0f} );
}
else{
shader_model_menu_uColour( (v4f){1.0f,1.0f,1.0f,1.0f} );
}
else{
- font3d_bind( &gui.font, &menu.view );
+ font3d_bind( &gui.font, k_font_shader_default, 0, NULL, &menu.view );
u32 variant = item->binding.font_variant;
menu_binding_string( buf, item->binding.pstr_bind );
u32 variant = item->binding.font_variant;
menu_binding_string( buf, item->binding.pstr_bind );
local[3][0] = -0.5f * offset;
m4x3_mul( transform, local, transform );
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_strncpy( "error", buf, 128, k_strncpy_allow_cutoff );
if( MDL_CONST_PSTREQ( &menu.model, pstr, "bind_jump" ) ){
vg_strncpy( "error", buf, 128, k_strncpy_allow_cutoff );
if( MDL_CONST_PSTREQ( &menu.model, pstr, "bind_jump" ) ){