2294: Make the learn button fit (fixes #2293) r=edg-l a=def-

![screenshot_2020-06-20_14-57-03](https://user-images.githubusercontent.com/2335377/85202386-55454480-b306-11ea-99f5-e37ba6e616b5.png)


Co-authored-by: def <dennis@felsin9.de>
This commit is contained in:
bors[bot] 2020-06-21 09:31:51 +00:00 committed by GitHub
commit 80f19b789a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -674,14 +674,14 @@ int CMenus::RenderMenubar(CUIRect r)
if(Client()->State() == IClient::STATE_OFFLINE)
{
// offline menus
Box.VSplitLeft(90.0f, &Button, &Box);
Box.VSplitLeft(60.0f, &Button, &Box);
static int s_NewsButton=0;
if(DoButton_MenuTab(&s_NewsButton, Localize("News"), m_ActivePage==PAGE_NEWS, &Button, CUI::CORNER_TL))
{
NewPage = PAGE_NEWS;
m_DoubleClickIndex = -1;
}
Box.VSplitLeft(100.0f, &Button, &Box);
Box.VSplitLeft(60.0f, &Button, &Box);
static int s_LearnButton=0;
if(DoButton_MenuTab(&s_LearnButton, Localize("Learn"), false, &Button, CUI::CORNER_TR))
{
@ -692,7 +692,7 @@ int CMenus::RenderMenubar(CUIRect r)
m_DoubleClickIndex = -1;
}
Box.VSplitLeft(10.0f, 0, &Box);
Box.VSplitLeft(5.0f, 0, &Box);
Box.VSplitLeft(100.0f, &Button, &Box);
static int s_InternetButton=0;
@ -750,8 +750,8 @@ int CMenus::RenderMenubar(CUIRect r)
m_DoubleClickIndex = -1;
}
Box.VSplitLeft(10.0f, 0, &Box);
Box.VSplitLeft(100.0f, &Button, &Box);
Box.VSplitLeft(5.0f, 0, &Box);
Box.VSplitLeft(80.0f, &Button, &Box);
static int s_DemosButton=0;
if(DoButton_MenuTab(&s_DemosButton, Localize("Demos"), m_ActivePage==PAGE_DEMOS, &Button, CUI::CORNER_T))
{