mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-08 11:29:47 +00:00
This drastically reduces the number of nodes. Before, each cel would have its own property node which, when the project had many cels, drove the node count quite high.
87 lines
2.4 KiB
Plaintext
87 lines
2.4 KiB
Plaintext
[gd_scene load_steps=5 format=3 uid="uid://dw7ci3uixjuev"]
|
|
|
|
[ext_resource type="Script" path="res://src/UI/Timeline/CelButton.gd" id="1_iewgo"]
|
|
[ext_resource type="PackedScene" uid="uid://3pmb60gpst7b" path="res://src/UI/Nodes/TransparentChecker.tscn" id="2_mi8wp"]
|
|
[ext_resource type="Shader" path="res://src/Shaders/TransparentChecker.gdshader" id="3_qv21g"]
|
|
|
|
[sub_resource type="ShaderMaterial" id="1"]
|
|
shader = ExtResource("3_qv21g")
|
|
shader_parameter/size = 10.0
|
|
shader_parameter/alpha = 1.0
|
|
shader_parameter/color1 = Color(0.7, 0.7, 0.7, 1)
|
|
shader_parameter/color2 = Color(1, 1, 1, 1)
|
|
shader_parameter/offset = Vector2(0, 0)
|
|
shader_parameter/scale = Vector2(0, 0)
|
|
shader_parameter/rect_size = Vector2(0, 0)
|
|
shader_parameter/follow_movement = false
|
|
shader_parameter/follow_scale = false
|
|
|
|
[node name="CelButton" type="Button"]
|
|
custom_minimum_size = Vector2(36, 36)
|
|
offset_right = 36.0
|
|
offset_bottom = 36.0
|
|
size_flags_horizontal = 0
|
|
size_flags_vertical = 0
|
|
focus_mode = 0
|
|
mouse_default_cursor_shape = 2
|
|
theme_type_variation = &"CelButton"
|
|
toggle_mode = true
|
|
button_mask = 7
|
|
script = ExtResource("1_iewgo")
|
|
|
|
[node name="Linked" type="ColorRect" parent="."]
|
|
visible = false
|
|
custom_minimum_size = Vector2(0, 16)
|
|
layout_mode = 1
|
|
anchors_preset = 14
|
|
anchor_top = 0.5
|
|
anchor_right = 1.0
|
|
anchor_bottom = 0.5
|
|
offset_left = 1.0
|
|
offset_top = -8.0
|
|
offset_right = -1.0
|
|
offset_bottom = 8.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
color = Color(0.4, 1, 0.4, 1)
|
|
|
|
[node name="CelTexture" type="TextureRect" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = 6.0
|
|
offset_top = 6.0
|
|
offset_right = -6.0
|
|
offset_bottom = -6.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
size_flags_horizontal = 0
|
|
size_flags_vertical = 0
|
|
expand_mode = 1
|
|
stretch_mode = 6
|
|
|
|
[node name="TransparentChecker" parent="CelTexture" instance=ExtResource("2_mi8wp")]
|
|
show_behind_parent = true
|
|
material = SubResource("1")
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="PopupMenu" type="PopupMenu" parent="."]
|
|
item_count = 4
|
|
item_0/text = "Properties"
|
|
item_0/id = 0
|
|
item_1/text = "Delete"
|
|
item_1/id = 1
|
|
item_2/text = "Link Cels to"
|
|
item_2/id = 2
|
|
item_3/text = "Unlink Cels"
|
|
item_3/id = 3
|
|
|
|
[connection signal="pressed" from="." to="." method="_on_CelButton_pressed"]
|
|
[connection signal="id_pressed" from="PopupMenu" to="." method="_on_PopupMenu_id_pressed"]
|