SA-MP/saco/net/menupool.h
RD42 62eaba43a7 [saco] Implement/match CMenuPool::Process()
* Implement/match `CMenu::GetSelectedRow()`
2024-07-16 23:32:22 +08:00

32 lines
592 B
C++

#pragma once
//----------------------------------------------------
class CMenuPool
{
private:
CMenu *m_pMenus[MAX_MENUS];
BOOL m_bMenuSlotState[MAX_MENUS];
BYTE m_byteCurrentMenu;
BYTE m_byteExited;
public:
CMenuPool();
~CMenuPool();
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();
};
//----------------------------------------------------