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

Method RenderButtonsGame

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

Source from the content-addressed store, hash-verified

1190}
1191
1192void CTouchControls::RenderButtonsGame()
1193{
1194 for(CTouchButton &TouchButton : m_vTouchButtons)
1195 {
1196 TouchButton.UpdateVisibilityGame();
1197 }
1198 for(CTouchButton &TouchButton : m_vTouchButtons)
1199 {
1200 if(!TouchButton.IsVisible())
1201 {
1202 continue;
1203 }
1204 TouchButton.UpdateBackgroundCorners();
1205 TouchButton.UpdateScreenFromUnitRect();
1206 TouchButton.Render();
1207 }
1208}
1209
1210vec2 CTouchControls::CalculateScreenSize() const
1211{

Callers

nothing calls this directly

Calls 5

UpdateVisibilityGameMethod · 0.80
IsVisibleMethod · 0.80
RenderMethod · 0.45

Tested by

no test coverage detected