FlxUIDropDownHeader
| Kind | class |
| Package | flixel.addons.ui |
| Full name | flixel.addons.ui.FlxUIDropDownHeader |
| Source | source/source-haxelib-patches/flixel/addons/ui/FlxUIDropDownMenu.hx |
| Extends | FlxUIGroup |
Header for a FlxUIDropDownMenu
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
background | FlxSprite | no | — | The background of the header. |
text | FlxUIText | no | — | The text that displays the currently selected item. |
button | FlxUISpriteButton | no | — | The button that toggles the visibility of the dropdown panel. |
Public methods
new (constructor)
function new(Width:Int = 120, ?Background:FlxSprite, ?Text:FlxUIText, ?Button:FlxUISpriteButton)
Creates a new dropdown header to be used in a FlxUIDropDownMenu.
@param Width Width of the dropdown - only relevant when no back sprite was specified @param Back Optional sprite to be placed in the background @param Text Optional text that displays the current value @param Button Optional button that toggles the dropdown list
| Parameter | Type | Default |
|---|---|---|
Width (optional) | Int | 120 |
Background (optional) | FlxSprite | — |
Text (optional) | FlxUIText | — |
Button (optional) | FlxUISpriteButton | — |
destroy
override function destroy():Void