make kYazeVersion a string for major/minor/patch format
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user