Drag[en]gine Script Module DragonScript
1.23
|
Action listener running a command. More...
Public Member Functions | |
RunCommandActionListener | new (CommandManager manager, String command) |
Create action listener. More... | |
void | onAction (ActionEvent event) |
Perform action. More... | |
Public Member Functions inherited from Dragengine.Gui.Events.DefaultActionListener | |
DefaultActionListener | new () |
Create default action listener. More... | |
Action listener running a command.
RunCommandActionListener Dragengine.Gui.RunCommandActionListener.new | ( | CommandManager | manager, |
String | command | ||
) |
Create action listener.
void Dragengine.Gui.RunCommandActionListener.onAction | ( | ActionEvent | event | ) |
Perform action.
Command is looked up in the command manager using a string identifier. If found the command Command.start() and Command.stop() is called in this order without delay. If not found nothing is done.
Reimplemented from Dragengine.Gui.Events.DefaultActionListener.