Prompt
| Kind | class |
| Package | objects |
| Full name | objects.Prompt |
| Source | source/objects/Prompt.hx |
| Extends | MusicBeatSubstate |
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
okc | Void->Void | no | — | — |
cancelc | Void->Void | no | — | — |
Public methods
new (constructor)
function new(promptText:String = '', defaultSelected:Int = 0, okCallback:Void->Void, cancelCallback:Void->Void,acceptOnDefault:Bool=false,option1:String=null,option2:String=null)
| Parameter | Type | Default |
|---|---|---|
promptText (optional) | String | '' |
defaultSelected (optional) | Int | 0 |
okCallback | Void->Void, cancelCallback:Void->Void,acceptOnDefault:Bool=false,option1:String=null,option2:String=null | — |
create
override function create():Void
Internals
Private / internal members
| Field | Type | Static |
|---|---|---|
selected | — | no |
buttons | FlxSprite | no |
theText | String | no |
goAnyway | Bool | no |
UI_box | FlxUIPopup | no |
panel | FlxSprite | no |
panelbg | FlxSprite | no |
buttonAccept | FlxButton | no |
buttonNo | FlxButton | no |
cornerSize | Int | no |
| Method |
|---|
function makeSelectorGraphic(panel:FlxSprite, w, h, color:FlxColor) |
function drawCircleCornerOnSelector(panel:FlxSprite, flipX:Bool, flipY:Bool, color:FlxColor) |