mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Replace POPUP_PURE
with generic PopupMessage
This commit is contained in:
parent
ead708e35d
commit
d3c9311156
|
@ -1510,13 +1510,6 @@ int CMenus::Render()
|
|||
}
|
||||
ExtraAlign = 0;
|
||||
}
|
||||
else if(m_Popup == POPUP_PURE)
|
||||
{
|
||||
pTitle = Localize("Disconnected");
|
||||
pExtraText = Localize("The server is running a non-standard tuning on a pure game type.");
|
||||
pButtonText = Localize("Ok");
|
||||
ExtraAlign = -1;
|
||||
}
|
||||
else if(m_Popup == POPUP_DELETE_DEMO)
|
||||
{
|
||||
pTitle = Localize("Delete demo");
|
||||
|
@ -2528,7 +2521,7 @@ void CMenus::OnRender()
|
|||
{
|
||||
Client()->Disconnect();
|
||||
SetActive(true);
|
||||
m_Popup = POPUP_PURE;
|
||||
PopupMessage(Localize("Disconnected"), Localize("The server is running a non-standard tuning on a pure game type."), Localize("Ok"));
|
||||
}
|
||||
|
||||
if(!IsActive())
|
||||
|
|
|
@ -684,7 +684,6 @@ public:
|
|||
POPUP_CONNECTING,
|
||||
POPUP_MESSAGE,
|
||||
POPUP_DISCONNECTED,
|
||||
POPUP_PURE,
|
||||
POPUP_LANGUAGE,
|
||||
POPUP_COUNTRY,
|
||||
POPUP_DELETE_DEMO,
|
||||
|
|
Loading…
Reference in a new issue