Class ConsoleUI

Inheritance Relationships

Base Types

Class Documentation

class ConsoleUI : public BlamRendering::RenderStack::StackObjectBase, public Blam::Events::EventListener

Public Functions

ConsoleUI()
~ConsoleUI()
void Draw()

Draws the stack object.

Specific functionality may vary depending on the type of object.

void onCharacterInputEvent(Blam::Events::CharacterInputEvent *event)

Called when the listener is subscribed to Character Input events, and a new CharacterInputEvent is fired.

Parameters
  • -: The event that was fired.

void onKeyPressEvent(Blam::Events::KeyPressEvent *event)

Called when the listener is subscribed to Key Press events, and a new KeyPressEvent is fired.

Parameters
  • -: The event that was fired.

void ShowImPropertyEditor()

Shows a set of ImGUI properties associated with the object.

This will call functions to draw only the property controls for the item, and nothing else. The window/container for the properties must be handled externally.

void updateInputDisplay()
void HandleResize()

Called upon window resize events.

Used to instruct the items to resize if need be.

void handleNewOutput(Blam::Logger::LogMessage message)
std::vector<std::string> getRecentInput()
void clearScrollback()
void handleKeyPress(char character)
void handleBackspace()
void handleCursorLeft()
void handleCursorRight()
void handleCursorUp()
void handleCursorDown()
void toggleVisibility()
void sendCommand()
void showCommandList()

Public Members

int error_count = 0
bool supression_message_shown = false