MCPcopy Create free account
hub / github.com/crossuo/crossuo / DrawSystemChat

Method DrawSystemChat

src/TextEngine/TextContainer.cpp:47–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void CTextContainer::DrawSystemChat(int x, int y, int height)
48{
49 int offset = (y + height) - 41;
50
51 CTextData *td = (CTextData *)g_SystemChat.Last();
52
53 while (td != nullptr && offset >= y)
54 {
55 auto &tth = td->m_TextSprite;
56
57 offset -= tth.Height;
58
59 if (td->Timer >= g_Ticks)
60 {
61 tth.Draw(x, offset);
62 }
63
64 td = (CTextData *)td->m_Prev;
65 }
66}

Callers 1

RenderMethod · 0.80

Calls 2

LastMethod · 0.80
DrawMethod · 0.45

Tested by

no test coverage detected