mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +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
|
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];
|
char aBuf[1536];
|
||||||
const char *pTitle = "";
|
const char *pTitle = "";
|
||||||
|
@ -1854,15 +1868,6 @@ void CMenus::Render()
|
||||||
UI()->SetActiveItem(nullptr);
|
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)
|
#if defined(CONF_VIDEORECORDER)
|
||||||
void CMenus::PopupConfirmDemoReplaceVideo()
|
void CMenus::PopupConfirmDemoReplaceVideo()
|
||||||
{
|
{
|
||||||
|
|
|
@ -420,6 +420,7 @@ protected:
|
||||||
|
|
||||||
// found in menus.cpp
|
// found in menus.cpp
|
||||||
void Render();
|
void Render();
|
||||||
|
void RenderPopupFullscreen(CUIRect Screen);
|
||||||
#if defined(CONF_VIDEORECORDER)
|
#if defined(CONF_VIDEORECORDER)
|
||||||
void PopupConfirmDemoReplaceVideo();
|
void PopupConfirmDemoReplaceVideo();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue