Returns value of text on first line (0 by default) of specified menu item.
| func string Menu_GetItemText(var string menuItemName, var int line) {};
|
menuItemName line – index of text lines array return – text value of menu item
| Example usage |
|---|
| var string playerGuild;
playerGuild = Menu_GetItemText("MENU_ITEM_PLAYERGUILD", 0);
if (Hlp_StrCmp(playerGuild, "Necromancer"))
{
//...
};
|
Sets value of specified menu item.
| func void Menu_SetItemText(var string menuItemName, var string value, var int line, var int drawNow) {};
|
menuItemName value – text value to set line – index of text lines array drawNow
| Example usage |
|---|
| Menu_SetItemText("MENU_ITEM_PLAYERGUILD", "Necromancer", 0, TRUE);
|