2024-02-12 20:22:51 +08:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
//----------------------------------------------------
|
|
|
|
|
|
|
|
class CMenuPool
|
|
|
|
{
|
|
|
|
private:
|
2024-07-16 23:12:10 +08:00
|
|
|
|
|
|
|
CMenu *m_pMenus[MAX_MENUS];
|
|
|
|
BOOL m_bMenuSlotState[MAX_MENUS];
|
|
|
|
BYTE m_byteCurrentMenu;
|
2024-07-16 23:24:53 +08:00
|
|
|
BYTE m_byteExited;
|
2024-07-16 23:12:10 +08:00
|
|
|
|
2024-02-12 20:22:51 +08:00
|
|
|
public:
|
|
|
|
CMenuPool();
|
2024-07-16 23:19:34 +08:00
|
|
|
~CMenuPool();
|
2024-02-12 20:22:51 +08:00
|
|
|
|
2024-07-16 23:12:10 +08:00
|
|
|
CMenu* New(BYTE byteMenuID, float fX, float fY, BYTE byteColumns, float fCol1Width, float fCol2Width, MENU_INT *MenuInteraction);
|
|
|
|
|
2024-07-16 23:13:40 +08:00
|
|
|
BOOL Delete(BYTE byteMenuID);
|
2024-07-16 23:12:10 +08:00
|
|
|
|
2024-07-16 23:24:53 +08:00
|
|
|
void ShowMenu(BYTE byteMenuID);
|
2024-07-16 23:25:58 +08:00
|
|
|
void HideMenu(BYTE byteMenuID);
|
2024-07-16 23:28:35 +08:00
|
|
|
|
|
|
|
PCHAR GetTextPointer(PCHAR szName);
|
|
|
|
|
2024-07-16 23:32:22 +08:00
|
|
|
void Process();
|
2024-02-12 20:22:51 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
//----------------------------------------------------
|