SA-MP/saco/net/menupool.h

32 lines
592 B
C
Raw Permalink Normal View History

2024-02-12 20:22:51 +08:00
#pragma once
//----------------------------------------------------
class CMenuPool
{
private:
CMenu *m_pMenus[MAX_MENUS];
BOOL m_bMenuSlotState[MAX_MENUS];
BYTE m_byteCurrentMenu;
BYTE m_byteExited;
2024-02-12 20:22:51 +08:00
public:
CMenuPool();
~CMenuPool();
2024-02-12 20:22:51 +08:00
CMenu* New(BYTE byteMenuID, float fX, float fY, BYTE byteColumns, float fCol1Width, float fCol2Width, MENU_INT *MenuInteraction);
BOOL Delete(BYTE byteMenuID);
void ShowMenu(BYTE byteMenuID);
void HideMenu(BYTE byteMenuID);
PCHAR GetTextPointer(PCHAR szName);
void Process();
2024-02-12 20:22:51 +08:00
};
//----------------------------------------------------