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

22 lines
661 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
2024-05-28 16:49:48 +03:00
@onready var report_bug_button = $Content/ReportBugButton
2023-11-19 18:28:44 +02:00
func _ready():
_load_game_version()
2024-04-09 18:46:59 +03:00
background.visible = false
2024-05-28 16:49:48 +03:00
report_bug_button.on_button_up.connect(func():
OS.shell_open("https://github.com/Nitwel/Immersive-Home/issues")
)
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)]