mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Change "Set Ping" message
This commit is contained in:
parent
c6cca39ace
commit
e2efec67ec
|
@ -1117,8 +1117,8 @@ void CMenus::RenderSettingsDDRace(CUIRect MainView)
|
||||||
char aBuf[64];
|
char aBuf[64];
|
||||||
str_format(aBuf, sizeof(aBuf), "%d", g_Config.m_ClSetPing);
|
str_format(aBuf, sizeof(aBuf), "%d", g_Config.m_ClSetPing);
|
||||||
MainView.HSplitTop(20.0f, &Button, &MainView);
|
MainView.HSplitTop(20.0f, &Button, &MainView);
|
||||||
UI()->DoLabelScaled(&Button, Localize("Set Ping"), 14.0f, -1);
|
UI()->DoLabelScaled(&Button, Localize("Set Ping (increase prediction)"), 14.0f, -1);
|
||||||
Button.VSplitLeft(190.0f, 0, &Button);
|
Button.VSplitLeft(300.0f, 0, &Button);
|
||||||
static float Offset = 0.0f;
|
static float Offset = 0.0f;
|
||||||
DoEditBox(&g_Config.m_ClSetPing, &Button, aBuf, sizeof(aBuf), 14.0f, &Offset);
|
DoEditBox(&g_Config.m_ClSetPing, &Button, aBuf, sizeof(aBuf), 14.0f, &Offset);
|
||||||
g_Config.m_ClSetPing = min(900, max(0, str_toint(aBuf)));
|
g_Config.m_ClSetPing = min(900, max(0, str_toint(aBuf)));
|
||||||
|
|
Loading…
Reference in a new issue