immersive-home/app/content/ui/menu/settings/settings_menu.gd

17 lines
484 B
GDScript3
Raw Normal View History

2023-11-19 18:28:44 +02:00
extends Node3D
@onready var credits = $Content/Credits/Clickable
@onready var background = $Background
@onready var version_label = $Content/LabelVersion
2023-11-19 18:28:44 +02:00
func _ready():
_load_game_version()
2024-04-09 18:46:59 +03:00
background.visible = false
func _load_game_version():
var presets = ConfigFile.new()
presets.load("res://export_presets.cfg")
version_label.text = "%s (%s)" % [presets.get_value("preset.1.options", "version/name", "v0.0.0"), presets.get_value("preset.1.options", "version/code", 0)]