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

var custom:String

A custom display name for this object, if there is any.

var editing:Bool

Whether the entry is currently being edited or not.

var field:String

The member variable of that object.

var nameDisplay:TextField

The Flash TextField object used to display this entry's name.

var object:Dynamic

The Object being watched.

var oldValue:Dynamic

The value of the field before it was edited.

var quickWatch:Bool

Whether this entry is a quickWatch or not.

var valueDisplay:TextField

The Flash TextField object used to display and edit this entry's value.

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 cancel():Void

Cancel the current edits and stop editing.

function destroy():Void

Clean up memory.

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 setY(Y:Float):Void

Set the watch window Y height of the Flash TextField objects.

function submit():Void

Submit the current edits and stop editing.

function toString():String

function updateValue():Bool

Update the variable value on display with the current in-game value.

function updateWidth(NameWidth:Float, ValueWidth:Float):Void

Adjust the width of the Flash TextField objects.