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

Method SetText

ogsr_engine/xrGame/ui/map_hint.cpp:29–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29void CUIMapHint::SetText(LPCSTR text)
30{
31 m_text->SetTextST(text);
32 m_text->AdjustHeightToText();
33 float new_h = _max(64.0f, m_text->GetWndPos().y + m_text->GetWndSize().y + 20.0f);
34 SetWndSize(Fvector2().set(GetWndSize().x, new_h));
35 m_border->SetWidth(GetWndSize().x);
36 m_border->SetHeight(GetWndSize().y);
37}
38void CUIMapHint::Draw_() { inherited::Draw(); }

Callers

nothing calls this directly

Calls 8

SetTextSTMethod · 0.80
AdjustHeightToTextMethod · 0.80
GetWndPosMethod · 0.80
GetWndSizeMethod · 0.80
_maxFunction · 0.50
setMethod · 0.45
SetWidthMethod · 0.45
SetHeightMethod · 0.45

Tested by

no test coverage detected