feat: show demo window on debug only

This commit is contained in:
2022-02-17 19:39:07 +01:00
parent 916fa0e7c0
commit 553b2f6aad

View File

@@ -21,11 +21,19 @@ void FrameMenu::render() {
if (ImGui::Checkbox("Vue Isometrique ?", &m_IsometricView)) {
getClient()->getRenderer()->setIsometricView(m_IsometricView);
}
#if !defined(NDEBUG)
ImGui::Checkbox("Demo Window", &m_ShowDemoWindow);
#endif
ImGui::End();
#if !defined(NDEBUG)
if (m_ShowDemoWindow)
ImGui::ShowDemoWindow(&m_ShowDemoWindow);
#endif
}
} // namespace gui