feat: show demo window on debug only
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user