La-Torreta-del-Drac/scenes/dragon_list/dragon_list.tscn
2025-04-23 01:01:39 +02:00

146 lines
5.5 KiB
Text

[gd_scene load_steps=12 format=3 uid="uid://tubxrqxjic6r"]
[ext_resource type="Script" uid="uid://dm8d0ikf1n8qa" path="res://scenes/dragon_list/dragon_list_view.gd" id="1_q7g8i"]
[ext_resource type="PackedScene" uid="uid://cq3orf2ktmel0" path="res://scenes/dragon_list/dragon/dragon.tscn" id="2_h4iwm"]
[ext_resource type="Texture2D" uid="uid://cup2lrb8lou72" path="res://assets/sprites/ui/DP_UI_CharList_BG.png" id="4_f227k"]
[ext_resource type="Texture2D" uid="uid://d27vpp71fe4de" path="res://assets/sprites/ui/DP_UI_CharList_Frame.png" id="6_74fyi"]
[ext_resource type="Texture2D" uid="uid://dwm2bfuamf3bp" path="res://assets/sprites/ui/buttons/direction.png" id="8_1n46k"]
[ext_resource type="FontFile" uid="uid://u1pey2ilx31c" path="res://assets/fonts/Montjuic.ttf" id="8_74fyi"]
[ext_resource type="Script" uid="uid://dxl7onk7x6h8b" path="res://src/draggable.gd" id="8_b7eir"]
[ext_resource type="Texture2D" uid="uid://d2n43pu0wvplp" path="res://assets/sprites/ui/buttons/close.png" id="9_1n46k"]
[ext_resource type="Texture2D" uid="uid://bdrm1nxydvf5t" path="res://assets/sprites/ui/DP_UI_Label_Big.png" id="9_cv2ce"]
[ext_resource type="Texture2D" uid="uid://btw3cpkp5bgi" path="res://assets/sprites/ui/buttons/direction-highlight.png" id="9_u20w8"]
[ext_resource type="Texture2D" uid="uid://bsn66gnb08x3u" path="res://assets/sprites/ui/buttons/close-highlight.png" id="10_u20w8"]
[node name="DragonList" type="Window" node_paths=PackedStringArray("dragon_list_pivot", "origin_name_label", "dragon_name_label")]
transparent_bg = true
size = Vector2i(344, 332)
unresizable = true
borderless = true
always_on_top = true
transparent = true
script = ExtResource("1_q7g8i")
dragon_list_entry_template = ExtResource("2_h4iwm")
dragon_list_pivot = NodePath("CanvasLayer/SubViewportContainer/SubViewport/Pivot")
origin_name_label = NodePath("CanvasLayer/TowerNameLabel/Label")
dragon_name_label = NodePath("CanvasLayer/NameLabel/Label")
[node name="CanvasLayer" type="CanvasLayer" parent="."]
[node name="Background" type="NinePatchRect" parent="CanvasLayer"]
offset_left = 18.0
offset_top = 32.0
offset_right = 300.0
offset_bottom = 314.0
texture = ExtResource("6_74fyi")
patch_margin_left = 32
patch_margin_top = 32
patch_margin_right = 32
patch_margin_bottom = 32
[node name="TextureRect" type="TextureRect" parent="CanvasLayer"]
offset_right = 40.0
offset_bottom = 40.0
texture = ExtResource("4_f227k")
[node name="TowerNameLabel" type="NinePatchRect" parent="CanvasLayer"]
offset_left = 40.0
offset_top = 51.0
offset_right = 290.0
offset_bottom = 99.0
texture = ExtResource("9_cv2ce")
patch_margin_left = 74
patch_margin_right = 74
[node name="Label" type="Label" parent="CanvasLayer/TowerNameLabel"]
layout_mode = 0
offset_left = 2.0
offset_top = 2.0
offset_right = 250.0
offset_bottom = 48.0
theme_override_fonts/font = ExtResource("8_74fyi")
theme_override_font_sizes/font_size = 28
text = "AAAAAAAAAAAAAAAA"
horizontal_alignment = 1
vertical_alignment = 1
[node name="NameLabel" type="TextureRect" parent="CanvasLayer"]
offset_left = 94.0
offset_top = 228.0
offset_right = 242.0
offset_bottom = 276.0
texture = ExtResource("9_cv2ce")
[node name="Label" type="Label" parent="CanvasLayer/NameLabel"]
layout_mode = 0
offset_top = 2.0
offset_right = 148.0
offset_bottom = 48.0
theme_override_fonts/font = ExtResource("8_74fyi")
theme_override_font_sizes/font_size = 28
text = "DRAGONET"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Dragger" type="Control" parent="CanvasLayer"]
layout_mode = 3
anchors_preset = 0
offset_left = 18.0
offset_top = 32.0
offset_right = 307.0
offset_bottom = 320.0
script = ExtResource("8_b7eir")
[node name="SubViewportContainer" type="SubViewportContainer" parent="CanvasLayer"]
offset_left = 24.0
offset_top = 105.0
offset_right = 306.0
offset_bottom = 213.0
[node name="SubViewport" type="SubViewport" parent="CanvasLayer/SubViewportContainer"]
transparent_bg = true
handle_input_locally = false
size = Vector2i(282, 108)
render_target_update_mode = 4
[node name="Pivot" type="Node2D" parent="CanvasLayer/SubViewportContainer/SubViewport"]
position = Vector2(143, 54)
[node name="dragon_next" type="TextureButton" parent="CanvasLayer"]
offset_left = 198.0
offset_top = 140.0
offset_right = 238.0
offset_bottom = 180.0
texture_normal = ExtResource("8_1n46k")
texture_pressed = ExtResource("9_u20w8")
texture_hover = ExtResource("9_u20w8")
texture_disabled = ExtResource("8_1n46k")
texture_focused = ExtResource("8_1n46k")
[node name="dragon_previous" type="TextureButton" parent="CanvasLayer"]
offset_left = 94.0
offset_top = 140.0
offset_right = 134.0
offset_bottom = 180.0
texture_normal = ExtResource("8_1n46k")
texture_pressed = ExtResource("9_u20w8")
texture_hover = ExtResource("9_u20w8")
texture_disabled = ExtResource("8_1n46k")
texture_focused = ExtResource("8_1n46k")
flip_h = true
[node name="close" type="TextureButton" parent="CanvasLayer"]
offset_left = 296.0
offset_top = 10.0
offset_right = 336.0
offset_bottom = 50.0
texture_normal = ExtResource("9_1n46k")
texture_pressed = ExtResource("10_u20w8")
texture_hover = ExtResource("10_u20w8")
texture_disabled = ExtResource("9_1n46k")
texture_focused = ExtResource("9_1n46k")
[connection signal="close_requested" from="." to="." method="_on_close_requested"]
[connection signal="pressed" from="CanvasLayer/dragon_next" to="." method="_on_dragon_next_pressed"]
[connection signal="pressed" from="CanvasLayer/dragon_previous" to="." method="_on_dragon_previous_pressed"]
[connection signal="pressed" from="CanvasLayer/close" to="." method="_on_close_pressed"]