make kYazeVersion a string for major/minor/patch format
This commit is contained in:
@@ -137,7 +137,7 @@ using OWMapTiles = struct OWMapTiles;
|
||||
namespace core {
|
||||
|
||||
constexpr uint32_t kRedPen = 0xFF0000FF;
|
||||
constexpr float kYazeVersion = 0.2;
|
||||
constexpr std::string_view kYazeVersion = "0.2.0";
|
||||
|
||||
// ============================================================================
|
||||
// Magic numbers
|
||||
|
||||
@@ -356,7 +356,7 @@ void MasterEditor::DrawStatusPopup() {
|
||||
void MasterEditor::DrawAboutPopup() {
|
||||
if (about_) OpenPopup("About");
|
||||
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");
|
||||
Spacing();
|
||||
Text("Special Thanks: Zarby89, JaredBrian");
|
||||
@@ -411,7 +411,7 @@ void MasterEditor::DrawYazeMenu() {
|
||||
}
|
||||
PopStyleColor();
|
||||
|
||||
Text("%s", absl::StrCat("yaze v", core::kYazeVersion).c_str());
|
||||
Text("yaze v%s", core::kYazeVersion.c_str());
|
||||
|
||||
EndMenuBar();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user