Added missing Performance script update
parent
8f8f439508
commit
de8747e1ae
|
@ -5,10 +5,15 @@ extends Label
|
||||||
# var b = "text"
|
# var b = "text"
|
||||||
@onready var main = get_tree().root.get_node("Main")
|
@onready var main = get_tree().root.get_node("Main")
|
||||||
|
|
||||||
|
var version: String # game build version
|
||||||
|
|
||||||
# Called when the node enters the scene tree for the first time.
|
# Called when the node enters the scene tree for the first time.
|
||||||
func _ready():
|
func _ready():
|
||||||
pass # Replace with function body.
|
OS.execute('bash', ["./version.sh"])
|
||||||
|
var file = File.new()
|
||||||
|
file.open("res://version", File.READ)
|
||||||
|
version = file.get_as_text()
|
||||||
|
file.close()
|
||||||
|
|
||||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
func _process(delta):
|
func _process(delta):
|
||||||
|
@ -34,4 +39,4 @@ func _process(delta):
|
||||||
|
|
||||||
|
|
||||||
text += "\nFPS: " + str(Engine.get_frames_per_second())
|
text += "\nFPS: " + str(Engine.get_frames_per_second())
|
||||||
text += "\nLiblast 0.1.1 pre-alpha"
|
text += "\n" + version + " · https://git.gieszer.link/unfa/liblast"
|
||||||
|
|
Reference in New Issue