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

Method HighlightSpot

ogsr_engine/xrGame/map_location.cpp:541–554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

539};
540
541void 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
556void CMapLocation::save(IWriter& stream)
557{

Callers 2

InitMethod · 0.80
ExitMethod · 0.80

Calls 3

color_rgbaFunction · 0.85
SetTextureColorMethod · 0.45
GetTextureColorMethod · 0.45

Tested by

no test coverage detected