mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-11 01:38:17 +08:00
[saco] Implement/match CMenu::SetTitle(...)
This commit is contained in:
1 parent
ad0b31deb5
commit
1b78a14722
2 files changed
+9
No files matched your search
@@ -26,6 +26,14 @@ CMenu::CMenu(float fX, float fY, BYTE byteColumns, float fCol1Width, float fCol2
|
||||
m_dwPanel = 0;
|
||||
}
|
||||
|
||||
void CMenu::SetTitle(PCHAR pTitle)
|
||||
{
|
||||
if(strlen(pTitle) > MAX_MENU_LINE) return;
|
||||
|
||||
memset(m_charTitle, 0, sizeof(m_charTitle));
|
||||
strcpy(m_charTitle, pTitle);
|
||||
}
|
||||
|
||||
void CMenu::Show()
|
||||
{
|
||||
ScriptCommand(&create_panel, m_charTitle[0] ? "SAMPHED" : "DUMMY", m_fXPos, m_fYPos, (m_fCol1Width + m_fCol2Width) / m_byteColumns, m_byteColumns, m_MenuInteraction.bMenu, 1, 1, &m_dwPanel);
|
||||
|
||||
@@ -40,6 +40,7 @@ public:
|
||||
|
||||
CMenu(float fX, float fY, BYTE byteColumns, float fCol1Width, float fCol2Width, MENU_INT *MenuInteraction);
|
||||
|
||||
void SetTitle(PCHAR pTitle);
|
||||
void Show();
|
||||
void Hide();
|
||||
PCHAR GetMenuItem(BYTE byteColumn, BYTE byteRow);
|
||||
|
||||
Reference in new issue
Block a user