diff options
| author | fschildt <florian.schildt@protonmail.com> | 2025-10-13 13:59:54 +0200 |
|---|---|---|
| committer | fschildt <florian.schildt@protonmail.com> | 2025-10-13 13:59:54 +0200 |
| commit | abb22cda9a82a323fd8f1d077adefd6970a1abaa (patch) | |
| tree | 126a2de5c91f659b888ba776b7b821b9779e7bfe /src/games/Game.hpp | |
| parent | 6f3590341312b0ffff2304d02b24ac6a5d14b182 (diff) | |
minesweeper: draw colored mine counters
Diffstat (limited to 'src/games/Game.hpp')
| -rw-r--r-- | src/games/Game.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/games/Game.hpp b/src/games/Game.hpp index 94d50cb..7de3b66 100644 --- a/src/games/Game.hpp +++ b/src/games/Game.hpp @@ -3,6 +3,7 @@ #include <common/defs.hpp> #include <SDL3/SDL.h> +#include <imgui.h> #include <memory> #include <vector> @@ -42,5 +43,10 @@ protected: GameStatus m_game_status {game_starting}; float m_dt_remaining_seconds {0.0f}; uint64_t m_tlast_milliseconds {SDL_GetTicks()}; + + +protected: + static constexpr ImGuiWindowFlags s_imgui_window_flags_menu = ImGuiWindowFlags_NoFocusOnAppearing | ImGuiWindowFlags_AlwaysAutoResize; + static constexpr ImGuiWindowFlags s_imgui_window_flags_default = ImGuiWindowFlags_NoNav | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoBackground | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoInputs | ImGuiWindowFlags_NoScrollbar; }; |
