Skip to content

Commit

Permalink
Added missing save button
Browse files Browse the repository at this point in the history
  • Loading branch information
Rex109 committed Mar 29, 2024
1 parent 995ee03 commit 4fd2dff
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 22 deletions.
Binary file modified mod/cod4qol/mod.ff
Binary file not shown.
21 changes: 0 additions & 21 deletions mod/cod4qol/ui/options_sound_pc.menu
Original file line number Diff line number Diff line change
Expand Up @@ -146,26 +146,5 @@ itemDef { \
uiScript openMenuOnDvarNot sv_running 1 snd_restart_popmenu;
}
}
itemDef
{
name apply3
text "@MENU_SAVE"
type 1
style WINDOW_STYLE_FILLED
textstyle ITEM_TEXTSTYLE_SHADOWED
rect 200 -26 80 20 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_BOTTOM
textfont UI_FONT_NORMAL
textalign ITEM_ALIGN_LEFT
textscale TEXTSIZE_SMALL
textaligny 18
visible when( localVarInt ( ui_qol ) == 1 && localVarBool( ui_showApply ) );
mouseEnter { play "mouse_over"; }
action
{
play "mouse_click";
exec "writeprotectedconfig";
setLocalVarBool ui_showApply 0;
}
}
}
}
24 changes: 23 additions & 1 deletion mod/cod4qol/ui_mp/options_voice.menu
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,31 @@ itemDef { \
CHOICE_DVARSLIDER_VIS_EXTR( 31, "Gun X Position", cg_gun_x, 0, -100, 100, setLocalVarBool ui_showApply 1, ;, when( localVarInt ( ui_qol ) == 1 );)
CHOICE_DVARSLIDER_VIS_EXTR( 32, "Gun Y Position", cg_gun_y, 0, -100, 100, setLocalVarBool ui_showApply 1, ;, when( localVarInt ( ui_qol ) == 1 );)
CHOICE_DVARSLIDER_VIS_EXTR( 33, "Gun Z Position", cg_gun_z, 0, -100, 100, setLocalVarBool ui_showApply 1, ;, when( localVarInt ( ui_qol ) == 1 );)
CHOICE_BUTTON_VIS( 34, "Restore Gun Position", exec "set cg_gun_x 0; set cg_gun_y 0; set cg_gun_z 0", when( localVarInt ( ui_qol ) == 1 ) )
CHOICE_BUTTON_VIS( 34, "Restore Gun Position", exec "set cg_gun_x 0; set cg_gun_y 0; set cg_gun_z 0"; setLocalVarBool ui_showApply 1, when( localVarInt ( ui_qol ) == 1 ) )
CHOICE_DVARFLOATLIST_VIS( 35, "Gun handedness", qol_mirrorgun, { "Left" 1 "Right" 0 }, ;, when( localVarInt ( ui_qol ) == 1 );)

itemDef
{
name apply
text "@MENU_SAVE"
type 1
style WINDOW_STYLE_FILLED
textstyle ITEM_TEXTSTYLE_SHADOWED
rect 200 -26 80 20 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_BOTTOM
textfont UI_FONT_NORMAL
textalign ITEM_ALIGN_LEFT
textscale TEXTSIZE_SMALL
textaligny 18
visible when( localVarInt ( ui_qol ) == 1 && localVarBool( ui_showApply ) );
mouseEnter { play "mouse_over"; }
action
{
play "mouse_click";
exec "writeprotectedconfig";
setLocalVarBool ui_showApply 0;
}
}

//CHOICE_BACK( "@MENU_BACK", close self )
}
}
Expand Down

0 comments on commit 4fd2dff

Please sign in to comment.