MCPcopy Create free account
hub / github.com/ddnet/ddnet / UpdateText

Method UpdateText

src/game/client/components/nameplates.cpp:355–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353 return m_FontSize != Data.m_FontSize || str_comp(m_aText, Data.m_aName) != 0;
354 }
355 void UpdateText(CGameClient &This, const CNamePlateData &Data) override
356 {
357 m_FontSize = Data.m_FontSize;
358 str_copy(m_aText, Data.m_aName, sizeof(m_aText));
359 CTextCursor Cursor;
360 Cursor.m_FontSize = m_FontSize;
361 This.TextRender()->CreateOrAppendTextContainer(m_TextContainerIndex, &Cursor, m_aText);
362 }
363
364public:
365 CNamePlatePartName(CGameClient &This) :

Callers

nothing calls this directly

Calls 3

str_copyFunction · 0.50
TextRenderMethod · 0.45

Tested by

no test coverage detected