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

Method RenderButtonsEditor

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

Source from the content-addressed store, hash-verified

2065}
2066
2067void CTouchControls::RenderButtonsEditor()
2068{
2069 for(auto &TouchButton : m_vTouchButtons)
2070 {
2071 if(&TouchButton == m_pSelectedButton)
2072 continue;
2073 TouchButton.UpdateVisibilityEditor();
2074 if(TouchButton.m_VisibilityCached || m_PreviewAllButtons)
2075 {
2076 TouchButton.UpdateScreenFromUnitRect();
2077 TouchButton.Render(false);
2078 }
2079 }
2080
2081 if(m_pSampleButton != nullptr && m_ShownRect.has_value())
2082 {
2083 m_pSampleButton->Render(true, m_ShownRect);
2084 }
2085}
2086
2087std::optional<CTouchControls::CUnitRect> CTouchControls::FindPositionXY(std::vector<CUnitRect> &vVisibleButtonRects, CUnitRect MyRect)
2088{

Callers

nothing calls this directly

Calls 3

RenderMethod · 0.45

Tested by

no test coverage detected