Skip to main content

FlxUIDropDownHeader

Kindclass
Packageflixel.addons.ui
Full nameflixel.addons.ui.FlxUIDropDownHeader
Sourcesource/source-haxelib-patches/flixel/addons/ui/FlxUIDropDownMenu.hx
ExtendsFlxUIGroup

Header for a FlxUIDropDownMenu

Public fields​

NameTypeStaticDefaultNotes
backgroundFlxSpriteno—The background of the header.
textFlxUITextno—The text that displays the currently selected item.
buttonFlxUISpriteButtonno—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

ParameterTypeDefault
Width (optional)Int120
Background (optional)FlxSprite—
Text (optional)FlxUIText—
Button (optional)FlxUISpriteButton—

View source

destroy​

override function destroy():Void

View source