2020-05-03 00:13:08 +00:00
|
|
|
[gd_scene load_steps=5 format=2]
|
2019-08-18 09:28:38 +00:00
|
|
|
|
2020-05-01 22:19:01 +00:00
|
|
|
[ext_resource path="res://src/UI/Timeline/LayerButton.gd" type="Script" id=1]
|
2020-05-05 00:53:58 +00:00
|
|
|
[ext_resource path="res://assets/graphics/dark_themes/layers/layer_visible.png" type="Texture" id=2]
|
|
|
|
[ext_resource path="res://assets/graphics/dark_themes/layers/unlock.png" type="Texture" id=3]
|
|
|
|
[ext_resource path="res://assets/graphics/dark_themes/layers/unlinked_layer.png" type="Texture" id=4]
|
|
|
|
|
2019-11-06 16:39:23 +00:00
|
|
|
[node name="LayerContainer" type="Button"]
|
2020-01-18 19:06:47 +00:00
|
|
|
margin_right = 210.0
|
|
|
|
margin_bottom = 36.0
|
|
|
|
rect_min_size = Vector2( 212, 36 )
|
2020-03-08 19:57:22 +00:00
|
|
|
size_flags_horizontal = 0
|
2019-11-06 16:39:23 +00:00
|
|
|
toggle_mode = true
|
2020-03-09 15:17:20 +00:00
|
|
|
action_mode = 0
|
2020-05-01 22:19:01 +00:00
|
|
|
script = ExtResource( 1 )
|
2019-12-05 23:48:29 +00:00
|
|
|
__meta__ = {
|
2020-03-08 19:57:22 +00:00
|
|
|
"_edit_horizontal_guides_": [ ],
|
|
|
|
"_edit_use_anchors_": false
|
2019-12-05 23:48:29 +00:00
|
|
|
}
|
2019-08-18 09:28:38 +00:00
|
|
|
|
2019-12-08 01:12:34 +00:00
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
2020-01-18 19:06:47 +00:00
|
|
|
anchor_right = 1.0
|
2020-03-08 19:57:22 +00:00
|
|
|
anchor_bottom = 1.0
|
|
|
|
size_flags_horizontal = 0
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="LayerButtons" type="HBoxContainer" parent="HBoxContainer"]
|
2020-03-12 22:13:52 +00:00
|
|
|
margin_right = 104.0
|
2020-03-08 19:57:22 +00:00
|
|
|
margin_bottom = 36.0
|
2019-12-08 01:12:34 +00:00
|
|
|
|
2020-05-03 00:13:08 +00:00
|
|
|
[node name="VisibilityButton" type="Button" parent="HBoxContainer/LayerButtons" groups=[
|
2020-01-18 19:06:47 +00:00
|
|
|
"UIButtons",
|
|
|
|
]]
|
2020-03-08 19:57:22 +00:00
|
|
|
margin_top = 2.0
|
|
|
|
margin_right = 32.0
|
|
|
|
margin_bottom = 34.0
|
2020-05-03 00:13:08 +00:00
|
|
|
rect_min_size = Vector2( 32, 32 )
|
2020-03-26 01:24:25 +00:00
|
|
|
hint_tooltip = "Toggle layer's visibility"
|
2020-04-19 02:03:40 +00:00
|
|
|
focus_mode = 0
|
2020-01-18 19:06:47 +00:00
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
size_flags_horizontal = 0
|
2019-12-05 23:48:29 +00:00
|
|
|
size_flags_vertical = 4
|
2019-08-18 09:28:38 +00:00
|
|
|
|
2020-05-03 00:13:08 +00:00
|
|
|
[node name="TextureRect" type="TextureRect" parent="HBoxContainer/LayerButtons/VisibilityButton"]
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
margin_left = -12.0
|
|
|
|
margin_top = -7.0
|
|
|
|
margin_right = 12.0
|
|
|
|
margin_bottom = 7.0
|
|
|
|
size_flags_horizontal = 0
|
|
|
|
size_flags_vertical = 0
|
|
|
|
texture = ExtResource( 2 )
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="LockButton" type="Button" parent="HBoxContainer/LayerButtons" groups=[
|
2020-03-09 01:26:13 +00:00
|
|
|
"UIButtons",
|
|
|
|
]]
|
2020-03-08 19:57:22 +00:00
|
|
|
margin_left = 36.0
|
2020-03-09 01:26:13 +00:00
|
|
|
margin_top = 2.0
|
|
|
|
margin_right = 68.0
|
|
|
|
margin_bottom = 34.0
|
2020-05-03 00:13:08 +00:00
|
|
|
rect_min_size = Vector2( 32, 32 )
|
2020-03-26 00:42:49 +00:00
|
|
|
hint_tooltip = "Lock/unlock layer"
|
2020-04-19 02:03:40 +00:00
|
|
|
focus_mode = 0
|
2020-03-09 01:26:13 +00:00
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
size_flags_horizontal = 0
|
|
|
|
size_flags_vertical = 4
|
|
|
|
|
2020-05-03 00:13:08 +00:00
|
|
|
[node name="TextureRect" type="TextureRect" parent="HBoxContainer/LayerButtons/LockButton"]
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
margin_left = -10.0
|
|
|
|
margin_top = -12.0
|
|
|
|
margin_right = 10.0
|
|
|
|
margin_bottom = 12.0
|
|
|
|
size_flags_horizontal = 0
|
|
|
|
size_flags_vertical = 0
|
|
|
|
texture = ExtResource( 3 )
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="LinkButton" type="Button" parent="HBoxContainer/LayerButtons" groups=[
|
2020-03-12 22:13:52 +00:00
|
|
|
"UIButtons",
|
|
|
|
]]
|
2020-03-09 01:26:13 +00:00
|
|
|
margin_left = 72.0
|
2020-03-12 22:13:52 +00:00
|
|
|
margin_top = 2.0
|
|
|
|
margin_right = 104.0
|
|
|
|
margin_bottom = 34.0
|
2020-05-03 00:13:08 +00:00
|
|
|
rect_min_size = Vector2( 32, 32 )
|
2020-03-26 00:42:49 +00:00
|
|
|
hint_tooltip = "Enable/disable cel linking
|
|
|
|
|
|
|
|
Linked cels are being shared across multiple frames"
|
2020-04-19 02:03:40 +00:00
|
|
|
focus_mode = 0
|
2020-03-12 22:13:52 +00:00
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
size_flags_horizontal = 0
|
|
|
|
size_flags_vertical = 4
|
2020-05-03 00:13:08 +00:00
|
|
|
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="HBoxContainer/LayerButtons/LinkButton"]
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
margin_left = -12.0
|
|
|
|
margin_top = -4.0
|
|
|
|
margin_right = 12.0
|
|
|
|
margin_bottom = 4.0
|
|
|
|
size_flags_horizontal = 0
|
|
|
|
size_flags_vertical = 0
|
|
|
|
texture = ExtResource( 4 )
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
2020-03-12 22:13:52 +00:00
|
|
|
|
|
|
|
[node name="LayerName" type="HBoxContainer" parent="HBoxContainer"]
|
|
|
|
margin_left = 108.0
|
2020-03-08 19:57:22 +00:00
|
|
|
margin_right = 212.0
|
|
|
|
margin_bottom = 36.0
|
2020-03-12 22:13:52 +00:00
|
|
|
rect_min_size = Vector2( 104, 0 )
|
2020-03-08 19:57:22 +00:00
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
size_flags_horizontal = 0
|
|
|
|
alignment = 1
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="HBoxContainer/LayerName"]
|
|
|
|
margin_top = 11.0
|
2020-03-12 22:13:52 +00:00
|
|
|
margin_right = 104.0
|
2020-03-08 19:57:22 +00:00
|
|
|
margin_bottom = 25.0
|
|
|
|
size_flags_horizontal = 3
|
2019-08-18 09:28:38 +00:00
|
|
|
text = "Layer 0"
|
|
|
|
align = 1
|
2020-03-08 19:57:22 +00:00
|
|
|
clip_text = true
|
2019-11-06 16:39:23 +00:00
|
|
|
|
2020-03-08 19:57:22 +00:00
|
|
|
[node name="LineEdit" type="LineEdit" parent="HBoxContainer/LayerName"]
|
2019-11-06 16:39:23 +00:00
|
|
|
visible = false
|
2019-12-08 01:12:34 +00:00
|
|
|
margin_left = 86.0
|
2019-12-05 23:48:29 +00:00
|
|
|
margin_top = 5.0
|
2019-12-08 01:12:34 +00:00
|
|
|
margin_right = 166.0
|
2019-12-05 23:48:29 +00:00
|
|
|
margin_bottom = 37.0
|
|
|
|
rect_min_size = Vector2( 80, 32 )
|
|
|
|
size_flags_vertical = 4
|
2019-11-06 16:39:23 +00:00
|
|
|
text = "Layer 0"
|
|
|
|
editable = false
|
|
|
|
caret_blink = true
|
|
|
|
caret_blink_speed = 0.5
|
|
|
|
[connection signal="pressed" from="." to="." method="_on_LayerContainer_pressed"]
|
2020-03-08 19:57:22 +00:00
|
|
|
[connection signal="pressed" from="HBoxContainer/LayerButtons/VisibilityButton" to="." method="_on_VisibilityButton_pressed"]
|
2020-03-09 01:26:13 +00:00
|
|
|
[connection signal="pressed" from="HBoxContainer/LayerButtons/LockButton" to="." method="_on_LockButton_pressed"]
|
2020-03-12 22:13:52 +00:00
|
|
|
[connection signal="pressed" from="HBoxContainer/LayerButtons/LinkButton" to="." method="_on_LinkButton_pressed"]
|
2020-03-09 15:17:20 +00:00
|
|
|
[connection signal="focus_exited" from="HBoxContainer/LayerName/LineEdit" to="." method="_on_LineEdit_focus_exited"]
|