Panel to display an array of
FunctionSpec objects. This includes their names and
parameters as well as a way to edit the parameters and call each function individually. A
ParameterPanel is used to display each function's parameters.
protected var _ctrl:AVRGameControl
protected var _functions:Object
protected var _output:TextField
protected var _selected:FunctionEntry
protected var _sequenced:Boolean
protected static var _sequenceId:int = 0
public function FunctionPanel(ctrl:AVRGameControl, functions:Array, sequenced:Boolean)
Creates a new function panel. Function names are in the left hand column. Clicking on a
function name displays the parameter panel on the right. Clicking on the parameter panel
call button invokes the function.
Parameters
| ctrl:AVRGameControl — the game control to use to display feedback when a function is called
|
| |
| functions:Array — array of FunctionSpec objects
|
| |
| sequenced:Boolean — whether to pass in an extra sequence paramter when invoking functions - the
passed value is incremented each time a call is made
|
protected function handleCallClick(evt:ButtonEvent):voidParameters
protected function handleFunctionClick(evt:ButtonEvent):voidParameters
protected function makeGenericCallback(fn:FunctionSpec):FunctionParameters
Returns
protected function output(str:String):voidParameters
protected function parseParameters(entry:FunctionEntry, local:Boolean):ArrayParameters
| entry:FunctionEntry |
| |
| local:Boolean |
Returns
protected function setupGrid(functions:Array):GridPanelParameters
Returns