Autoupdate status
This commit is contained in:
parent
a3ad473b39
commit
3a4e0f30bf
3 changed files with 25 additions and 3 deletions
|
|
@ -138,7 +138,7 @@ layout_mode = 2
|
|||
[node name="LabelContainer" type="Control" parent="."]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="LabelContainer"]
|
||||
[node name="Label" type="RichTextLabel" parent="LabelContainer"]
|
||||
top_level = true
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
|
|
@ -150,6 +150,12 @@ offset_left = -1.0
|
|||
offset_top = -23.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
bbcode_enabled = true
|
||||
fit_content = true
|
||||
scroll_active = false
|
||||
autowrap_mode = 0
|
||||
horizontal_alignment = 2
|
||||
vertical_alignment = 2
|
||||
script = ExtResource("3_qy2xc")
|
||||
|
||||
[connection signal="text_changed" from="MainMenu/VBoxContainer/NicknameEdit" to="." method="_on_nickname_edit_text_changed"]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,11 @@
|
|||
extends Label
|
||||
extends RichTextLabel
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
text = "Текущая версия игры: " + preload("res://version.tres").version
|
||||
AutoUpdate.update_version_text.connect(update_version)
|
||||
update_version("")
|
||||
|
||||
|
||||
func update_version(version: StringName):
|
||||
text = "Текущая версия игры: " + preload("res://version.tres").version + "\n" + version
|
||||
print(text)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue