mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 14:37:29 +08:00
62eaba43a7
* Implement/match `CMenu::GetSelectedRow()`
32 lines
592 B
C++
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();
|
|
};
|
|
|
|
//----------------------------------------------------
|