Add spine and dialogic museums

This commit is contained in:
2026-06-15 00:35:27 +02:00
parent 12efcbb4a6
commit a621366717
1088 changed files with 74220 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
extends SpineSprite
func _ready():
var data = get_skeleton().get_data()
var custom_skin = new_skin("custom-skin")
var skin_base = data.find_skin("skin-base")
custom_skin.add_skin(skin_base)
custom_skin.add_skin(data.find_skin("nose/short"))
custom_skin.add_skin(data.find_skin("eyelids/girly"))
custom_skin.add_skin(data.find_skin("eyes/violet"))
custom_skin.add_skin(data.find_skin("hair/brown"))
custom_skin.add_skin(data.find_skin("clothes/hoodie-orange"))
custom_skin.add_skin(data.find_skin("legs/pants-jeans"))
custom_skin.add_skin(data.find_skin("accessories/bag"))
custom_skin.add_skin(data.find_skin("accessories/hat-red-yellow"))
get_skeleton().set_skin(custom_skin);
for el in custom_skin.get_attachments():
var entry: SpineSkinEntry = el
print(str(entry.get_slot_index()) + " " + entry.get_name())
get_animation_state().set_animation("dance", true, 0)

View File

@@ -0,0 +1 @@
uid://cgv3vry706p84

View File

@@ -0,0 +1,16 @@
[gd_scene format=3 uid="uid://dodvuj07fsynd"]
[ext_resource type="SpineSkeletonDataResource" uid="uid://btsqcvy7c5y8x" path="res://docs/museums/spine/assets/mix-and-match/mix-and-match-data.tres" id="2"]
[ext_resource type="Script" uid="uid://cgv3vry706p84" path="res://docs/museums/spine/examples/03-mix-and-match/mix-and-match.gd" id="2_clsj7"]
[node name="Node2D" type="Node2D" unique_id=2006583665]
[node name="MixAndMatch" type="SpineSprite" parent="." unique_id=1522896059]
skeleton_data_res = ExtResource("2")
preview_skin = "Default"
preview_animation = "-- Empty --"
preview_frame = false
preview_time = 0.0
position = Vector2(532.982, 480.287)
scale = Vector2(0.441932, 0.441932)
script = ExtResource("2_clsj7")