Commit b523f452 authored by Florian Oetke's avatar Florian Oetke
Browse files

fixed menu button

parent 07aa1bf8
Pipeline #3455 failed with stage
in 3 minutes and 34 seconds
...@@ -41,7 +41,7 @@ namespace phase_shifter { ...@@ -41,7 +41,7 @@ namespace phase_shifter {
{ {
_mailbox.subscribe_to([&](Once_action& e) { _mailbox.subscribe_to([&](Once_action& e) {
switch(e.id) { switch(e.id) {
case "quit"_strid: _engine.screens().leave(); break; case "quit"_strid: _engine.exit(); break;
case "the_button"_strid: _engine.screens().enter<Game_screen>(); break; case "the_button"_strid: _engine.screens().enter<Game_screen>(); break;
case "b"_strid: _engine.screens().enter<Sync_screen>(); break; case "b"_strid: _engine.screens().enter<Sync_screen>(); break;
} }
...@@ -95,18 +95,18 @@ namespace phase_shifter { ...@@ -95,18 +95,18 @@ namespace phase_shifter {
drawList->AddImage(_options.get(), p, ImVec2(p.x + 900, p.y + 1000)); drawList->AddImage(_options.get(), p, ImVec2(p.x + 900, p.y + 1000));
ImGui::SetCursorPos(ImVec2(150, 190)); ImGui::SetCursorPos(ImVec2(150, 190));
if(ImGui::Button("", ImVec2(700, 200))) { if(ImGui::Button("##enter", ImVec2(700, 200))) {
_engine.screens().enter<Game_screen>(); _engine.screens().enter<Game_screen>();
} }
ImGui::SetCursorPos(ImVec2(150, 400)); ImGui::SetCursorPos(ImVec2(150, 400));
if(ImGui::Button("", ImVec2(700, 200))) { if(ImGui::Button("##sync", ImVec2(700, 200))) {
_engine.screens().enter<Sync_screen>(); _engine.screens().enter<Sync_screen>();
} }
ImGui::SetCursorPos(ImVec2(150, 650)); ImGui::SetCursorPos(ImVec2(150, 650));
if(ImGui::Button("", ImVec2(700, 200))) { if(ImGui::Button("##exit", ImVec2(700, 200))) {
_engine.screens().leave(); _engine.exit();
} }
} }
ImGui::End(); ImGui::End();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment