Skip to content

Menu functions

Sets value of specified menu item.

func void Menu_SetItemText(var string menuItemName, var string value) {};
  • menuItemName
  • value - text value to set
Example usage
Menu_SetItemText("MENU_ITEM_PLAYERGUILD", "Necromancer");

Returns value of text on first line (0 by default) of specific menu item.

func string Menu_GetItemText(var string menuItemName) {};
  • menuItemName
  • return - text value of menu item
Example usage
1
2
3
4
5
6
7
var string playerGuild;
playerGuild = Menu_GetItemText("MENU_ITEM_PLAYERGUILD");

if (Hlp_StrCmp(playerGuild, "Necromancer"))
{
    //...
};