mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Add key binding for R to refresh serverbrowser
This commit is contained in:
parent
b6008f5b20
commit
db60bf6527
|
@ -937,7 +937,6 @@ int CMenus::Render()
|
|||
TabBar.VMargin(20.0f, &TabBar);
|
||||
RenderMenubar(TabBar);
|
||||
|
||||
// news is not implemented yet
|
||||
if(g_Config.m_UiPage < PAGE_NEWS || g_Config.m_UiPage > PAGE_SETTINGS || (Client()->State() == IClient::STATE_OFFLINE && g_Config.m_UiPage >= PAGE_GAME && g_Config.m_UiPage <= PAGE_CALLVOTE))
|
||||
{
|
||||
ServerBrowser()->Refresh(IServerBrowser::TYPE_INTERNET);
|
||||
|
|
|
@ -189,6 +189,8 @@ void CMenus::RenderServerbrowserServerList(CUIRect View)
|
|||
else
|
||||
g_Config.m_UiToolboxPage = (g_Config.m_UiToolboxPage + 3 + 1) % 3;
|
||||
}
|
||||
if(m_aInputEvents[i].m_Key == 'r')
|
||||
ServerBrowser()->Refresh(ServerBrowser()->GetCurrentType());
|
||||
}
|
||||
if(NewIndex > -1 && NewIndex < NumServers)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue