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

Method Init

ogsr_engine/xrGame/ui/UIMap.cpp:29–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29void CUICustomMap::Init(shared_str name, CInifile& gameLtx, LPCSTR sh_name)
30{
31 m_name = name;
32 LPCSTR tex;
33 Fvector4 tmp;
34 if (gameLtx.line_exist(m_name, "texture"))
35 {
36 tex = gameLtx.r_string(m_name, "texture");
37 tmp = gameLtx.r_fvector4(m_name, "bound_rect");
38 }
39 else
40 {
41 tex = "ui\\ui_nomap2";
42 tmp.set(-10000.0f, -10000.0f, 10000.0f, 10000.0f);
43 }
44 if (!Heading())
45 {
46 tmp.x *= UI()->get_current_kx();
47 tmp.z *= UI()->get_current_kx();
48 }
49 m_BoundRect.set(tmp.x, tmp.y, tmp.z, tmp.w);
50 CUIStatic::InitEx(tex, sh_name, 0, 0, m_BoundRect.width(), m_BoundRect.height());
51
52 SetStretchTexture(true);
53 ClipperOn();
54
55 SetWindowName(m_name.c_str());
56}
57
58void RotateCoord(float x, float y, const float angle, float& x_, float& y_, float _kx)
59{

Callers 15

AddFieldMethod · 0.45
AddPdaMessageMethod · 0.45
UIMiniMapInitFunction · 0.45
CUIButtonHintMethod · 0.45
AddItemMethod · 0.45
ParseShTexInfoMethod · 0.45
AddItemMethod · 0.45
SetOutfitMethod · 0.45
AddItemMethod · 0.45
StartMethod · 0.45
InitWindowMethod · 0.45
InitDragDropListExMethod · 0.45

Calls 15

HeadingFunction · 0.85
UIFunction · 0.85
SetStretchTextureFunction · 0.85
fsimilarFunction · 0.85
MsgFunction · 0.85
color_argbFunction · 0.85
line_existMethod · 0.80
get_current_kxMethod · 0.80
SetColorFunction · 0.70
r_stringMethod · 0.45
r_fvector4Method · 0.45
setMethod · 0.45

Tested by

no test coverage detected