| 285 | return m_FontSize != Data.m_FontSizeClientId || m_ClientId != Data.m_ClientId; |
| 286 | } |
| 287 | void UpdateText(CGameClient &This, const CNamePlateData &Data) override |
| 288 | { |
| 289 | m_FontSize = Data.m_FontSizeClientId; |
| 290 | m_ClientId = Data.m_ClientId; |
| 291 | if(m_ClientIdSeparateLine) |
| 292 | str_format(m_aText, sizeof(m_aText), "%d", m_ClientId); |
| 293 | else |
| 294 | str_format(m_aText, sizeof(m_aText), "%d:", m_ClientId); |
| 295 | CTextCursor Cursor; |
| 296 | Cursor.m_FontSize = m_FontSize; |
| 297 | This.TextRender()->CreateOrAppendTextContainer(m_TextContainerIndex, &Cursor, m_aText); |
| 298 | } |
| 299 | |
| 300 | public: |
| 301 | CNamePlatePartClientId(CGameClient &This, bool ClientIdSeparateLine) : |
nothing calls this directly
no test coverage detected