| 2065 | } |
| 2066 | |
| 2067 | void 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 | |
| 2087 | std::optional<CTouchControls::CUnitRect> CTouchControls::FindPositionXY(std::vector<CUnitRect> &vVisibleButtonRects, CUnitRect MyRect) |
| 2088 | { |
nothing calls this directly
no test coverage detected