Version label
This commit is contained in:
parent
0da18e4d44
commit
6f327d0d9e
3 changed files with 25 additions and 1 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
5
gui/main_menu/version_label.gd
Normal file
5
gui/main_menu/version_label.gd
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
extends Label
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
text = "Текущая версия игры: " + preload("res://version.tres").version
|
||||
1
gui/main_menu/version_label.gd.uid
Normal file
1
gui/main_menu/version_label.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://fhfot05mnhua
|
||||
Loading…
Add table
Add a link
Reference in a new issue