mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-12 19:18:20 +00:00
Minor textual changes in client
This commit is contained in:
parent
4c2e01114f
commit
c5b36f8038
|
@ -528,7 +528,7 @@ void CMenus::RenderServerbrowserServerList(CUIRect View)
|
||||||
// render quick search
|
// render quick search
|
||||||
CUIRect QuickSearch, Button;
|
CUIRect QuickSearch, Button;
|
||||||
Status.VSplitLeft(240.0f, &QuickSearch, &Status);
|
Status.VSplitLeft(240.0f, &QuickSearch, &Status);
|
||||||
const char *pLabel = Localize("Quick search:");
|
const char *pLabel = Localize("Search:");
|
||||||
UI()->DoLabelScaled(&QuickSearch, pLabel, 12.0f, -1);
|
UI()->DoLabelScaled(&QuickSearch, pLabel, 12.0f, -1);
|
||||||
float w = TextRender()->TextWidth(0, 12.0f, pLabel, -1);
|
float w = TextRender()->TextWidth(0, 12.0f, pLabel, -1);
|
||||||
QuickSearch.VSplitLeft(w, 0, &QuickSearch);
|
QuickSearch.VSplitLeft(w, 0, &QuickSearch);
|
||||||
|
|
|
@ -1365,11 +1365,11 @@ void CMenus::RenderSettingsHUD(CUIRect MainView)
|
||||||
TextRender()->TextColor(rgb.r, rgb.g, rgb.b, 1.0f);
|
TextRender()->TextColor(rgb.r, rgb.g, rgb.b, 1.0f);
|
||||||
char name[16];
|
char name[16];
|
||||||
str_copy(name, g_Config.m_PlayerName, sizeof(name));
|
str_copy(name, g_Config.m_PlayerName, sizeof(name));
|
||||||
str_format(aBuf, sizeof(aBuf), ": %s: %s!", name, Localize ("This is a highlighted message"));
|
str_format(aBuf, sizeof(aBuf), ": %s: %s", name, Localize ("Look out!"));
|
||||||
while (TextRender()->TextWidth(0, 12.0f, aBuf, -1) > Button.w)
|
while (TextRender()->TextWidth(0, 12.0f, aBuf, -1) > Button.w)
|
||||||
{
|
{
|
||||||
name[str_length(name) - 1] = 0;
|
name[str_length(name) - 1] = 0;
|
||||||
str_format(aBuf, sizeof(aBuf), ": %s: %s!", name, Localize("This is a highlighted message"));
|
str_format(aBuf, sizeof(aBuf), ": %s: %s", name, Localize("Look out!"));
|
||||||
}
|
}
|
||||||
UI()->DoLabelScaled(&Button, aBuf, 12.0f, -1);
|
UI()->DoLabelScaled(&Button, aBuf, 12.0f, -1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue