feat: dragon list new format
This commit is contained in:
parent
31e9b4770b
commit
b17c7280ea
5 changed files with 171 additions and 460 deletions
|
@ -1,25 +1,138 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://tubxrqxjic6r"]
|
||||
[gd_scene load_steps=16 format=3 uid="uid://tubxrqxjic6r"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bs45hvb2mpw4k" path="res://scenes/dragon_list/dragon_properties.tscn" id="1_4vct3"]
|
||||
[ext_resource type="Script" uid="uid://dm8d0ikf1n8qa" path="res://scenes/dragon_list/dragon_list_view.gd" id="1_q7g8i"]
|
||||
[ext_resource type="Resource" uid="uid://x063x858re3f" path="res://assets/outfits/hats.tres" id="2_1ytgk"]
|
||||
[ext_resource type="Texture2D" uid="uid://dceoy4417v83e" path="res://assets/sprites/ui/DP_UI_CharCreation_BG.png" id="3_3pkqp"]
|
||||
[ext_resource type="Resource" uid="uid://bsydervvb1jpe" path="res://assets/outfits/shirts.tres" id="3_74fyi"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://duxxw4mfxql3c" path="res://assets/animations/dragons/verd.tres" id="4_1n46k"]
|
||||
[ext_resource type="Resource" uid="uid://dkm7d10c1lp2n" path="res://assets/outfits/decor.tres" id="4_b7eir"]
|
||||
[ext_resource type="Resource" uid="uid://c03ejnvavmcj5" path="res://assets/outfits/dragons.tres" id="5_cv2ce"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://ccxyplt2t7t6y" path="res://assets/animations/hats/barretina.tres" id="5_u20w8"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://dsxhfu2ekw7j" path="res://assets/animations/shirts/traje.tres" id="6_1ytgk"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://c5rqqy7b5ihi5" path="res://assets/animations/decor/rosa.tres" id="7_74fyi"]
|
||||
[ext_resource type="Script" path="res://src/draggable.gd" id="8_b7eir"]
|
||||
[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://bu5xa7tgfk3h3" path="res://assets/sprites/ui/DP_UI_Buttons01.png" id="9_k4ppc"]
|
||||
|
||||
[node name="DragonList" type="Window" node_paths=PackedStringArray("dragon_list_view")]
|
||||
size = Vector2i(450, 700)
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_1n46k"]
|
||||
atlas = ExtResource("9_k4ppc")
|
||||
region = Rect2(0, 120, 38, 40)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_u20w8"]
|
||||
atlas = ExtResource("9_k4ppc")
|
||||
region = Rect2(0, 160, 38, 40)
|
||||
|
||||
[node name="DragonList" type="Window" node_paths=PackedStringArray("origin_name_label", "dragon_name_label", "hat", "shirt", "decor", "dragon")]
|
||||
transparent_bg = true
|
||||
size = Vector2i(230, 332)
|
||||
unresizable = true
|
||||
borderless = true
|
||||
always_on_top = true
|
||||
transparent = true
|
||||
script = ExtResource("1_q7g8i")
|
||||
dragon_list_entry = ExtResource("1_4vct3")
|
||||
dragon_list_view = NodePath("CanvasLayer/ScrollContainer/VBoxContainer")
|
||||
origin_name_label = NodePath("CanvasLayer/TowerLabel/Label")
|
||||
dragon_name_label = NodePath("CanvasLayer/NameLabel/Label")
|
||||
hat = NodePath("CanvasLayer/Dragon/Hat")
|
||||
shirt = NodePath("CanvasLayer/Dragon/Shirt")
|
||||
decor = NodePath("CanvasLayer/Dragon/Decor")
|
||||
dragon = NodePath("CanvasLayer/Dragon")
|
||||
hat_outfits = ExtResource("2_1ytgk")
|
||||
shirt_outfits = ExtResource("3_74fyi")
|
||||
decor_outfits = ExtResource("4_b7eir")
|
||||
dragon_colors = ExtResource("5_cv2ce")
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="ScrollContainer" type="ScrollContainer" parent="CanvasLayer"]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
[node name="BG" type="TextureRect" parent="CanvasLayer"]
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
texture = ExtResource("3_3pkqp")
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/ScrollContainer"]
|
||||
layout_mode = 2
|
||||
[node name="TowerLabel" type="TextureRect" parent="CanvasLayer"]
|
||||
offset_left = 34.0
|
||||
offset_top = 50.0
|
||||
offset_right = 182.0
|
||||
offset_bottom = 98.0
|
||||
texture = ExtResource("9_cv2ce")
|
||||
|
||||
[node name="Label" type="Label" parent="CanvasLayer/TowerLabel"]
|
||||
layout_mode = 0
|
||||
offset_top = 2.0
|
||||
offset_right = 148.0
|
||||
offset_bottom = 48.0
|
||||
text = "La Seu d'Urgell"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[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("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
|
||||
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 = 198.0
|
||||
offset_bottom = 320.0
|
||||
script = ExtResource("8_b7eir")
|
||||
|
||||
[node name="Dragon" type="AnimatedSprite2D" parent="CanvasLayer"]
|
||||
position = Vector2(112, 154)
|
||||
sprite_frames = ExtResource("4_1n46k")
|
||||
animation = &"idle"
|
||||
|
||||
[node name="Hat" type="AnimatedSprite2D" parent="CanvasLayer/Dragon"]
|
||||
sprite_frames = ExtResource("5_u20w8")
|
||||
animation = &"idle"
|
||||
|
||||
[node name="Shirt" type="AnimatedSprite2D" parent="CanvasLayer/Dragon"]
|
||||
sprite_frames = ExtResource("6_1ytgk")
|
||||
animation = &"idle"
|
||||
|
||||
[node name="Decor" type="AnimatedSprite2D" parent="CanvasLayer/Dragon"]
|
||||
sprite_frames = ExtResource("7_74fyi")
|
||||
animation = &"idle"
|
||||
|
||||
[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_1n46k")
|
||||
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_1n46k")
|
||||
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_u20w8")
|
||||
flat = true
|
||||
|
||||
[connection signal="close_requested" from="." to="." method="_on_close_requested"]
|
||||
[connection signal="pressed" from="CanvasLayer/close" to="." method="_on_close_pressed"]
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
extends Control
|
||||
class_name DragonListEntry
|
||||
|
||||
@export var texture_rect: TextureRect
|
||||
@export var name_label: Label
|
||||
@export var origin_label: Label
|
||||
|
||||
@export var hat_outfits: DragonOutfit
|
||||
@export var shirt_outfits: DragonOutfit
|
||||
@export var shoes_outfits: DragonOutfit
|
||||
|
||||
|
||||
func set_properties(properties: DragonProperties) -> void:
|
||||
name_label.text = properties.name
|
||||
origin_label.text = properties.origin
|
|
@ -1 +0,0 @@
|
|||
uid://d1bq5f35wptxt
|
|
@ -1,23 +1,57 @@
|
|||
extends Window
|
||||
class_name DragonList
|
||||
|
||||
@export var dragon_list_entry: PackedScene
|
||||
@export var dragon_list_view: VBoxContainer
|
||||
|
||||
var _library: DragonLibrary
|
||||
@onready var dragger: DraggableWindow = $CanvasLayer/Dragger
|
||||
|
||||
@export var origin_name_label: Label
|
||||
@export var dragon_name_label: Label
|
||||
|
||||
@export var hat: AnimatedSprite2D
|
||||
@export var shirt: AnimatedSprite2D
|
||||
@export var decor: AnimatedSprite2D
|
||||
@export var dragon: AnimatedSprite2D
|
||||
|
||||
@export var hat_outfits: DragonOutfit
|
||||
@export var shirt_outfits: DragonOutfit
|
||||
@export var decor_outfits: DragonOutfit
|
||||
@export var dragon_colors: DragonOutfit
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
dragger.on_drag.connect(_on_drag)
|
||||
|
||||
|
||||
func _on_drag(offset: Vector2i):
|
||||
position += offset
|
||||
|
||||
|
||||
func set_library(library: DragonLibrary):
|
||||
_library = library
|
||||
for d in _library.dragons:
|
||||
append_dragon(d)
|
||||
_show_dragon(library.dragons[0])
|
||||
|
||||
|
||||
func append_dragon(properties: DragonProperties):
|
||||
var dragon: DragonListEntry = dragon_list_entry.instantiate()
|
||||
dragon.set_properties(properties)
|
||||
dragon_list_view.add_child(dragon)
|
||||
func _show_dragon(dragon: DragonProperties):
|
||||
hat.sprite_frames = hat_outfits.get_texture(dragon.hat)
|
||||
shirt.sprite_frames = shirt_outfits.get_texture(dragon.shirt)
|
||||
decor.sprite_frames = decor_outfits.get_texture(dragon.decor)
|
||||
self.dragon.sprite_frames = dragon_colors.get_texture(dragon.color)
|
||||
_restart_animations()
|
||||
|
||||
origin_name_label.text = dragon.origin
|
||||
dragon_name_label.text = dragon.name
|
||||
|
||||
|
||||
func _on_close_requested() -> void:
|
||||
func _restart_animations():
|
||||
hat.set_frame(0)
|
||||
hat.play('idle')
|
||||
shirt.set_frame(0)
|
||||
shirt.play('idle')
|
||||
decor.set_frame(0)
|
||||
decor.play('idle')
|
||||
dragon.set_frame(0)
|
||||
dragon.play('idle')
|
||||
|
||||
|
||||
func _on_close_pressed() -> void:
|
||||
queue_free()
|
||||
|
|
|
@ -1,420 +0,0 @@
|
|||
[gd_scene load_steps=57 format=3 uid="uid://bs45hvb2mpw4k"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://fdqnc2qrrvn1" path="res://assets/sprites/icon.svg" id="1_4i8li"]
|
||||
[ext_resource type="Script" uid="uid://d1bq5f35wptxt" path="res://scenes/dragon_list/dragon_list_entry.gd" id="1_s7he7"]
|
||||
[ext_resource type="FontFile" uid="uid://dn8qanm8tctb2" path="res://assets/fonts/Montserrat-Regular.ttf" id="2_s7he7"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://ccxyplt2t7t6y" path="res://assets/animations/hats/barretina.tres" id="2_xvxt0"]
|
||||
[ext_resource type="Script" uid="uid://rw26nny160xh" path="res://src/dragon_outfit.gd" id="3_eop0l"]
|
||||
[ext_resource type="Texture2D" uid="uid://c7nmelv0lx3i3" path="res://assets/sprites/decor/DP_acc_escut_Anim.png" id="4_xvxt0"]
|
||||
[ext_resource type="Texture2D" uid="uid://drnel2cjwf5dr" path="res://assets/sprites/decor/DP_acc_espasa_Anim.png" id="5_eop0l"]
|
||||
[ext_resource type="Texture2D" uid="uid://dbbcv076jh4ep" path="res://assets/sprites/decor/DP_acc_rosa_Anim.png" id="6_chh13"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_nlx3a"]
|
||||
script = ExtResource("3_eop0l")
|
||||
allow_null = true
|
||||
outfits = Array[SpriteFrames]([ExtResource("2_xvxt0")])
|
||||
metadata/_custom_type_script = "uid://rw26nny160xh"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_1dq4x"]
|
||||
script = ExtResource("3_eop0l")
|
||||
allow_null = true
|
||||
outfits = Array[SpriteFrames]([ExtResource("2_xvxt0")])
|
||||
metadata/_custom_type_script = "uid://rw26nny160xh"
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_n1vju"]
|
||||
atlas = ExtResource("4_xvxt0")
|
||||
region = Rect2(0, 216, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_m1nfd"]
|
||||
atlas = ExtResource("4_xvxt0")
|
||||
region = Rect2(108, 216, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_3fnsk"]
|
||||
atlas = ExtResource("4_xvxt0")
|
||||
region = Rect2(216, 216, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_njuvk"]
|
||||
atlas = ExtResource("4_xvxt0")
|
||||
region = Rect2(324, 216, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mq26c"]
|
||||
atlas = ExtResource("4_xvxt0")
|
||||
region = Rect2(0, 0, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_p6fb4"]
|
||||
atlas = ExtResource("4_xvxt0")
|
||||
region = Rect2(108, 0, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_fwa0p"]
|
||||
atlas = ExtResource("4_xvxt0")
|
||||
region = Rect2(216, 0, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_26ptf"]
|
||||
atlas = ExtResource("4_xvxt0")
|
||||
region = Rect2(324, 0, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_amy8y"]
|
||||
atlas = ExtResource("4_xvxt0")
|
||||
region = Rect2(432, 0, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_knwp6"]
|
||||
atlas = ExtResource("4_xvxt0")
|
||||
region = Rect2(540, 0, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_yfy00"]
|
||||
atlas = ExtResource("4_xvxt0")
|
||||
region = Rect2(0, 108, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_bnccx"]
|
||||
atlas = ExtResource("4_xvxt0")
|
||||
region = Rect2(108, 108, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_hc8ch"]
|
||||
atlas = ExtResource("4_xvxt0")
|
||||
region = Rect2(216, 108, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0nuxw"]
|
||||
atlas = ExtResource("4_xvxt0")
|
||||
region = Rect2(324, 108, 108, 108)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_gqmmt"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_n1vju")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_m1nfd")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_3fnsk")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_njuvk")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"fly",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_mq26c")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_p6fb4")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_fwa0p")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_26ptf")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_amy8y")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_knwp6")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_yfy00")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_bnccx")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_hc8ch")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_0nuxw")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"walk",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qwppa"]
|
||||
atlas = ExtResource("5_eop0l")
|
||||
region = Rect2(0, 216, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_1uixo"]
|
||||
atlas = ExtResource("5_eop0l")
|
||||
region = Rect2(108, 216, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_xccp0"]
|
||||
atlas = ExtResource("5_eop0l")
|
||||
region = Rect2(216, 216, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_nyede"]
|
||||
atlas = ExtResource("5_eop0l")
|
||||
region = Rect2(324, 216, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_cxse4"]
|
||||
atlas = ExtResource("5_eop0l")
|
||||
region = Rect2(0, 0, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_edjcl"]
|
||||
atlas = ExtResource("5_eop0l")
|
||||
region = Rect2(108, 0, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_jhak8"]
|
||||
atlas = ExtResource("5_eop0l")
|
||||
region = Rect2(216, 0, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_t2351"]
|
||||
atlas = ExtResource("5_eop0l")
|
||||
region = Rect2(324, 0, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_uw07h"]
|
||||
atlas = ExtResource("5_eop0l")
|
||||
region = Rect2(432, 0, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_xcrai"]
|
||||
atlas = ExtResource("5_eop0l")
|
||||
region = Rect2(540, 0, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_tywya"]
|
||||
atlas = ExtResource("5_eop0l")
|
||||
region = Rect2(0, 108, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_7pu4u"]
|
||||
atlas = ExtResource("5_eop0l")
|
||||
region = Rect2(108, 108, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_i1w1o"]
|
||||
atlas = ExtResource("5_eop0l")
|
||||
region = Rect2(216, 108, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_xsi0i"]
|
||||
atlas = ExtResource("5_eop0l")
|
||||
region = Rect2(324, 108, 108, 108)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_yc10j"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_qwppa")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_1uixo")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_xccp0")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_nyede")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"fly",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_cxse4")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_edjcl")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_jhak8")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_t2351")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_uw07h")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_xcrai")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_tywya")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_7pu4u")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_i1w1o")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_xsi0i")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"walk",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ifv4k"]
|
||||
atlas = ExtResource("6_chh13")
|
||||
region = Rect2(0, 216, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_uera2"]
|
||||
atlas = ExtResource("6_chh13")
|
||||
region = Rect2(108, 216, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0q8tn"]
|
||||
atlas = ExtResource("6_chh13")
|
||||
region = Rect2(216, 216, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_f2bes"]
|
||||
atlas = ExtResource("6_chh13")
|
||||
region = Rect2(324, 216, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_albls"]
|
||||
atlas = ExtResource("6_chh13")
|
||||
region = Rect2(0, 0, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mlrdx"]
|
||||
atlas = ExtResource("6_chh13")
|
||||
region = Rect2(108, 0, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_dipuj"]
|
||||
atlas = ExtResource("6_chh13")
|
||||
region = Rect2(216, 0, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_d0xss"]
|
||||
atlas = ExtResource("6_chh13")
|
||||
region = Rect2(324, 0, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mpdbr"]
|
||||
atlas = ExtResource("6_chh13")
|
||||
region = Rect2(432, 0, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_dy3ut"]
|
||||
atlas = ExtResource("6_chh13")
|
||||
region = Rect2(540, 0, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_gi66g"]
|
||||
atlas = ExtResource("6_chh13")
|
||||
region = Rect2(0, 108, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_am77p"]
|
||||
atlas = ExtResource("6_chh13")
|
||||
region = Rect2(108, 108, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_asxml"]
|
||||
atlas = ExtResource("6_chh13")
|
||||
region = Rect2(216, 108, 108, 108)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_pral7"]
|
||||
atlas = ExtResource("6_chh13")
|
||||
region = Rect2(324, 108, 108, 108)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_rhebu"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ifv4k")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_uera2")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_0q8tn")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_f2bes")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"fly",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_albls")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_mlrdx")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_dipuj")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_d0xss")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_mpdbr")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_dy3ut")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_gi66g")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_am77p")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_asxml")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_pral7")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"walk",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_if2jb"]
|
||||
script = ExtResource("3_eop0l")
|
||||
allow_null = true
|
||||
outfits = Array[SpriteFrames]([SubResource("SpriteFrames_gqmmt"), SubResource("SpriteFrames_yc10j"), SubResource("SpriteFrames_rhebu")])
|
||||
metadata/_custom_type_script = "uid://rw26nny160xh"
|
||||
|
||||
[node name="DragonProperties" type="Control" node_paths=PackedStringArray("texture_rect", "name_label", "origin_label")]
|
||||
custom_minimum_size = Vector2(0, 128)
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
script = ExtResource("1_s7he7")
|
||||
texture_rect = NodePath("TextureRect")
|
||||
name_label = NodePath("Name")
|
||||
origin_label = NodePath("Origin")
|
||||
hat_outfits = SubResource("Resource_nlx3a")
|
||||
shirt_outfits = SubResource("Resource_1dq4x")
|
||||
shoes_outfits = SubResource("Resource_if2jb")
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 8.0
|
||||
offset_top = 8.0
|
||||
offset_right = 128.0
|
||||
offset_bottom = 128.0
|
||||
texture = ExtResource("1_4i8li")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Name" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 132.0
|
||||
offset_top = 4.0
|
||||
offset_right = 449.0
|
||||
offset_bottom = 128.0
|
||||
scale = Vector2(0.8, 1)
|
||||
theme_override_fonts/font = ExtResource("2_s7he7")
|
||||
theme_override_font_sizes/font_size = 36
|
||||
text = "AAAAAAAA"
|
||||
|
||||
[node name="Origin" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 132.0
|
||||
offset_top = 8.0
|
||||
offset_right = 530.0
|
||||
offset_bottom = 72.0
|
||||
scale = Vector2(0.8, 1)
|
||||
theme_override_fonts/font = ExtResource("2_s7he7")
|
||||
theme_override_font_sizes/font_size = 21
|
||||
text = "AAAAAAAAAAAAAAAAAAAAAA"
|
||||
vertical_alignment = 2
|
Loading…
Add table
Add a link
Reference in a new issue