Added undoable to commandds and made pause button purple

This commit is contained in:
Antoine Pilote
2024-04-28 00:51:53 -04:00
parent 6acf24b065
commit a39c86d9ae
2 changed files with 7 additions and 0 deletions

View File

@@ -329,12 +329,14 @@ namespace Nuake {
if (Engine::IsPlayMode() && Engine::GetTimeScale() != 0.0f)
{
ImGui::PushStyleColor(ImGuiCol_Text, { 97.0 / 255.0, 0, 1, 1 });
if (ImGui::Button(ICON_FA_PAUSE, ImVec2(30, 30)) || (Input::IsKeyPressed(Key::F6)))
{
Engine::SetGameState(GameState::Paused);
SetStatusMessage("Paused");
}
ImGui::PopStyleColor();
}
else
{