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

Method Load

ogsr_engine/xrGame/map_spot.cpp:20–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18CMapSpot::~CMapSpot() {}
19
20void CMapSpot::Load(CUIXml* xml, LPCSTR path)
21{
22 CUIXmlInit::InitStatic(*xml, path, 0, this);
23 int i = xml->ReadAttribInt(path, 0, "scale", 0);
24 m_bScale = (i == 1);
25
26 SetWidth(GetWidth() * UI()->get_current_kx());
27 SetStretchTexture(true);
28
29 m_originSize = GetWndSize();
30}
31
32LPCSTR CMapSpot::GetHint() { return MapLocation()->GetHint(); }
33

Callers

nothing calls this directly

Calls 14

UIFunction · 0.85
SetStretchTextureFunction · 0.85
LoadFunction · 0.85
ReadAttribIntMethod · 0.80
get_current_kxMethod · 0.80
ReadAttribFltMethod · 0.80
GetOriginalRectMethod · 0.80
NavigateToNodeMethod · 0.80
GetWidthFunction · 0.50
ReadMethod · 0.45
widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected