mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 01:24:18 +00:00
Merge pull request #8029 from Robyt3/Menus-RenderPopupFullscreen-Function
Extract `CMenus::RenderPopupFullscreen` function
This commit is contained in:
commit
9620a9d3d9
|
@ -1157,6 +1157,20 @@ void CMenus::Render()
|
|||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
RenderPopupFullscreen(Screen);
|
||||
}
|
||||
|
||||
UI()->RenderPopupMenus();
|
||||
|
||||
// Handle this escape hotkey after popup menus
|
||||
if(!m_ShowStart && Client()->State() == IClient::STATE_OFFLINE && UI()->ConsumeHotkey(CUI::HOTKEY_ESCAPE))
|
||||
{
|
||||
m_ShowStart = true;
|
||||
}
|
||||
}
|
||||
|
||||
void CMenus::RenderPopupFullscreen(CUIRect Screen)
|
||||
{
|
||||
char aBuf[1536];
|
||||
const char *pTitle = "";
|
||||
|
@ -1854,15 +1868,6 @@ void CMenus::Render()
|
|||
UI()->SetActiveItem(nullptr);
|
||||
}
|
||||
|
||||
UI()->RenderPopupMenus();
|
||||
|
||||
// Handle this escape hotkey after popup menus
|
||||
if(!m_ShowStart && Client()->State() == IClient::STATE_OFFLINE && UI()->ConsumeHotkey(CUI::HOTKEY_ESCAPE))
|
||||
{
|
||||
m_ShowStart = true;
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(CONF_VIDEORECORDER)
|
||||
void CMenus::PopupConfirmDemoReplaceVideo()
|
||||
{
|
||||
|
|
|
@ -420,6 +420,7 @@ protected:
|
|||
|
||||
// found in menus.cpp
|
||||
void Render();
|
||||
void RenderPopupFullscreen(CUIRect Screen);
|
||||
#if defined(CONF_VIDEORECORDER)
|
||||
void PopupConfirmDemoReplaceVideo();
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue