MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / ShowMessage

Method ShowMessage

engine/Poseidon/Graphics/Core/EngineDrawing.cpp:189–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189void CCALL Engine::ShowMessage(int timeMs, const char* msg, ...)
190{
191 BString<512> message;
192 va_list va;
193 va_start(va, msg);
194 vsprintf(message, msg, va);
195 va_end(va);
196 if (_messageHandle >= 0)
197 {
198 RemoveText(_messageHandle);
199 }
200 _messageHandle = ShowText(timeMs, 25, 2, message);
201}
202
203void CWRFrameFunctions::ShowMessage(int timeMs, const char* msg, va_list argptr)
204{

Callers 6

SimulateMethod · 0.45
BeginObjectsMethod · 0.45
ThinkMethod · 0.45
OnSimulateMethod · 0.45
SimulateMethod · 0.45
AppIdleFunction · 0.45

Calls 1

vsprintfFunction · 0.85

Tested by

no test coverage detected