class flixel.addons.ui.FlxUIState extends FlxState implements IFlxUIState implements IEventGetter

Available on all platforms

This is a simple extension of FlxState that does two things: * 1) It implements the IFlxUIState interface * 2) Automatically creates a FlxUI objects from a single string id * * Usage: * Create a class that extends FlxUIState, override create, and * before you call super.create(), set xmlid to the string id * of the corresponding UI xml file (leave off the extension). * * @author Lars Doucet

Class Fields

Instance Fields

function new():Void

function create():Void

function destroy():Void

function forceFocus(b:Bool, thing:IFlxUIWidget):Void

function getEvent(id:String, sender:Dynamic, data:Dynamic, ?params:Array<Dynamic> = null):Void

function getRequest(id:String, sender:Dynamic, data:Dynamic, ?params:Array<Dynamic> = null):Dynamic

function getText(Flag:String, ?Context:String = 'ui', ?Safe:Bool = true):String

function onCursorEvent(code:String, target:IFlxUIWidget):Void

function onResize(Width:Int, Height:Int):Void

function resizeScreen(?width:Float = 800, ?height:Float = 600):Void

function update():Void