MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / stopChat

Method stopChat

source/frontend/StarChat.cpp:152–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152void Chat::stopChat() {
153 if (m_scripted)
154 m_script.invoke("stopChat");
155 else {
156 m_textBox->setText("");
157 m_textBox->blur();
158 m_timeChatLastActive = Time::monotonicMilliseconds();
159 }
160}
161
162String Chat::currentChat() const {
163 if (m_scripted)

Callers 1

handleInputEventMethod · 0.80

Calls 3

invokeMethod · 0.45
setTextMethod · 0.45
blurMethod · 0.45

Tested by

no test coverage detected