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

Method Draw

ogsr_engine/xrGame/ui/UISubLine.cpp:112–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void CUISubLine::Draw(CGameFont* pFont, float x, float y) const
113{
114 pFont->SetColor(m_color);
115
116 Fvector2 pos;
117 pos.set(x, y);
118 UI()->ClientToScreenScaled(pos);
119 pFont->Out(pos.x, pos.y, "%s", m_text.c_str());
120}

Callers

nothing calls this directly

Calls 6

UIFunction · 0.85
ClientToScreenScaledMethod · 0.80
SetColorMethod · 0.45
setMethod · 0.45
OutMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected