diff options
Diffstat (limited to 'src/states/config_state.cpp')
| -rw-r--r-- | src/states/config_state.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/states/config_state.cpp b/src/states/config_state.cpp index 8ea33ca..9d0e626 100644 --- a/src/states/config_state.cpp +++ b/src/states/config_state.cpp @@ -1,5 +1,8 @@ #include "config_state.h" #include "rendering/renderer.h" +#include "core/application.h" + +#include <imgui.h> namespace Donut { @@ -26,4 +29,13 @@ namespace Donut void ConfigState::on_event(Event& event) { } + + void ConfigState::on_im_ui_render() + { + ImGui::Begin("Configuration"); + ImGui::Text("Configuration State"); + if (ImGui::Button("Start Simulation")) + Application::get().get_state_manager().switch_to_state("Simulation"); + ImGui::End(); + } } |
