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

Method RemoveText

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

Source from the content-addressed store, hash-verified

249}
250
251void Engine::RemoveText(int handle)
252{
253 if (handle >= 0)
254 {
255 for (int i = 0; i < _texts.Size(); i++)
256 {
257 if (_texts[i]._handle == handle)
258 {
259 _texts.Delete(i);
260 return;
261 }
262 }
263 // text may already be expired
264 }
265}
266
267int Engine::ShowText(DWORD timeToLive, int x, int y, const char* text)
268{

Callers 3

SendMessagesMethod · 0.80
OnSimulateMethod · 0.80
SendMessagesMethod · 0.80

Calls 2

SizeMethod · 0.45
DeleteMethod · 0.45

Tested by

no test coverage detected