feat: added town name setting
This commit is contained in:
parent
a8b292aa03
commit
fc177656c5
8 changed files with 134 additions and 24 deletions
38
scenes/name_setter/name_setter.tscn
Normal file
38
scenes/name_setter/name_setter.tscn
Normal file
|
@ -0,0 +1,38 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://cdlipr8l1k38a"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://drulv5ptupx2w" path="res://scenes/name_setter/name_setter.gd" id="1_f3gk5"]
|
||||
|
||||
[node name="NameSetter" type="Window"]
|
||||
position = Vector2i(0, 36)
|
||||
size = Vector2i(500, 250)
|
||||
unresizable = true
|
||||
always_on_top = true
|
||||
script = ExtResource("1_f3gk5")
|
||||
|
||||
[node name="Instructions" type="Label" parent="."]
|
||||
offset_right = 500.0
|
||||
offset_bottom = 146.0
|
||||
text = "En aquesta torreta, present a la cantonada del teu escriptori, hi viuran uns dracs que t’acompanyaran en el teu dia a dia. Fins i tot et vindran a visitar dracs d'altres torretes!
|
||||
|
||||
Per començar, posa un nom a la teva torreta.
|
||||
És el primer pas per fer-la teva."
|
||||
horizontal_alignment = 1
|
||||
autowrap_mode = 2
|
||||
|
||||
[node name="Name" type="LineEdit" parent="."]
|
||||
offset_left = 84.0
|
||||
offset_top = 163.0
|
||||
offset_right = 423.0
|
||||
offset_bottom = 214.0
|
||||
placeholder_text = "Nom"
|
||||
alignment = 1
|
||||
max_length = 16
|
||||
|
||||
[node name="Button" type="Button" parent="."]
|
||||
offset_left = 220.0
|
||||
offset_top = 218.0
|
||||
offset_right = 287.0
|
||||
offset_bottom = 249.0
|
||||
text = "Assigna"
|
||||
|
||||
[connection signal="pressed" from="Button" to="." method="_on_submit_pressed"]
|
Loading…
Add table
Add a link
Reference in a new issue