mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-08 11:29:47 +00:00
146 lines
4.2 KiB
Plaintext
146 lines
4.2 KiB
Plaintext
[gd_scene load_steps=6 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"]
|
|
[ext_resource type="Script" path="res://src/UI/Nodes/ValueSlider.gd" id="4_wcpcc"]
|
|
|
|
[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
|
|
|
|
[node name="Properties" type="AcceptDialog" parent="."]
|
|
title = "Cel properties"
|
|
size = Vector2i(300, 111)
|
|
exclusive = false
|
|
popup_window = true
|
|
|
|
[node name="GridContainer" type="GridContainer" parent="Properties"]
|
|
offset_left = 8.0
|
|
offset_top = 8.0
|
|
offset_right = 292.0
|
|
offset_bottom = 66.0
|
|
columns = 2
|
|
|
|
[node name="OpacityLabel" type="Label" parent="Properties/GridContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = "Opacity:"
|
|
|
|
[node name="OpacitySlider" type="TextureProgressBar" parent="Properties/GridContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
focus_mode = 2
|
|
mouse_default_cursor_shape = 2
|
|
theme_type_variation = &"ValueSlider"
|
|
value = 100.0
|
|
nine_patch_stretch = true
|
|
stretch_margin_left = 3
|
|
stretch_margin_top = 3
|
|
stretch_margin_right = 3
|
|
stretch_margin_bottom = 3
|
|
script = ExtResource("4_wcpcc")
|
|
|
|
[node name="ZIndexLabel" type="Label" parent="Properties/GridContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = "Z-Index:"
|
|
|
|
[node name="ZIndexSlider" type="TextureProgressBar" parent="Properties/GridContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
focus_mode = 2
|
|
mouse_default_cursor_shape = 2
|
|
theme_type_variation = &"ValueSlider"
|
|
min_value = -64.0
|
|
max_value = 64.0
|
|
allow_greater = true
|
|
allow_lesser = true
|
|
nine_patch_stretch = true
|
|
stretch_margin_left = 3
|
|
stretch_margin_top = 3
|
|
stretch_margin_right = 3
|
|
stretch_margin_bottom = 3
|
|
script = ExtResource("4_wcpcc")
|
|
|
|
[connection signal="pressed" from="." to="." method="_on_CelButton_pressed"]
|
|
[connection signal="id_pressed" from="PopupMenu" to="." method="_on_PopupMenu_id_pressed"]
|
|
[connection signal="visibility_changed" from="Properties" to="." method="_on_properties_visibility_changed"]
|
|
[connection signal="value_changed" from="Properties/GridContainer/OpacitySlider" to="." method="_on_opacity_slider_value_changed"]
|
|
[connection signal="value_changed" from="Properties/GridContainer/ZIndexSlider" to="." method="_on_z_index_slider_value_changed"]
|