Skip to main content

FlxUIDropDownHeader

Kindclass
Packageobjects
Full nameobjects.FlxUIDropDownHeader
Sourcesource/objects/FlxUIDropDownMenuCustom.hx
ExtendsFlxUIGroup

Header for a FlxUIDropDownMenuCustom

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 FlxUIDropDownMenuCustom.

@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