18 lines
590 B
GDScript
18 lines
590 B
GDScript
extends RichTextLabel
|
|
|
|
var status: StringName = "au_loading"
|
|
var error: int
|
|
|
|
func _ready() -> void:
|
|
AutoUpdate.update_version_text.connect(update_version)
|
|
update_version("au_loading")
|
|
|
|
|
|
func update_version(version: StringName, new_error = -1):
|
|
status = version
|
|
error = new_error
|
|
text = tr("vr_version") + preload("res://version.tres").version + "\n" + tr(version).format({"error":error})
|
|
|
|
func _notification(what: int) -> void:
|
|
if what == NOTIFICATION_TRANSLATION_CHANGED:
|
|
text = tr("vr_version") + preload("res://version.tres").version + "\n" + tr(status).format({"error":error})
|