Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Commands.CommandToggleConsole Class Reference

Toggle console command. More...

Inheritance diagram for Dragengine.Commands.CommandToggleConsole:
Dragengine.Commands.Command

Public Member Functions

WindowConsole getWindow ()
 Console window to show and hide or null.
CommandToggleConsole new ()
 Create command.
CommandToggleConsole new (WindowConsole window)
 Create command.
void setWindow (WindowConsole window)
 Set console window to show and hide or null.
void stop ()
 Input key or button has been released.
Public Member Functions inherited from Dragengine.Commands.Command
void analogAbsolute (Binding binding, float value)
 Absolute input device axis position changed.
void analogAbsolute (float value)
 Absolute input device axis position changed.
void analogRelative (Binding binding, float value)
 Relative input device axis position changed.
void analogRelative (float value)
 Relative input device axis position changed.
void approach ()
 User finger approached device button.
void approach (Binding binding)
 User finger approached device button.
String getDescription ()
 Description.
String getDisplayName ()
 Display name or null.
String getName ()
 Unique name.
String getTranslateDescription ()
 Translation description or null.
String getTranslateDisplayName ()
 Translation display name or null.
Command new (String name, String description)
 Create command.
void pulse ()
 Convenience method calling start() and stop() in succession.
void pulse (Binding binding)
 Convenience method calling start() and stop() in succession.
void setDescription (String description)
 Set description.
void setDisplayName (String displayName)
 Set display name or null.
void setName (String name)
 Set unique name of the command.
void setTranslateDescription (String translateName)
 Set translate description or null.
void setTranslateDisplayName (String translateName)
 Set translate display name or null.
void start ()
 Input device key or button has been pressed.
void start (Binding binding)
 Input device key or button has been pressed.
void stop (Binding binding)
 Input device key or button has been released.
void touch ()
 Input device button has been touched.
void touch (Binding binding)
 Input device button has been touched.
String translateDescription ()
 Translated command description using default TranslationManager.
String translateDescription (TranslationManager translationManager)
 Translated command description.
String translateDisplayName ()
 Translated display name using default TranslationManager.
String translateDisplayName (TranslationManager translationManager)
 Translated display name.
void untouch ()
 Input device button has been untouched.
void untouch (Binding binding)
 Input device button has been untouched.
void withdraw ()
 User finger withdrew from device button.
void withdraw (Binding binding)
 User finger withdrew from device button.

Public Attributes

WindowConsole pWindow
Public Attributes inherited from Dragengine.Commands.Command
String pName

Detailed Description

Toggle console command.

Shows or hides a WindowConsole provided at construction time. The command is designed to be used with BaseGameApp and in-game situations using BindingInputProcessor since this command can be only triggered by a binding or the console window itself. If the window is shown BaseGameApp.setInputProcessDesktop() is called and the window raised to the top. If the window is hidden BaseGameApp.setInputProcessBindings() is called.

While creating the command registers itself with the console window as the command to run when the user tries to close the window by pressing Escape key.

Member Function Documentation

◆ getWindow()

WindowConsole Dragengine.Commands.CommandToggleConsole.getWindow ( )

Console window to show and hide or null.

References new(), and setWindow().

Referenced by setWindow().

◆ new() [1/2]

CommandToggleConsole Dragengine.Commands.CommandToggleConsole.new ( )

Create command.

Version
1.35

Reimplemented from Dragengine.Commands.Command.

References new(), Dragengine.Commands.Command.setDescription(), and Dragengine.Commands.Command.setName().

Referenced by getWindow(), and new().

◆ new() [2/2]

CommandToggleConsole Dragengine.Commands.CommandToggleConsole.new ( WindowConsole window)

◆ setWindow()

void Dragengine.Commands.CommandToggleConsole.setWindow ( WindowConsole window)

Set console window to show and hide or null.

References getWindow(), pWindow, and setWindow().

Referenced by getWindow(), and setWindow().

◆ stop()

void Dragengine.Commands.CommandToggleConsole.stop ( )

Input key or button has been released.

Done during stop() not start() since showing the console activates a new input processor which would cause KEY_RELEASE to be send to the console causing an unwanted typing in the input field.

Reimplemented from Dragengine.Commands.Command.

References pWindow, and stop().

Referenced by stop().

Member Data Documentation

◆ pWindow

WindowConsole Dragengine.Commands.CommandToggleConsole.pWindow

Referenced by setWindow(), and stop().


The documentation for this class was generated from the following file: