mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Infinity = no limit
This commit is contained in:
parent
2dec3d771a
commit
02aeae416b
|
@ -179,7 +179,7 @@ void CMenus::RenderSettingsGeneral(CUIRect MainView)
|
||||||
if(g_Config.m_ClAutoDemoMax)
|
if(g_Config.m_ClAutoDemoMax)
|
||||||
str_format(aBuf, sizeof(aBuf), "%s: %i", Localize("Max demos"), g_Config.m_ClAutoDemoMax);
|
str_format(aBuf, sizeof(aBuf), "%s: %i", Localize("Max demos"), g_Config.m_ClAutoDemoMax);
|
||||||
else
|
else
|
||||||
str_format(aBuf, sizeof(aBuf), "%s: %s", Localize("Max demos"), Localize("no limit"));
|
str_format(aBuf, sizeof(aBuf), "%s: %s", Localize("Max demos"), "∞");
|
||||||
UI()->DoLabelScaled(&Label, aBuf, 13.0f, -1);
|
UI()->DoLabelScaled(&Label, aBuf, 13.0f, -1);
|
||||||
Left.HSplitTop(20.0f, &Button, 0);
|
Left.HSplitTop(20.0f, &Button, 0);
|
||||||
Button.HMargin(2.0f, &Button);
|
Button.HMargin(2.0f, &Button);
|
||||||
|
@ -191,7 +191,7 @@ void CMenus::RenderSettingsGeneral(CUIRect MainView)
|
||||||
if(g_Config.m_ClAutoScreenshotMax)
|
if(g_Config.m_ClAutoScreenshotMax)
|
||||||
str_format(aBuf, sizeof(aBuf), "%s: %i", Localize("Max Screenshots"), g_Config.m_ClAutoScreenshotMax);
|
str_format(aBuf, sizeof(aBuf), "%s: %i", Localize("Max Screenshots"), g_Config.m_ClAutoScreenshotMax);
|
||||||
else
|
else
|
||||||
str_format(aBuf, sizeof(aBuf), "%s: %s", Localize("Max Screenshots"), Localize("no limit"));
|
str_format(aBuf, sizeof(aBuf), "%s: %s", Localize("Max Screenshots"), "∞");
|
||||||
UI()->DoLabelScaled(&Label, aBuf, 13.0f, -1);
|
UI()->DoLabelScaled(&Label, aBuf, 13.0f, -1);
|
||||||
Right.HSplitTop(20.0f, &Button, 0);
|
Right.HSplitTop(20.0f, &Button, 0);
|
||||||
Button.HMargin(2.0f, &Button);
|
Button.HMargin(2.0f, &Button);
|
||||||
|
@ -205,7 +205,7 @@ void CMenus::RenderSettingsGeneral(CUIRect MainView)
|
||||||
if(g_Config.m_ClRefreshRate)
|
if(g_Config.m_ClRefreshRate)
|
||||||
str_format(aBuf, sizeof(aBuf), "%s: %i Hz", Localize("Refresh Rate"), g_Config.m_ClRefreshRate);
|
str_format(aBuf, sizeof(aBuf), "%s: %i Hz", Localize("Refresh Rate"), g_Config.m_ClRefreshRate);
|
||||||
else
|
else
|
||||||
str_format(aBuf, sizeof(aBuf), "%s: %s", Localize("Refresh Rate"), Localize("no limit"));
|
str_format(aBuf, sizeof(aBuf), "%s: %s", Localize("Refresh Rate"), "∞");
|
||||||
UI()->DoLabelScaled(&Label, aBuf, 13.0f, -1);
|
UI()->DoLabelScaled(&Label, aBuf, 13.0f, -1);
|
||||||
Left.HSplitTop(20.0f, &Button, 0);
|
Left.HSplitTop(20.0f, &Button, 0);
|
||||||
Button.HMargin(2.0f, &Button);
|
Button.HMargin(2.0f, &Button);
|
||||||
|
@ -236,7 +236,7 @@ void CMenus::RenderSettingsGeneral(CUIRect MainView)
|
||||||
if(g_Config.m_ClAutoStatboardScreenshotMax)
|
if(g_Config.m_ClAutoStatboardScreenshotMax)
|
||||||
str_format(aBuf, sizeof(aBuf), "%s: %i", Localize("Max Screenshots"), g_Config.m_ClAutoStatboardScreenshotMax);
|
str_format(aBuf, sizeof(aBuf), "%s: %i", Localize("Max Screenshots"), g_Config.m_ClAutoStatboardScreenshotMax);
|
||||||
else
|
else
|
||||||
str_format(aBuf, sizeof(aBuf), "%s: %s", Localize("Max Screenshots"), Localize("no limit"));
|
str_format(aBuf, sizeof(aBuf), "%s: %s", Localize("Max Screenshots"), "∞");
|
||||||
UI()->DoLabelScaled(&Label, aBuf, 13.0f, -1);
|
UI()->DoLabelScaled(&Label, aBuf, 13.0f, -1);
|
||||||
Right.HSplitTop(20.0f, &Button, 0);
|
Right.HSplitTop(20.0f, &Button, 0);
|
||||||
Button.HMargin(2.0f, &Button);
|
Button.HMargin(2.0f, &Button);
|
||||||
|
@ -264,7 +264,7 @@ void CMenus::RenderSettingsGeneral(CUIRect MainView)
|
||||||
if (g_Config.m_ClAutoCSVMax)
|
if (g_Config.m_ClAutoCSVMax)
|
||||||
str_format(aBuf, sizeof(aBuf), "%s: %i", Localize("Max CSVs"), g_Config.m_ClAutoCSVMax);
|
str_format(aBuf, sizeof(aBuf), "%s: %i", Localize("Max CSVs"), g_Config.m_ClAutoCSVMax);
|
||||||
else
|
else
|
||||||
str_format(aBuf, sizeof(aBuf), "%s: %s", Localize("Max CSVs"), Localize("no limit"));
|
str_format(aBuf, sizeof(aBuf), "%s: %s", Localize("Max CSVs"), "∞");
|
||||||
UI()->DoLabelScaled(&Label, aBuf, 13.0f, -1);
|
UI()->DoLabelScaled(&Label, aBuf, 13.0f, -1);
|
||||||
Right.HSplitTop(20.0f, &Button, 0);
|
Right.HSplitTop(20.0f, &Button, 0);
|
||||||
Button.HMargin(2.0f, &Button);
|
Button.HMargin(2.0f, &Button);
|
||||||
|
@ -1080,7 +1080,7 @@ void CMenus::RenderSettingsGraphics(CUIRect MainView)
|
||||||
if(g_Config.m_GfxRefreshRate)
|
if(g_Config.m_GfxRefreshRate)
|
||||||
str_format(aBuf, sizeof(aBuf), "%s: %i Hz", Localize("Refresh Rate"), g_Config.m_GfxRefreshRate);
|
str_format(aBuf, sizeof(aBuf), "%s: %i Hz", Localize("Refresh Rate"), g_Config.m_GfxRefreshRate);
|
||||||
else
|
else
|
||||||
str_format(aBuf, sizeof(aBuf), "%s: %s", Localize("Refresh Rate"), Localize("no limit"));
|
str_format(aBuf, sizeof(aBuf), "%s: %s", Localize("Refresh Rate"), "∞");
|
||||||
UI()->DoLabelScaled(&Label, aBuf, 14.0f, -1);
|
UI()->DoLabelScaled(&Label, aBuf, 14.0f, -1);
|
||||||
Button.HMargin(2.0f, &Button);
|
Button.HMargin(2.0f, &Button);
|
||||||
g_Config.m_GfxRefreshRate = static_cast<int>(DoScrollbarH(&g_Config.m_GfxRefreshRate, &Button, g_Config.m_GfxRefreshRate/1000.0f)*1000.0f+0.1f);
|
g_Config.m_GfxRefreshRate = static_cast<int>(DoScrollbarH(&g_Config.m_GfxRefreshRate, &Button, g_Config.m_GfxRefreshRate/1000.0f)*1000.0f+0.1f);
|
||||||
|
|
Loading…
Reference in a new issue