mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 01:24:18 +00:00
Minor refactoring of settings menus
- Use `IGraphics::CORNER_NONE` instead of `0`. - Remove redundant usage of `Localize` for an already localized string. - Remove redundant `HSplitBottom` with zero size.
This commit is contained in:
parent
16fd3401e2
commit
8d65e0ac34
|
@ -617,7 +617,6 @@ void CMenus::RenderServerbrowserFilters(CUIRect View)
|
|||
{
|
||||
CUIRect ServerFilter = View, FilterHeader;
|
||||
const float FontSize = 12.0f;
|
||||
ServerFilter.HSplitBottom(0.0f, &ServerFilter, 0);
|
||||
|
||||
// server filter
|
||||
ServerFilter.HSplitTop(ms_ListheaderHeight, &FilterHeader, &ServerFilter);
|
||||
|
@ -1109,7 +1108,7 @@ void CMenus::RenderServerbrowserServerDetail(CUIRect View)
|
|||
for(auto &Label : s_aLabels)
|
||||
{
|
||||
LeftColumn.HSplitTop(15.0f, &Row, &LeftColumn);
|
||||
UI()->DoLabel(&Row, Localize(Label), FontSize, TEXTALIGN_ML);
|
||||
UI()->DoLabel(&Row, Label, FontSize, TEXTALIGN_ML);
|
||||
}
|
||||
|
||||
RightColumn.HSplitTop(15.0f, &Row, &RightColumn);
|
||||
|
@ -1692,7 +1691,7 @@ void CMenus::RenderServerbrowser(CUIRect MainView)
|
|||
ToolboxPage = 0;
|
||||
|
||||
static CButtonContainer s_InfoTab;
|
||||
if(DoButton_MenuTab(&s_InfoTab, Localize("Info"), ToolboxPage == 1, &TabButton1, 0, NULL, NULL, NULL, NULL, 4.0f))
|
||||
if(DoButton_MenuTab(&s_InfoTab, Localize("Info"), ToolboxPage == 1, &TabButton1, IGraphics::CORNER_NONE, NULL, NULL, NULL, NULL, 4.0f))
|
||||
ToolboxPage = 1;
|
||||
|
||||
static CButtonContainer s_FriendsTab;
|
||||
|
|
Loading…
Reference in a new issue