| 27 | } |
| 28 | |
| 29 | void 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 | } |
| 38 | void CUIMapHint::Draw_() { inherited::Draw(); } |
nothing calls this directly
no test coverage detected