[saco] Imlement/match CMenuPool::HideMenu(...)

This commit is contained in:
RD42 2024-07-16 23:25:58 +08:00
parent 6fb501be50
commit b734328b5e
2 changed files with 9 additions and 0 deletions

View File

@ -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;
}

View File

@ -21,6 +21,7 @@ public:
BOOL Delete(BYTE byteMenuID);
void ShowMenu(BYTE byteMenuID);
void HideMenu(BYTE byteMenuID);
};
//----------------------------------------------------