class flixel.system.debug.WatchEntry implements IFlxDestroyable
Available on all platforms
Helper class for the debugger overlay's Watch window. * Handles the display and modification of game variables on the fly.
Instance Fields
function new(Y:Float, NameWidth:Float, ValueWidth:Float, Obj:Dynamic, Field:String, ?Custom:String = null):Void
Creates a new watch entry in the watch window. * Will be a "quickWatch" when Obj and Field are null, but a Custom name is set. * *
Y | The initial height in the Watch window. * |
NameWidth | The initial width of the name field. * |
ValueWidth | The initial width of the value field. * |
Obj | The Object containing the variable we want to watch. * |
Field | The variable name we want to watch. * |
Custom | A custom display name (optional). |
function onKeyUp(FlashEvent:KeyboardEvent):Void
Check to see if Enter, Tab or Escape were just released. * Enter or Tab submit the change, and Escape cancels it. *
FlashEvent | Flash keyboard event. |
function onMouseUp(FlashEvent:MouseEvent):Void
A watch entry was clicked, so flip into edit mode for that entry. *
FlashEvent | Flash mouse event. |
function updateWidth(NameWidth:Float, ValueWidth:Float):Void
Adjust the width of the Flash TextField objects.