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 ()
 
void AssignBuffer (const std::string &buffer)
 

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
 
bool m_scheduled_move_textcursor_to_end = 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 40 of file GUI_GameChatBox.cpp.

Member Function Documentation

◆ AssignBuffer()

void RoR::GUI::GameChatBox::AssignBuffer ( const std::string &  buffer)
inline

Definition at line 50 of file GUI_GameChatBox.h.

+ Here is the caller graph for this function:

◆ Draw()

void GameChatBox::Draw ( )

Definition at line 49 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 175 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 60 of file GUI_GameChatBox.h.

◆ initialized

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

Definition at line 59 of file GUI_GameChatBox.h.

◆ m_console_view

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

Definition at line 58 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 55 of file GUI_GameChatBox.h.

◆ m_kb_focused

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

Definition at line 56 of file GUI_GameChatBox.h.

◆ m_msg_buffer

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

Definition at line 57 of file GUI_GameChatBox.h.

◆ m_scheduled_move_textcursor_to_end

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

Definition at line 61 of file GUI_GameChatBox.h.


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