mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
added shortcuts to refresh browsers
This commit is contained in:
parent
274c222051
commit
a00fbf1121
|
@ -1583,7 +1583,7 @@ void CMenus::RenderServerbrowserBottomBox(CUIRect MainView)
|
|||
MainView.HSplitTop(25.0f, &MainView, 0);
|
||||
MainView.VSplitLeft(ButtonWidth, &Button, &MainView);
|
||||
static int s_RefreshButton=0;
|
||||
if(DoButton_Menu(&s_RefreshButton, Localize("Refresh"), 0, &Button))
|
||||
if(DoButton_Menu(&s_RefreshButton, Localize("Refresh"), 0, &Button) || (Input()->KeyPress(KEY_R) && (Input()->KeyIsPressed(KEY_LCTRL) || Input()->KeyIsPressed(KEY_RCTRL))))
|
||||
{
|
||||
if(m_MenuPage == PAGE_INTERNET)
|
||||
ServerBrowser()->Refresh(IServerBrowser::REFRESHFLAG_INTERNET);
|
||||
|
|
|
@ -464,7 +464,7 @@ void CMenus::RenderDemoList(CUIRect MainView)
|
|||
BottomView.HSplitTop(25.0f, &BottomView, 0);
|
||||
BottomView.VSplitLeft(ButtonWidth, &Button, &BottomView);
|
||||
static int s_RefreshButton = 0;
|
||||
if(DoButton_Menu(&s_RefreshButton, Localize("Refresh"), 0, &Button))
|
||||
if(DoButton_Menu(&s_RefreshButton, Localize("Refresh"), 0, &Button) || (Input()->KeyPress(KEY_R) && (Input()->KeyIsPressed(KEY_LCTRL) || Input()->KeyIsPressed(KEY_RCTRL))))
|
||||
{
|
||||
DemolistPopulate();
|
||||
DemolistOnUpdate(false);
|
||||
|
|
Loading…
Reference in a new issue