feat(mvp): support semantic versioning (MVP Build major.minor.release) in HUD and menus
checkpoint / checkpoint (push) Successful in 6m12s

This commit is contained in:
2026-09-18 21:55:35 +00:00
parent ee4006d217
commit 7b693899a7
3 changed files with 28 additions and 4 deletions
+8 -2
View File
@@ -53,8 +53,14 @@ func _show_build_stamp() -> void:
if f != null:
var d = JSON.parse_string(f.get_as_text())
if d is Dictionary:
stamp = "%s %s" % [d.get("checkpoint", "?"), d.get("commit", "?")]
lbl.text = "build %s" % stamp
if d.has("build_label"):
var c: String = str(d.get("commit", ""))
stamp = ("%s (%s)" % [d.get("build_label"), c]) if not c.is_empty() else str(d.get("build_label"))
elif not str(d.get("version", "")).is_empty():
stamp = "MVP Build %s (%s)" % [d.get("version"), d.get("commit", "?")]
else:
stamp = "%s %s" % [d.get("checkpoint", "?"), d.get("commit", "?")]
lbl.text = stamp if stamp.begins_with("MVP Build") or stamp == "dev" else ("build %s" % stamp)
lbl.add_theme_color_override("font_color", Color(1, 1, 0.35, 1.0))
lbl.add_theme_color_override("font_outline_color", Color(0, 0, 0, 1.0))
lbl.add_theme_constant_override("outline_size", 6)