Version label

This commit is contained in:
Rendo 2025-12-17 00:37:22 +05:00
commit 6f327d0d9e
3 changed files with 25 additions and 1 deletions

View file

@ -1,7 +1,8 @@
[gd_scene load_steps=3 format=3 uid="uid://cbtp4rvg66ba1"]
[gd_scene load_steps=4 format=3 uid="uid://cbtp4rvg66ba1"]
[ext_resource type="Script" uid="uid://bsyuos803g7qf" path="res://gui/main_menu/main_menu_gui.gd" id="1_l6cm7"]
[ext_resource type="PackedScene" uid="uid://dswn8a8anj2hu" path="res://gui/host_menu/host_menu.tscn" id="2_85nol"]
[ext_resource type="Script" uid="uid://fhfot05mnhua" path="res://gui/main_menu/version_label.gd" id="3_qy2xc"]
[node name="MainMenu" type="CenterContainer"]
anchors_preset = 15
@ -134,6 +135,23 @@ horizontal_scroll_mode = 0
unique_name_in_owner = true
layout_mode = 2
[node name="LabelContainer" type="Control" parent="."]
layout_mode = 2
[node name="Label" type="Label" parent="LabelContainer"]
top_level = true
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -1.0
offset_top = -23.0
grow_horizontal = 0
grow_vertical = 0
script = ExtResource("3_qy2xc")
[connection signal="text_changed" from="MainMenu/VBoxContainer/NicknameEdit" to="." method="_on_nickname_edit_text_changed"]
[connection signal="text_submitted" from="MainMenu/VBoxContainer/NicknameEdit" to="." method="_on_nickname_edit_text_submitted"]
[connection signal="pressed" from="MainMenu/VBoxContainer/HBoxContainer/HostButton" to="." method="_on_host_button_pressed"]

View file

@ -0,0 +1,5 @@
extends Label
func _ready() -> void:
text = "Текущая версия игры: " + preload("res://version.tres").version

View file

@ -0,0 +1 @@
uid://fhfot05mnhua