| 539 | }; |
| 540 | |
| 541 | void CMapLocation::HighlightSpot(bool state, const Fcolor& color) |
| 542 | { |
| 543 | CUIStatic* st = smart_cast<CUIStatic*>(m_level_spot); |
| 544 | if (state) |
| 545 | { |
| 546 | u32 clr = color_rgba((u32)color.r, (u32)color.g, (u32)color.b, (u32)color.a); |
| 547 | st->SetTextureColor(clr); |
| 548 | } |
| 549 | else |
| 550 | { |
| 551 | if (st->GetTextureColor() != 0xffffffff) |
| 552 | st->SetTextureColor(0xffffffff); |
| 553 | } |
| 554 | } |
| 555 | |
| 556 | void CMapLocation::save(IWriter& stream) |
| 557 | { |
no test coverage detected