A radial menu that pops up around the mouse.
Constructor
new (parent:DisplayObjectContainer, numButtons:Int, ?outerRadius:Float, ?iconRadius:Float, ?innerRadius:Float, ?defaultHandler:Dynamic)
Constructor @parem innerRadius The radius of the inner circle at the center of the menu.
Parameters:
parent | The parent DisplayObjectContainer on which to add this component. |
---|---|
numButtons | The number of segments in the menu |
outerRadius | The radius of the menu as a whole. |
defaultHandler | The event handling function to handle the default event for this component (select in this case). |
Variables
Methods
setItem (index:Int, iconOrLabel:Dynamic, ?data:Dynamic):Void
Sets the icon / text and data for a specific menu item. @iconOrLabel Either a display object instance, a class that extends DisplayObject, or text to show in a label. @data Any data to associate with the item.
Parameters:
index | The index of the item to set icon/text and data for. |
---|