| 382 | CUILevelMap::~CUILevelMap() {} |
| 383 | |
| 384 | void CUILevelMap::Draw() |
| 385 | { |
| 386 | if (MapWnd()) |
| 387 | { |
| 388 | for (auto& it : m_ChildWndList) |
| 389 | { |
| 390 | CMapSpot* sp = smart_cast<CMapSpot*>(it); |
| 391 | if (sp && sp->m_bScale) |
| 392 | { |
| 393 | Fvector2 sz = sp->m_originSize; |
| 394 | sz.mul(MapWnd()->GlobalMap()->GetCurrentZoom()); |
| 395 | sp->SetWndSize(sz); |
| 396 | } |
| 397 | } |
| 398 | } |
| 399 | inherited::Draw(); |
| 400 | } |
| 401 | |
| 402 | void CUILevelMap::Init(shared_str name, CInifile& gameLtx, LPCSTR sh_name) |
| 403 | { |
no test coverage detected