MCPcopy Create free account
hub / github.com/ddnet/ddnet / UpdateScreenFromUnitRect

Method UpdateScreenFromUnitRect

src/game/client/components/touch_controls.cpp:99–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void CTouchControls::CTouchButton::UpdateScreenFromUnitRect()
100{
101 m_ScreenRect = m_pTouchControls->CalculateScreenFromUnitRect(m_UnitRect, m_Shape);
102}
103
104CUIRect CTouchControls::CalculateScreenFromUnitRect(CUnitRect Unit, EButtonShape Shape) const
105{

Callers 7

OnWindowResizeMethod · 0.80
RenderButtonsGameMethod · 0.80
ParseConfigurationMethod · 0.80
UpdateButtonsEditorMethod · 0.80
RenderButtonsEditorMethod · 0.80
UpdateSampleButtonMethod · 0.80

Calls 1

Tested by

no test coverage detected