class flixel.addons.ui.FlxUIDropDownHeader extends FlxUIGroup

import flixel.addons.ui.FlxUIDropDownMenu;

Available on all platforms

Header for a FlxUIDropDownMenu

Instance Fields

var background:FlxSprite

The background of the header.

var button:FlxUISpriteButton

The button that toggles the visibility of the dropdown panel.

var text:FlxUIText

The text that displays the currently selected item.

function new(?Width:Int = 120, ?Background:FlxSprite = null, ?Text:FlxUIText = null, ?Button:FlxUISpriteButton = null):Void

Creates a new dropdown header to be used in a FlxUIDropDownMenu. * *

Width

Width of the dropdown - only relevant when no back sprite was specified *

Back

Optional sprite to be placed in the background *

Text

Optional text that displays the current value *

Button

Optional button that toggles the dropdown list

function destroy():Void