mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Add ui_close_window_after_changing_setting
This commit is contained in:
parent
8d621dfc00
commit
a9d3f45b25
|
@ -650,7 +650,8 @@ void CMenus::RenderServerControl(CUIRect MainView)
|
|||
if(s_ControlPage == 0)
|
||||
{
|
||||
m_pClient->m_pVoting->CallvoteOption(m_CallvoteSelectedOption, m_aCallvoteReason);
|
||||
SetActive(false);
|
||||
if(g_Config.m_UiCloseWindowAfterChangingSetting)
|
||||
SetActive(false);
|
||||
}
|
||||
else if(s_ControlPage == 1)
|
||||
{
|
||||
|
|
|
@ -104,6 +104,7 @@ MACRO_CONFIG_INT(UiColorizePing, ui_colorize_ping, 1, 0, 1, CFGFLAG_CLIENT|CFGFL
|
|||
MACRO_CONFIG_INT(UiColorizeGametype, ui_colorize_gametype, 1, 0, 1, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Highlight gametype")
|
||||
|
||||
MACRO_CONFIG_STR(UiDemoSelected, ui_demo_selected, 256, "", CFGFLAG_CLIENT|CFGFLAG_SAVE, "Selected demo file")
|
||||
MACRO_CONFIG_INT(UiCloseWindowAfterChangingSetting, ui_close_window_after_changing_setting, 1, 0, 1, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Close window after changing setting")
|
||||
|
||||
MACRO_CONFIG_INT(GfxNoclip, gfx_noclip, 0, 0, 1, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Disable clipping")
|
||||
|
||||
|
|
Loading…
Reference in a new issue