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

Method clear

source/frontend/StarChat.cpp:272–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272void Chat::clear(size_t count) {
273 if (m_scripted)
274 m_script.invoke("clear", count);
275 else if (count > m_receivedMessages.size())
276 m_receivedMessages.clear();
277 else
278 m_receivedMessages.erase(m_receivedMessages.begin(), m_receivedMessages.begin() + count);
279}
280
281void Chat::renderImpl() {
282 Pane::renderImpl();

Callers 15

refreshMethod · 0.45
dismissedMethod · 0.45
setupTooltipMethod · 0.45
makeChatCallbacksMethod · 0.45
updateMethod · 0.45
populateMissionsMethod · 0.45
populateCrewMethod · 0.45
buildListsFromConfigMethod · 0.45
setKeybindingMethod · 0.45
populateServerListMethod · 0.45
updateMethod · 0.45

Calls 4

invokeMethod · 0.45
sizeMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected