mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
[saco] Imlement/match CMenuPool::HideMenu(...)
This commit is contained in:
parent
6fb501be50
commit
b734328b5e
@ -92,3 +92,11 @@ void CMenuPool::ShowMenu(BYTE byteMenuID)
|
||||
m_byteExited = 0;
|
||||
}
|
||||
|
||||
void CMenuPool::HideMenu(BYTE byteMenuID)
|
||||
{
|
||||
if (byteMenuID >= MAX_MENUS || m_byteCurrentMenu == MAX_MENUS) return;
|
||||
if (m_bMenuSlotState[byteMenuID] == FALSE || !m_pMenus[byteMenuID]) return;
|
||||
m_pMenus[byteMenuID]->Hide();
|
||||
m_byteCurrentMenu = MAX_MENUS;
|
||||
}
|
||||
|
||||
|
@ -21,6 +21,7 @@ public:
|
||||
BOOL Delete(BYTE byteMenuID);
|
||||
|
||||
void ShowMenu(BYTE byteMenuID);
|
||||
void HideMenu(BYTE byteMenuID);
|
||||
};
|
||||
|
||||
//----------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user