MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / DrawText

Method DrawText

ogsr_engine/xrGame/ui/UIStatic.cpp:159–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159void CUIStatic::DrawText()
160{
161 if (m_pLines)
162 {
163 m_pLines->SetWndSize(m_wndSize);
164
165 if (IsHighlightText() && xr_strlen(m_pLines->GetText()) > 0 && m_bEnableTextHighlighting)
166 DrawHighlightedText();
167 else
168 {
169 Fvector2 p;
170 GetAbsolutePos(p);
171 m_pLines->Draw(p.x + m_TextOffset.x, p.y + m_TextOffset.y);
172 }
173 }
174}
175
176void CUIStatic::DrawTexture()
177{

Callers

nothing calls this directly

Calls 5

GetAbsolutePosFunction · 0.85
xr_strlenFunction · 0.50
SetWndSizeMethod · 0.45
GetTextMethod · 0.45
DrawMethod · 0.45

Tested by

no test coverage detected