GUIMenu

From Virtual World Web Wiki
Jump to: navigation, search

A component representing a menu of options to pick from

Remarks [edit]

Properties

GUIImageBox Icon {get;}
Reference to the icon on the menu's button
Guid? PersonaContext {get; set;}
A guid representing a persona this should act as though opening a context menu for

Methods

GUIComponent AddItem(string itemName, JSFlexibleFunction callback)
Adds a new menu item with a callback based on the MenuItemTemplate
GUIComponent AddItemWithTemplate(string itemName, string template, JSFlexibleFunction callback)
Adds a new menu item with a callback based on a custom template