RigsofRods
Soft-body Physics Simulation
Public Member Functions | Private Member Functions | Private Attributes
RoR::GUI::GameChatBox Class Reference

Overlay showing chat/console messages on screen, with optional entry field. More...

#include <GUI_GameChatBox.h>

+ Collaboration diagram for RoR::GUI::GameChatBox:

Public Member Functions

 GameChatBox ()
 
void SetVisible (bool v)
 
bool IsVisible () const
 
void Draw ()
 
ConsoleViewGetConsoleView ()
 

Private Member Functions

void SubmitMessage ()
 Flush the user input box. More...
 

Private Attributes

bool m_is_visible = false
 Special: false means 'display only messages'. More...
 
bool m_kb_focused = false
 
Str< 400 > m_msg_buffer
 
ConsoleView m_console_view
 
bool initialized = true
 
bool init_scroll = false
 

Detailed Description

Overlay showing chat/console messages on screen, with optional entry field.

Definition at line 40 of file GUI_GameChatBox.h.

Constructor & Destructor Documentation

◆ GameChatBox()

GameChatBox::GameChatBox ( )

Definition at line 39 of file GUI_GameChatBox.cpp.

Member Function Documentation

◆ Draw()

void GameChatBox::Draw ( )

Definition at line 48 of file GUI_GameChatBox.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetConsoleView()

ConsoleView& RoR::GUI::GameChatBox::GetConsoleView ( )
inline

Definition at line 49 of file GUI_GameChatBox.h.

+ Here is the caller graph for this function:

◆ IsVisible()

bool RoR::GUI::GameChatBox::IsVisible ( ) const
inline

Definition at line 46 of file GUI_GameChatBox.h.

+ Here is the caller graph for this function:

◆ SetVisible()

void RoR::GUI::GameChatBox::SetVisible ( bool  v)
inline

Definition at line 45 of file GUI_GameChatBox.h.

+ Here is the caller graph for this function:

◆ SubmitMessage()

void GameChatBox::SubmitMessage ( )
private

Flush the user input box.

Definition at line 169 of file GUI_GameChatBox.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ init_scroll

bool RoR::GUI::GameChatBox::init_scroll = false
private

Definition at line 59 of file GUI_GameChatBox.h.

◆ initialized

bool RoR::GUI::GameChatBox::initialized = true
private

Definition at line 58 of file GUI_GameChatBox.h.

◆ m_console_view

ConsoleView RoR::GUI::GameChatBox::m_console_view
private

Definition at line 57 of file GUI_GameChatBox.h.

◆ m_is_visible

bool RoR::GUI::GameChatBox::m_is_visible = false
private

Special: false means 'display only messages'.

Definition at line 54 of file GUI_GameChatBox.h.

◆ m_kb_focused

bool RoR::GUI::GameChatBox::m_kb_focused = false
private

Definition at line 55 of file GUI_GameChatBox.h.

◆ m_msg_buffer

Str<400> RoR::GUI::GameChatBox::m_msg_buffer
private

Definition at line 56 of file GUI_GameChatBox.h.


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