From 57543722641726d60638e4fe10ec05e85c4eda08 Mon Sep 17 00:00:00 2001 From: Peter Repukat Date: Sun, 25 Sep 2022 14:58:09 +0200 Subject: [PATCH] GlosSIOverlay: Show version --- GlosSITarget/Overlay.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/GlosSITarget/Overlay.cpp b/GlosSITarget/Overlay.cpp index 23ff7b6..6440c17 100644 --- a/GlosSITarget/Overlay.cpp +++ b/GlosSITarget/Overlay.cpp @@ -23,6 +23,8 @@ limitations under the License. #include "Roboto.h" #include "Settings.h" +#include "../version.hpp" + Overlay::Overlay( sf::RenderWindow& window, std::function on_close, @@ -163,7 +165,9 @@ void Overlay::update() ImGui::SetNextWindowSize({ImGui::GetMainViewport()->Size.x * 0.6f, ImGui::GetMainViewport()->Size.y * 0.7f}, ImGuiCond_FirstUseEver); ImGui::SetNextWindowPos({ImGui::GetMainViewport()->Size.x * 0.25f, 100 }, ImGuiCond_FirstUseEver); ImGui::Begin("GlosSI Settings"); + ImGui::Text("Version: %s", version::VERSION_STR); if (Settings::settings_path_ != "") { + ImGui::SameLine(); if (ImGui::Button("Save shortcut settings", {256, 32})) { Settings::StoreSettings(); }