220 lines
7.2 KiB
Text
220 lines
7.2 KiB
Text
[gd_scene load_steps=23 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/decor.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://12fv5nymaljj" path="res://assets/sprites/hats/DragonPet_barret_barretina.png" id="6_1ivi1"]
|
|
[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="Texture2D" uid="uid://cs0ke244c33t2" path="res://assets/sprites/shirts/DragonPet_roba_armadura.png" id="7_giwys"]
|
|
[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="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"]
|
|
[ext_resource type="Texture2D" uid="uid://bdrm1nxydvf5t" path="res://assets/sprites/ui/DP_UI_Label_Big.png" id="12_qppok"]
|
|
[ext_resource type="StyleBox" uid="uid://bhe580k04w6ve" path="res://assets/styles/style_box_empty.tres" id="14_bh8dj"]
|
|
|
|
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_f0h1k"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ofxsr"]
|
|
atlas = ExtResource("7_qppok")
|
|
region = Rect2(0, 40, 38, 40)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_bh8dj"]
|
|
atlas = ExtResource("7_qppok")
|
|
region = Rect2(0, 80, 38, 40)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_1vw8k"]
|
|
atlas = ExtResource("7_qppok")
|
|
region = Rect2(0, 0, 38, 40)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_rrp4v"]
|
|
atlas = ExtResource("7_qppok")
|
|
region = Rect2(0, 120, 38, 40)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_mc14k"]
|
|
atlas = ExtResource("8_ofxsr")
|
|
region = Rect2(0, 0, 62, 24)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_kohpo"]
|
|
atlas = ExtResource("7_qppok")
|
|
region = Rect2(0, 160, 38, 40)
|
|
|
|
[node name="DragonEditor" type="Window"]
|
|
transparent_bg = true
|
|
title = "Dragon Editor"
|
|
position = Vector2i(0, 36)
|
|
size = Vector2i(230, 332)
|
|
unresizable = true
|
|
borderless = true
|
|
always_on_top = true
|
|
transparent = true
|
|
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="BG" type="TextureRect" parent="CanvasLayer"]
|
|
offset_right = 40.0
|
|
offset_bottom = 40.0
|
|
texture = ExtResource("6_udwtk")
|
|
|
|
[node name="Dragon" type="TextureRect" parent="CanvasLayer"]
|
|
offset_left = 76.0
|
|
offset_top = 120.0
|
|
offset_right = 152.0
|
|
offset_bottom = 208.0
|
|
texture = SubResource("CompressedTexture2D_f0h1k")
|
|
|
|
[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="Dragger" type="Control" parent="CanvasLayer"]
|
|
layout_mode = 3
|
|
anchors_preset = 0
|
|
offset_left = 18.0
|
|
offset_top = 32.0
|
|
offset_right = 198.0
|
|
offset_bottom = 320.0
|
|
script = ExtResource("7_1vw8k")
|
|
|
|
[node name="change_hat" type="Button" parent="CanvasLayer"]
|
|
offset_left = 48.0
|
|
offset_top = 38.0
|
|
offset_right = 94.0
|
|
offset_bottom = 86.0
|
|
focus_mode = 0
|
|
icon = SubResource("AtlasTexture_ofxsr")
|
|
flat = true
|
|
|
|
[node name="change_shirt" type="Button" parent="CanvasLayer"]
|
|
offset_left = 84.0
|
|
offset_top = 50.0
|
|
offset_right = 130.0
|
|
offset_bottom = 98.0
|
|
focus_mode = 0
|
|
icon = SubResource("AtlasTexture_bh8dj")
|
|
flat = true
|
|
|
|
[node name="change_shoes" type="Button" parent="CanvasLayer"]
|
|
offset_left = 120.0
|
|
offset_top = 38.0
|
|
offset_right = 166.0
|
|
offset_bottom = 86.0
|
|
focus_mode = 0
|
|
icon = SubResource("AtlasTexture_1vw8k")
|
|
flat = true
|
|
|
|
[node name="dragon_previous" type="Button" parent="CanvasLayer"]
|
|
offset_left = 76.0
|
|
offset_top = 136.0
|
|
offset_right = 122.0
|
|
offset_bottom = 184.0
|
|
scale = Vector2(-1, 1)
|
|
focus_mode = 0
|
|
icon = SubResource("AtlasTexture_rrp4v")
|
|
flat = true
|
|
|
|
[node name="dragon_next" type="Button" parent="CanvasLayer"]
|
|
offset_left = 134.0
|
|
offset_top = 136.0
|
|
offset_right = 180.0
|
|
offset_bottom = 184.0
|
|
focus_mode = 0
|
|
icon = SubResource("AtlasTexture_rrp4v")
|
|
flat = true
|
|
|
|
[node name="create" type="Button" parent="CanvasLayer"]
|
|
offset_left = 112.0
|
|
offset_top = 274.0
|
|
offset_right = 182.0
|
|
offset_bottom = 306.0
|
|
focus_mode = 0
|
|
icon = SubResource("AtlasTexture_mc14k")
|
|
flat = true
|
|
|
|
[node name="close" type="Button" parent="CanvasLayer"]
|
|
offset_left = 178.0
|
|
offset_top = 6.0
|
|
offset_right = 224.0
|
|
offset_bottom = 54.0
|
|
focus_mode = 0
|
|
icon = SubResource("AtlasTexture_kohpo")
|
|
flat = true
|
|
|
|
[node name="NameLabel" type="TextureRect" parent="CanvasLayer"]
|
|
offset_left = 34.0
|
|
offset_top = 228.0
|
|
offset_right = 182.0
|
|
offset_bottom = 276.0
|
|
texture = ExtResource("12_qppok")
|
|
|
|
[node name="LineEdit" type="LineEdit" parent="CanvasLayer/NameLabel"]
|
|
layout_mode = 0
|
|
offset_left = 10.0
|
|
offset_top = 8.0
|
|
offset_right = 138.0
|
|
offset_bottom = 42.0
|
|
theme_override_styles/focus = ExtResource("14_bh8dj")
|
|
placeholder_text = "NOM"
|
|
alignment = 1
|
|
max_length = 8
|
|
flat = true
|
|
caret_blink = true
|
|
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"]
|
|
[connection signal="pressed" from="CanvasLayer/close" to="." method="_on_close_pressed"]
|