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

Method UpdateText

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

Source from the content-addressed store, hash-verified

320 return m_FontSize != Data.m_FontSize;
321 }
322 void UpdateText(CGameClient &This, const CNamePlateData &Data) override
323 {
324 m_FontSize = Data.m_FontSize;
325 CTextCursor Cursor;
326 This.TextRender()->SetFontPreset(EFontPreset::ICON_FONT);
327 Cursor.m_FontSize = m_FontSize;
328 This.TextRender()->CreateOrAppendTextContainer(m_TextContainerIndex, &Cursor, FontIcon::HEART);
329 This.TextRender()->SetFontPreset(EFontPreset::DEFAULT_FONT);
330 }
331
332public:
333 CNamePlatePartFriendMark(CGameClient &This) :

Callers

nothing calls this directly

Calls 3

SetFontPresetMethod · 0.45
TextRenderMethod · 0.45

Tested by

no test coverage detected