MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / printMessage

Method printMessage

src/ui/PrintScreenMessages.cpp:68–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void PrintScreenMessages::printMessage(const std::string& message)
69{
70 if (m_PrintMessages.size() >= MAX_NUM_MESSAGES)
71 m_PrintMessages.pop_back();
72
73 m_PrintMessages.push_front(message);
74
75 m_TimeToPopMessage = TIME_TO_POP_MESSAGE;
76}
77
78void PrintScreenMessages::drawTimedMessages(double dt, Render::RenderConfig& config)
79{

Callers 1

onLogEntryAddedMethod · 0.80

Calls 2

pop_backMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected