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

Method DrawHighlightedText

ogsr_engine/xrGame/ui/UIStatic.cpp:609–617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

607void CUIStatic::SetTextST(LPCSTR str_id) { SetText(*CStringTable().translate(str_id)); }
608
609void CUIStatic::DrawHighlightedText()
610{
611 Frect rect;
612 GetAbsoluteRect(rect);
613 u32 def_col = m_pLines->GetTextColor();
614 m_pLines->SetTextColor(m_HighlightColor);
615 m_pLines->Draw(rect.left + 0 + m_TextOffset.x, rect.top - 0 + m_TextOffset.y);
616 m_pLines->SetTextColor(def_col);
617}
618
619bool CUIStatic::IsHighlightText() { return m_bCursorOverWindow; }

Callers

nothing calls this directly

Calls 3

GetTextColorMethod · 0.45
SetTextColorMethod · 0.45
DrawMethod · 0.45

Tested by

no test coverage detected