mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
enter server browser when pressing 'enter'. Closes #1146
This commit is contained in:
parent
dbc43249a5
commit
ead8b9c82c
|
@ -106,12 +106,12 @@ void CMenus::RenderStartMenu(CUIRect MainView)
|
|||
static int s_PlayButton = 0;
|
||||
if(g_Config.m_ClShowStartMenuImages)
|
||||
{
|
||||
if(DoButton_MenuImage(&s_PlayButton, Localize("Play"), 0, &Button, "play_game", 10.0f, 0.5f))
|
||||
if(DoButton_MenuImage(&s_PlayButton, Localize("Play"), 0, &Button, "play_game", 10.0f, 0.5f) || m_EnterPressed)
|
||||
NewPage = g_Config.m_UiBrowserPage;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(DoButton_Menu(&s_PlayButton, Localize("Play"), 0, &Button, CUI::CORNER_ALL, 10.0f, 0.5f))
|
||||
if(DoButton_Menu(&s_PlayButton, Localize("Play"), 0, &Button, CUI::CORNER_ALL, 10.0f, 0.5f) || m_EnterPressed)
|
||||
NewPage = g_Config.m_UiBrowserPage;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue