RigsofRods
Soft-body Physics Simulation
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Functions
_
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Variables
a
b
c
d
e
f
g
i
k
l
m
n
p
r
s
t
u
v
w
Typedefs
a
c
d
e
f
g
l
m
n
o
p
r
s
t
v
w
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
a
b
c
d
g
h
l
m
n
o
p
r
s
t
v
Enumerator
a
b
c
d
f
g
h
l
m
n
o
r
s
t
v
Related Functions
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
k
o
Macros
_
a
b
c
d
e
f
h
i
l
m
n
o
p
r
s
t
x
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
source
main
gui
panels
GUI_GameChatBox.h
Go to the documentation of this file.
1
/*
2
This source file is part of Rigs of Rods
3
Copyright 2005-2012 Pierre-Michel Ricordel
4
Copyright 2007-2012 Thomas Fischer
5
Copyright 2013-2020 Petr Ohlidal
6
7
For more information, see http://www.rigsofrods.org/
8
9
Rigs of Rods is free software: you can redistribute it and/or modify
10
it under the terms of the GNU General Public License version 3, as
11
published by the Free Software Foundation.
12
13
Rigs of Rods is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
GNU General Public License for more details.
17
18
You should have received a copy of the GNU General Public License
19
along with Rigs of Rods. If not, see <http://www.gnu.org/licenses/>.
20
*/
21
25
26
#pragma once
27
28
#include "
Application.h
"
29
30
#include "
GUI_ConsoleView.h
"
31
32
#include <mutex>
33
#include <string>
34
#include <vector>
35
36
namespace
RoR
{
37
namespace
GUI {
38
40
class
GameChatBox
41
{
42
public
:
43
GameChatBox
();
44
45
void
SetVisible
(
bool
v) {
m_is_visible
= v;
m_kb_focused
=
false
; };
46
bool
IsVisible
()
const
{
return
m_is_visible
; }
47
48
void
Draw
();
49
ConsoleView
&
GetConsoleView
() {
return
m_console_view
; }
50
void
AssignBuffer
(
const
std::string& buffer) {
m_msg_buffer
= buffer;
m_scheduled_move_textcursor_to_end
=
true
; }
51
52
private
:
53
void
SubmitMessage
();
54
55
bool
m_is_visible
=
false
;
56
bool
m_kb_focused
=
false
;
57
Str<400>
m_msg_buffer
;
58
ConsoleView
m_console_view
;
59
bool
initialized
=
true
;
60
bool
init_scroll
=
false
;
61
bool
m_scheduled_move_textcursor_to_end
=
false
;
62
};
63
64
}
// namespace GUI
65
}
// namespace RoR
RoR::GUI::GameChatBox
Overlay showing chat/console messages on screen, with optional entry field.
Definition:
GUI_GameChatBox.h:40
RoR::GUI::GameChatBox::initialized
bool initialized
Definition:
GUI_GameChatBox.h:59
RoR::GUI::GameChatBox::m_is_visible
bool m_is_visible
Special: false means 'display only messages'.
Definition:
GUI_GameChatBox.h:55
GUI_ConsoleView.h
Generic console rendering.
RoR::GUI::GameChatBox::GetConsoleView
ConsoleView & GetConsoleView()
Definition:
GUI_GameChatBox.h:49
RoR::GUI::GameChatBox::init_scroll
bool init_scroll
Definition:
GUI_GameChatBox.h:60
RoR::GUI::GameChatBox::AssignBuffer
void AssignBuffer(const std::string &buffer)
Definition:
GUI_GameChatBox.h:50
RoR::GUI::ConsoleView
Configurable console renderer, implements filtering, colorized text, incons.
Definition:
GUI_ConsoleView.h:40
RoR::GUI::GameChatBox::m_kb_focused
bool m_kb_focused
Definition:
GUI_GameChatBox.h:56
RoR::GUI::GameChatBox::IsVisible
bool IsVisible() const
Definition:
GUI_GameChatBox.h:46
RoR::Str< 400 >
RoR::GUI::GameChatBox::m_scheduled_move_textcursor_to_end
bool m_scheduled_move_textcursor_to_end
Definition:
GUI_GameChatBox.h:61
RoR::GUI::GameChatBox::SetVisible
void SetVisible(bool v)
Definition:
GUI_GameChatBox.h:45
RoR::GUI::GameChatBox::m_msg_buffer
Str< 400 > m_msg_buffer
Definition:
GUI_GameChatBox.h:57
Application.h
Central state/object manager and communications hub.
RoR::GUI::GameChatBox::Draw
void Draw()
Definition:
GUI_GameChatBox.cpp:49
RoR::GUI::GameChatBox::SubmitMessage
void SubmitMessage()
Flush the user input box.
Definition:
GUI_GameChatBox.cpp:175
RoR::GUI::GameChatBox::m_console_view
ConsoleView m_console_view
Definition:
GUI_GameChatBox.h:58
RoR::GUI::GameChatBox::GameChatBox
GameChatBox()
Definition:
GUI_GameChatBox.cpp:40
RoR
Definition:
AppContext.h:36
Generated by
1.8.17