feat: tower naming style

This commit is contained in:
Gerard Gascón 2025-04-14 23:38:44 +02:00
parent 6ebd5731c0
commit b78167f24d
2 changed files with 57 additions and 14 deletions

View file

@ -8,7 +8,7 @@
[ext_resource type="Resource" uid="uid://c03ejnvavmcj5" path="res://assets/outfits/dragons.tres" id="5_1ivi1"]
[ext_resource type="SpriteFrames" uid="uid://c5rqqy7b5ihi5" path="res://assets/animations/decor/rosa.tres" id="6_c4sli"]
[ext_resource type="Texture2D" uid="uid://dceoy4417v83e" path="res://assets/sprites/ui/DP_UI_CharCreation_BG.png" id="6_udwtk"]
[ext_resource type="Script" uid="uid://dxl7onk7x6h8b" path="res://src/draggable.gd" id="7_1vw8k"]
[ext_resource type="Script" path="res://src/draggable.gd" id="7_1vw8k"]
[ext_resource type="Texture2D" uid="uid://bu5xa7tgfk3h3" path="res://assets/sprites/ui/DP_UI_Buttons01.png" id="7_qppok"]
[ext_resource type="Texture2D" uid="uid://bgpbbkmwt8ysq" path="res://assets/sprites/ui/DP_UI_Button_Text.png" id="8_ofxsr"]
[ext_resource type="Script" uid="uid://mhudiyt5gnt1" path="res://scenes/dragon_editor/line_edit.gd" id="9_xhgxf"]

View file

@ -1,38 +1,81 @@
[gd_scene load_steps=2 format=3 uid="uid://cdlipr8l1k38a"]
[gd_scene load_steps=7 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="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(500, 250)
unresizable = true
borderless = true
always_on_top = true
transparent = true
script = ExtResource("1_f3gk5")
[node name="Instructions" type="Label" parent="."]
[node name="Background" type="ColorRect" parent="."]
offset_left = 4.0
offset_top = 4.0
offset_right = 496.0
offset_bottom = 244.0
color = Color(0.176471, 0.227451, 0.239216, 1)
[node name="Border" type="NinePatchRect" parent="."]
offset_right = 500.0
offset_bottom = 146.0
offset_bottom = 250.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 = 8.0
offset_right = 494.0
offset_bottom = 161.0
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 teva torreta.
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 = 104.0
offset_top = 167.0
offset_right = 396.0
offset_bottom = 215.0
texture = ExtResource("3_rlhj7")
patch_margin_left = 74
patch_margin_right = 74
[node name="Name" type="LineEdit" parent="."]
offset_left = 84.0
offset_top = 163.0
offset_top = 167.0
offset_right = 423.0
offset_bottom = 214.0
offset_bottom = 215.0
theme_override_styles/focus = ExtResource("4_fjxtl")
placeholder_text = "Nom"
alignment = 1
max_length = 16
flat = true
caret_blink = true
[node name="Button" type="Button" parent="."]
offset_left = 220.0
offset_top = 218.0
offset_right = 287.0
offset_bottom = 249.0
text = "Assigna"
[node name="create" type="Button" parent="."]
offset_left = 426.0
offset_top = 212.0
offset_right = 496.0
offset_bottom = 244.0
focus_mode = 0
icon = SubResource("AtlasTexture_27shg")
flat = true
[connection signal="pressed" from="Button" to="." method="_on_submit_pressed"]
[connection signal="pressed" from="create" to="." method="_on_submit_pressed"]