La-Torreta-del-Drac/scenes/dragon_editor/dragon_editor.tscn
2025-04-11 11:22:29 +02:00

178 lines
5.3 KiB
Text

[gd_scene load_steps=11 format=3 uid="uid://fut42ruut302"]
[ext_resource type="Script" uid="uid://bfuos2kgfgber" path="res://scenes/dragon_editor/dragon_editor.gd" id="1_8vkll"]
[ext_resource type="Resource" uid="uid://cnhwn6kfcbjl5" path="res://assets/outfits/hats.tres" id="2_vvtct"]
[ext_resource type="Resource" uid="uid://etegcak2sphs" path="res://assets/outfits/shirts.tres" id="3_xhgxf"]
[ext_resource type="Resource" uid="uid://ba5684xylts3f" path="res://assets/outfits/shoes.tres" id="4_1ivi1"]
[ext_resource type="Resource" uid="uid://bcs60f2k7h0jc" path="res://assets/outfits/dragons.tres" id="5_1ivi1"]
[ext_resource type="Texture2D" uid="uid://dl87ffgh2hl68" path="res://assets/sprites/dragons/DragonPet_drac01.png" id="5_xhgxf"]
[ext_resource type="Texture2D" uid="uid://12fv5nymaljj" path="res://assets/sprites/hats/DragonPet_barret_barretina.png" id="6_1ivi1"]
[ext_resource type="Texture2D" uid="uid://cs0ke244c33t2" path="res://assets/sprites/shirts/DragonPet_roba_armadura.png" id="7_giwys"]
[ext_resource type="Texture2D" uid="uid://onajhbpjtnil" path="res://assets/sprites/decor/DragonPet_acc_escut.png" id="8_udwtk"]
[ext_resource type="Script" uid="uid://mhudiyt5gnt1" path="res://scenes/dragon_editor/line_edit.gd" id="9_xhgxf"]
[node name="DragonEditor" type="Window"]
title = "Dragon Editor"
position = Vector2i(0, 36)
size = Vector2i(300, 500)
always_on_top = true
min_size = Vector2i(300, 500)
max_size = Vector2i(1000, 1000)
script = ExtResource("1_8vkll")
hat_outfits = ExtResource("2_vvtct")
shirt_outfits = ExtResource("3_xhgxf")
shoes_outfits = ExtResource("4_1ivi1")
dragon_colors = ExtResource("5_1ivi1")
[node name="CanvasLayer" type="CanvasLayer" parent="."]
[node name="change_hat" type="Button" parent="CanvasLayer"]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -130.0
offset_top = -206.0
offset_right = -62.0
offset_bottom = -175.0
grow_horizontal = 2
grow_vertical = 2
focus_mode = 0
text = "barret"
[node name="change_shirt" type="Button" parent="CanvasLayer"]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -47.0
offset_top = -242.0
offset_right = 42.0
offset_bottom = -211.0
grow_horizontal = 2
grow_vertical = 2
focus_mode = 0
text = "samarreta"
[node name="change_shoes" type="Button" parent="CanvasLayer"]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = 54.0
offset_top = -206.0
offset_right = 114.0
offset_bottom = -175.0
grow_horizontal = 2
grow_vertical = 2
focus_mode = 0
text = "sabata"
[node name="dragon_previous" type="Button" parent="CanvasLayer"]
offset_left = 40.0
offset_top = 232.0
offset_right = 58.0
offset_bottom = 263.0
focus_mode = 0
text = "<"
[node name="dragon_next" type="Button" parent="CanvasLayer"]
offset_left = 235.0
offset_top = 232.0
offset_right = 253.0
offset_bottom = 263.0
focus_mode = 0
text = ">"
[node name="create" type="Button" parent="CanvasLayer"]
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -42.0
offset_top = -31.0
grow_horizontal = 0
grow_vertical = 0
focus_mode = 0
text = "crea"
[node name="Dragon" type="TextureRect" parent="CanvasLayer"]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -38.0
offset_top = -57.0
offset_right = 38.0
offset_bottom = 31.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("5_xhgxf")
[node name="Hat" type="TextureRect" parent="CanvasLayer/Dragon"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -38.0
offset_top = -44.0
offset_right = 38.0
offset_bottom = 44.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("6_1ivi1")
[node name="Shirt" type="TextureRect" parent="CanvasLayer/Dragon"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -38.0
offset_top = -44.0
offset_right = 38.0
offset_bottom = 44.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("7_giwys")
[node name="Shoes" type="TextureRect" parent="CanvasLayer/Dragon"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -38.0
offset_top = -44.0
offset_right = 38.0
offset_bottom = 44.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("8_udwtk")
[node name="LineEdit" type="LineEdit" parent="CanvasLayer"]
offset_left = 59.0
offset_top = 372.0
offset_right = 250.0
offset_bottom = 403.0
placeholder_text = "NOM"
alignment = 1
max_length = 8
script = ExtResource("9_xhgxf")
[connection signal="close_requested" from="." to="." method="_on_close_requested"]
[connection signal="pressed" from="CanvasLayer/change_hat" to="." method="_on_change_hat_pressed"]
[connection signal="pressed" from="CanvasLayer/change_shirt" to="." method="_on_change_shirt_pressed"]
[connection signal="pressed" from="CanvasLayer/change_shoes" to="." method="_on_change_shoes_pressed"]
[connection signal="pressed" from="CanvasLayer/dragon_previous" to="." method="_on_previous_color_pressed"]
[connection signal="pressed" from="CanvasLayer/dragon_next" to="." method="_on_next_color_pressed"]
[connection signal="pressed" from="CanvasLayer/create" to="." method="_on_create_pressed"]