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

Method UpdateEntryTextAttributes

src/game/client/components/console.cpp:824–835  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

822}
823
824void CGameConsole::CInstance::UpdateEntryTextAttributes(CBacklogEntry *pEntry) const
825{
826 CTextCursor Cursor;
827 Cursor.m_FontSize = FONT_SIZE;
828 Cursor.m_Flags = 0;
829 Cursor.m_LineWidth = m_pGameConsole->Ui()->Screen()->w - 10;
830 Cursor.m_MaxLines = 10;
831 Cursor.m_LineSpacing = LINE_SPACING;
832 m_pGameConsole->TextRender()->TextEx(&Cursor, pEntry->m_aText, -1);
833 pEntry->m_YOffset = Cursor.Height();
834 pEntry->m_LineCount = Cursor.m_LineCount;
835}
836
837bool CGameConsole::CInstance::IsInputHidden() const
838{

Callers 1

OnRenderMethod · 0.80

Calls 5

ScreenMethod · 0.80
TextExMethod · 0.80
HeightMethod · 0.80
UiMethod · 0.45
TextRenderMethod · 0.45

Tested by

no test coverage detected