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

Method InitTexture

ogsr_engine/xrGame/ui/UIRadioButton.cpp:20–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20void CUIRadioButton::InitTexture(LPCSTR tex_name)
21{
22 CUI3tButton::InitTexture(tex_name);
23 Frect r = m_background.GetE()->GetStaticItem()->GetRect();
24 CUI3tButton::SetTextX(r.width());
25 CUI3tButton::Init(GetWndPos().x, GetWndPos().y, GetWidth(), r.height() - 5);
26 m_pLines->Init(GetWndPos().x, GetWndPos().y, GetWidth(), m_background.GetE()->GetStaticItem()->GetRect().height());
27}

Callers

nothing calls this directly

Calls 7

SetTextXFunction · 0.85
GetRectMethod · 0.80
GetEMethod · 0.80
GetWidthFunction · 0.50
widthMethod · 0.45
heightMethod · 0.45
InitMethod · 0.45

Tested by

no test coverage detected