mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
Removed now unnecessary menu option to disable map backgrounds
This commit is contained in:
parent
e0d292be63
commit
2909152183
|
@ -854,7 +854,7 @@ void CMenus::RenderSettingsGeneral(CUIRect MainView)
|
||||||
RenderTools()->DrawUIRect(&Game, vec4(0.0f, 0.0f, 0.0f, 0.25f), CUI::CORNER_ALL, 5.0f);
|
RenderTools()->DrawUIRect(&Game, vec4(0.0f, 0.0f, 0.0f, 0.25f), CUI::CORNER_ALL, 5.0f);
|
||||||
|
|
||||||
// render client menu background
|
// render client menu background
|
||||||
NumOptions = 4;
|
NumOptions = 3;
|
||||||
if(g_Config.m_ClAutoDemoRecord) NumOptions += 1;
|
if(g_Config.m_ClAutoDemoRecord) NumOptions += 1;
|
||||||
if(g_Config.m_ClAutoScreenshot) NumOptions += 1;
|
if(g_Config.m_ClAutoScreenshot) NumOptions += 1;
|
||||||
BackgroundHeight = (float)(NumOptions+1)*ButtonHeight+(float)NumOptions*Spacing;
|
BackgroundHeight = (float)(NumOptions+1)*ButtonHeight+(float)NumOptions*Spacing;
|
||||||
|
@ -983,15 +983,6 @@ void CMenus::RenderSettingsGeneral(CUIRect MainView)
|
||||||
if(DoButton_CheckBox(&s_SkipMainMenu, Localize("Skip the main menu"), g_Config.m_ClSkipStartMenu, &Button))
|
if(DoButton_CheckBox(&s_SkipMainMenu, Localize("Skip the main menu"), g_Config.m_ClSkipStartMenu, &Button))
|
||||||
g_Config.m_ClSkipStartMenu ^= 1;
|
g_Config.m_ClSkipStartMenu ^= 1;
|
||||||
|
|
||||||
Client.HSplitTop(Spacing, 0, &Client);
|
|
||||||
Client.HSplitTop(ButtonHeight, &Button, &Client);
|
|
||||||
static int s_DisplayAnimatedBackgrounds = 0;
|
|
||||||
if(DoButton_CheckBox(&s_DisplayAnimatedBackgrounds, Localize("Display animated backgrounds"), g_Config.m_ClShowMenuMap, &Button))
|
|
||||||
{
|
|
||||||
g_Config.m_ClShowMenuMap ^= 1;
|
|
||||||
m_pClient->m_pMapLayersBackGround->BackgroundMapUpdate();
|
|
||||||
}
|
|
||||||
|
|
||||||
Client.HSplitTop(Spacing, 0, &Client);
|
Client.HSplitTop(Spacing, 0, &Client);
|
||||||
Client.HSplitTop(ButtonHeight, &Button, &Client);
|
Client.HSplitTop(ButtonHeight, &Button, &Client);
|
||||||
static int s_AutoDemoRecord = 0;
|
static int s_AutoDemoRecord = 0;
|
||||||
|
|
Loading…
Reference in a new issue