| 23 | } |
| 24 | |
| 25 | void CUIPdaSpot::Init(u16 spot_id, LPCSTR level_name, Fvector pos, bool main_wnd) |
| 26 | { |
| 27 | m_mainWnd = main_wnd; |
| 28 | m_levelName = level_name; |
| 29 | m_position = pos; |
| 30 | m_spotID = m_mainWnd ? u16(-1) : spot_id; |
| 31 | |
| 32 | if (!m_mainWnd) |
| 33 | { |
| 34 | CMapLocation* ml = Level().MapManager().GetMapLocation(m_spotType, m_spotID); |
| 35 | if (!ml) |
| 36 | return; |
| 37 | m_editBox->SetText(ml->GetHint()); |
| 38 | ml->HighlightSpot(true, Fcolor().set(255.f, 36.f, 0.f, 255.f)); |
| 39 | } |
| 40 | |
| 41 | m_editBox->CaptureFocus(true); |
| 42 | } |
| 43 | |
| 44 | void CUIPdaSpot::InitControls() |
| 45 | { |
no test coverage detected