mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Don't deactivate menu when a popup is active
This commit is contained in:
parent
b95ad532ee
commit
9e35752d1c
|
@ -1348,6 +1348,7 @@ int CMenus::Render()
|
||||||
{
|
{
|
||||||
Client()->DummyDisconnect(0);
|
Client()->DummyDisconnect(0);
|
||||||
m_Popup = POPUP_NONE;
|
m_Popup = POPUP_NONE;
|
||||||
|
SetActive(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(m_Popup == POPUP_PASSWORD)
|
else if(m_Popup == POPUP_PASSWORD)
|
||||||
|
@ -2103,7 +2104,7 @@ void CMenus::OnRender()
|
||||||
void CMenus::RenderBackground()
|
void CMenus::RenderBackground()
|
||||||
{
|
{
|
||||||
Graphics()->BlendNormal();
|
Graphics()->BlendNormal();
|
||||||
|
|
||||||
float sw = 300*Graphics()->ScreenAspect();
|
float sw = 300*Graphics()->ScreenAspect();
|
||||||
float sh = 300;
|
float sh = 300;
|
||||||
Graphics()->MapScreen(0, 0, sw, sh);
|
Graphics()->MapScreen(0, 0, sw, sh);
|
||||||
|
|
|
@ -83,9 +83,9 @@ void CMenus::RenderGame(CUIRect MainView)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Client()->DummyDisconnect(0);
|
Client()->DummyDisconnect(0);
|
||||||
|
SetActive(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
SetActive(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ButtonBar.VSplitRight(5.0f, &ButtonBar, 0);
|
ButtonBar.VSplitRight(5.0f, &ButtonBar, 0);
|
||||||
|
|
Loading…
Reference in a new issue