GUIMenu

From Virtual World Web Wiki
Revision as of 12:55, 26 May 2017 by Spark5 (Talk | contribs) (Documentation for the GUIMenu class)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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