make kYazeVersion a string for major/minor/patch format

This commit is contained in:
scawful
2024-08-10 00:19:35 -04:00
parent ea81793550
commit e6cc7aebde
2 changed files with 3 additions and 3 deletions

View File

@@ -137,7 +137,7 @@ using OWMapTiles = struct OWMapTiles;
namespace core { namespace core {
constexpr uint32_t kRedPen = 0xFF0000FF; constexpr uint32_t kRedPen = 0xFF0000FF;
constexpr float kYazeVersion = 0.2; constexpr std::string_view kYazeVersion = "0.2.0";
// ============================================================================ // ============================================================================
// Magic numbers // Magic numbers

View File

@@ -356,7 +356,7 @@ void MasterEditor::DrawStatusPopup() {
void MasterEditor::DrawAboutPopup() { void MasterEditor::DrawAboutPopup() {
if (about_) OpenPopup("About"); if (about_) OpenPopup("About");
if (BeginPopupModal("About", nullptr, ImGuiWindowFlags_AlwaysAutoResize)) { if (BeginPopupModal("About", nullptr, ImGuiWindowFlags_AlwaysAutoResize)) {
Text("Yet Another Zelda3 Editor - v%.2f", core::kYazeVersion); Text("Yet Another Zelda3 Editor - v%s", core::kYazeVersion);
Text("Written by: scawful"); Text("Written by: scawful");
Spacing(); Spacing();
Text("Special Thanks: Zarby89, JaredBrian"); Text("Special Thanks: Zarby89, JaredBrian");
@@ -411,7 +411,7 @@ void MasterEditor::DrawYazeMenu() {
} }
PopStyleColor(); PopStyleColor();
Text("%s", absl::StrCat("yaze v", core::kYazeVersion).c_str()); Text("yaze v%s", core::kYazeVersion.c_str());
EndMenuBar(); EndMenuBar();
} }