La-Torreta-del-Drac/scenes/name_setter/name_setter.tscn

86 lines
2.8 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[gd_scene load_steps=8 format=3 uid="uid://cdlipr8l1k38a"]
[ext_resource type="Script" uid="uid://drulv5ptupx2w" path="res://scenes/name_setter/name_setter.gd" id="1_f3gk5"]
[ext_resource type="Texture2D" uid="uid://d27vpp71fe4de" path="res://assets/sprites/ui/DP_UI_CharList_Frame.png" id="2_wkl5f"]
[ext_resource type="Texture2D" uid="uid://bgpbbkmwt8ysq" path="res://assets/sprites/ui/DP_UI_Button_Text.png" id="3_1ipfa"]
[ext_resource type="FontFile" uid="uid://u1pey2ilx31c" path="res://assets/fonts/Montjuic.ttf" id="3_fjxtl"]
[ext_resource type="Texture2D" uid="uid://bdrm1nxydvf5t" path="res://assets/sprites/ui/DP_UI_Label_Big.png" id="3_rlhj7"]
[ext_resource type="StyleBox" uid="uid://bhe580k04w6ve" path="res://assets/styles/style_box_empty.tres" id="4_fjxtl"]
[sub_resource type="AtlasTexture" id="AtlasTexture_27shg"]
atlas = ExtResource("3_1ipfa")
region = Rect2(0, 0, 62, 24)
[node name="NameSetter" type="Window"]
transparent_bg = true
position = Vector2i(0, 36)
size = Vector2i(700, 300)
unresizable = true
borderless = true
always_on_top = true
transparent = true
script = ExtResource("1_f3gk5")
[node name="Background" type="ColorRect" parent="."]
offset_left = 4.0
offset_top = 4.0
offset_right = 697.0
offset_bottom = 294.0
color = Color(0.176471, 0.227451, 0.239216, 1)
[node name="Border" type="NinePatchRect" parent="."]
offset_right = 700.0
offset_bottom = 300.0
texture = ExtResource("2_wkl5f")
patch_margin_left = 32
patch_margin_top = 32
patch_margin_right = 32
patch_margin_bottom = 32
[node name="Instructions" type="Label" parent="."]
offset_left = 6.0
offset_top = 12.0
offset_right = 694.0
offset_bottom = 223.0
theme_override_fonts/font = ExtResource("3_fjxtl")
theme_override_font_sizes/font_size = 28
text = "En aquesta torreta, present a la cantonada del teu escriptori, hi viuran uns dracs que tacompanyaran 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 torreta.
És el primer pas per fer-la teva."
horizontal_alignment = 1
autowrap_mode = 2
[node name="NameLabelBG" type="NinePatchRect" parent="."]
offset_left = 204.0
offset_top = 214.0
offset_right = 496.0
offset_bottom = 262.0
texture = ExtResource("3_rlhj7")
patch_margin_left = 74
patch_margin_right = 74
[node name="Name" type="LineEdit" parent="."]
offset_left = 180.0
offset_top = 214.0
offset_right = 520.0
offset_bottom = 262.0
theme_override_fonts/font = ExtResource("3_fjxtl")
theme_override_font_sizes/font_size = 28
theme_override_styles/focus = ExtResource("4_fjxtl")
placeholder_text = "Nom"
alignment = 1
max_length = 16
flat = true
caret_blink = true
[node name="create" type="Button" parent="."]
offset_left = 626.0
offset_top = 262.0
offset_right = 696.0
offset_bottom = 294.0
focus_mode = 0
icon = SubResource("AtlasTexture_27shg")
flat = true
[connection signal="pressed" from="create" to="." method="_on_submit_pressed"]