diff options
Diffstat (limited to 'src/States/ConfigState.cpp')
| -rw-r--r-- | src/States/ConfigState.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/States/ConfigState.cpp b/src/States/ConfigState.cpp index 5d2e0aa..9f57840 100644 --- a/src/States/ConfigState.cpp +++ b/src/States/ConfigState.cpp @@ -1,5 +1,8 @@ #include "ConfigState.h" #include "Rendering/Renderer.h" +#include "Core/Application.h" + +#include <imgui.h> namespace Donut { @@ -26,4 +29,13 @@ namespace Donut void ConfigState::OnEvent(Event& event) { } + + void ConfigState::OnImUIRender() + { + ImGui::Begin("Configuration"); + ImGui::Text("Configuration State"); + if (ImGui::Button("Start Simulation")) + Application::Get().GetStateManager().SwitchToState("Simulation"); + ImGui::End(); + } } |
