2023-11-19 18:28:44 +02:00
|
|
|
extends Node3D
|
|
|
|
|
2023-11-26 01:02:03 +02:00
|
|
|
@onready var credits = $Content/Credits/Clickable
|
|
|
|
@onready var background = $Background
|
2024-04-26 14:30:11 +03:00
|
|
|
@onready var version_label = $Content/LabelVersion
|
2024-05-28 16:49:48 +03:00
|
|
|
@onready var report_bug_button = $Content/ReportBugButton
|
2023-11-23 04:41:13 +02:00
|
|
|
|
2023-11-19 18:28:44 +02:00
|
|
|
func _ready():
|
2024-04-26 14:30:11 +03:00
|
|
|
_load_game_version()
|
2024-04-09 18:46:59 +03:00
|
|
|
|
2023-11-26 01:02:03 +02: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")
|
|
|
|
)
|
|
|
|
|
2024-04-26 14:30:11 +03:00
|
|
|
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)]
|