mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
Fix wrong alignment
This commit is contained in:
parent
be06146c49
commit
6fbb161846
|
@ -461,7 +461,7 @@ void CMenus::RenderServerbrowserServerList(CUIRect View)
|
||||||
if(g_Config.m_BrFilterString[0] && (pItem->m_QuickSearchHit & IServerBrowser::QUICK_PLAYER))
|
if(g_Config.m_BrFilterString[0] && (pItem->m_QuickSearchHit & IServerBrowser::QUICK_PLAYER))
|
||||||
TextRender()->TextColor(0.4f, 0.4f, 1.0f, 1);
|
TextRender()->TextColor(0.4f, 0.4f, 1.0f, 1);
|
||||||
float FontSize = 12.0f * UI()->Scale();
|
float FontSize = 12.0f * UI()->Scale();
|
||||||
UI()->DoLabelStreamed(*pItem->m_pUIElement->Get(g_OffsetColPlayers), &Button, aTemp, FontSize, -1, Button.w, 1, true);
|
UI()->DoLabelStreamed(*pItem->m_pUIElement->Get(g_OffsetColPlayers), &Button, aTemp, FontSize, 1, Button.w, 1, true);
|
||||||
TextRender()->TextColor(1, 1, 1, 1);
|
TextRender()->TextColor(1, 1, 1, 1);
|
||||||
}
|
}
|
||||||
else if(ID == COL_PING)
|
else if(ID == COL_PING)
|
||||||
|
@ -474,14 +474,14 @@ void CMenus::RenderServerbrowserServerList(CUIRect View)
|
||||||
}
|
}
|
||||||
|
|
||||||
float FontSize = 12.0f * UI()->Scale();
|
float FontSize = 12.0f * UI()->Scale();
|
||||||
UI()->DoLabelStreamed(*pItem->m_pUIElement->Get(g_OffsetColPing), &Button, aTemp, FontSize, -1, Button.w, 1, true);
|
UI()->DoLabelStreamed(*pItem->m_pUIElement->Get(g_OffsetColPing), &Button, aTemp, FontSize, 1, Button.w, 1, true);
|
||||||
TextRender()->TextColor(1.0f, 1.0f, 1.0f, 1.0f);
|
TextRender()->TextColor(1.0f, 1.0f, 1.0f, 1.0f);
|
||||||
}
|
}
|
||||||
else if(ID == COL_VERSION)
|
else if(ID == COL_VERSION)
|
||||||
{
|
{
|
||||||
const char *pVersion = pItem->m_aVersion;
|
const char *pVersion = pItem->m_aVersion;
|
||||||
float FontSize = 12.0f * UI()->Scale();
|
float FontSize = 12.0f * UI()->Scale();
|
||||||
UI()->DoLabelStreamed(*pItem->m_pUIElement->Get(g_OffsetColVersion), &Button, pVersion, FontSize, -1, Button.w, 1, true);
|
UI()->DoLabelStreamed(*pItem->m_pUIElement->Get(g_OffsetColVersion), &Button, pVersion, FontSize, 1, Button.w, 1, true);
|
||||||
}
|
}
|
||||||
else if(ID == COL_GAMETYPE)
|
else if(ID == COL_GAMETYPE)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue