Files
godotv4.4.1-mono-actions/game/scripts/version_label.gd
Zaytha 174a12d7cb
All checks were successful
godot-ci export / Prepare Build Assets (push) Successful in 1m21s
godot-ci export / Linux Export (push) Successful in 45s
godot-ci export / Windows Export (push) Successful in 50s
godot-ci export / Steam Publish (push) Successful in 1m1s
Updating action to check for varibles,
renamed version_text to version_label, removed undded files from repo that are made on build
2025-07-07 06:20:35 -07:00

24 lines
598 B
GDScript

extends VersionInfo
@export var show_label_in_editor: bool = true
@export_category("Label Settings")
@export var major_version: int = 0
@export var minor_version: int = 0
@export var patch: int = 0
@export var show_branch_name: bool = true
@export var show_sha: bool = true
func _ready() -> void:
# fill text
text = ("%s_%d.%d.%d-%03d" %[project_name, major_version, minor_version, patch, commit_number])
# extra details
if show_branch_name: text += "-%s" %branch_name
if show_sha: text += "-%s" %short_sha
# show text
if show_label_in_editor || build_override: show()
else: hide()