MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / NetworkInitChatMessage

Function NetworkInitChatMessage

src/network/network_chat_gui.cpp:108–117  ·  view source on GitHub ↗

Initialize all buffers of the chat visualisation. */

Source from the content-addressed store, hash-verified

106
107/** Initialize all buffers of the chat visualisation. */
108void NetworkInitChatMessage()
109{
110 MAX_CHAT_MESSAGES = _settings_client.gui.network_chat_box_height;
111
112 _chatmsg_list.clear();
113 _chatmsg_box.x = ScaleGUITrad(10);
114 _chatmsg_box.width = _settings_client.gui.network_chat_box_width_pct * _screen.width / 100;
115 NetworkReInitChatBoxSize();
116 _chatmessage_visible = false;
117}
118
119/** Hide the chatbox */
120void NetworkUndrawChatMessage()

Callers 1

InitializeGameFunction · 0.85

Calls 3

NetworkReInitChatBoxSizeFunction · 0.85
ScaleGUITradFunction · 0.50
clearMethod · 0.45

Tested by

no test coverage detected