2020-08-01 21:59:00 +00:00
|
|
|
[gd_scene load_steps=8 format=2]
|
|
|
|
|
2020-08-18 13:21:31 +00:00
|
|
|
[ext_resource path="res://src/UI/Canvas/CanvasPreview.tscn" type="PackedScene" id=1]
|
2020-08-01 21:59:00 +00:00
|
|
|
[ext_resource path="res://src/UI/TransparentChecker.tscn" type="PackedScene" id=2]
|
|
|
|
[ext_resource path="res://src/UI/CanvasPreviewContainer.gd" type="Script" id=3]
|
2020-08-18 13:21:31 +00:00
|
|
|
[ext_resource path="res://src/UI/Canvas/CameraMovement.gd" type="Script" id=4]
|
2020-08-01 21:59:00 +00:00
|
|
|
[ext_resource path="res://src/Shaders/TransparentChecker.shader" type="Shader" id=5]
|
2021-06-03 19:42:08 +00:00
|
|
|
[ext_resource path="res://assets/graphics/timeline/play.png" type="Texture" id=7]
|
|
|
|
|
2020-08-01 21:59:00 +00:00
|
|
|
[sub_resource type="ShaderMaterial" id=1]
|
|
|
|
shader = ExtResource( 5 )
|
|
|
|
shader_param/size = 10.0
|
2021-08-16 23:56:19 +00:00
|
|
|
shader_param/alpha = 1.0
|
2020-08-01 21:59:00 +00:00
|
|
|
shader_param/color1 = Color( 0.7, 0.7, 0.7, 1 )
|
|
|
|
shader_param/color2 = Color( 1, 1, 1, 1 )
|
2020-08-18 13:21:31 +00:00
|
|
|
shader_param/offset = Vector2( 0, 0 )
|
|
|
|
shader_param/scale = Vector2( 0, 0 )
|
|
|
|
shader_param/rect_size = Vector2( 0, 0 )
|
|
|
|
shader_param/follow_movement = false
|
|
|
|
shader_param/follow_scale = false
|
2020-08-01 21:59:00 +00:00
|
|
|
|
2020-09-14 21:01:21 +00:00
|
|
|
[node name="CanvasPreviewContainer" type="PanelContainer"]
|
2021-08-16 23:56:19 +00:00
|
|
|
margin_right = 328.0
|
|
|
|
margin_bottom = 174.0
|
|
|
|
rect_min_size = Vector2( 318, 0 )
|
2021-03-06 13:59:26 +00:00
|
|
|
size_flags_vertical = 0
|
2020-08-01 21:59:00 +00:00
|
|
|
script = ExtResource( 3 )
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
2020-09-14 21:01:21 +00:00
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
2020-08-01 21:59:00 +00:00
|
|
|
margin_left = 7.0
|
|
|
|
margin_top = 7.0
|
2021-08-16 23:56:19 +00:00
|
|
|
margin_right = 321.0
|
|
|
|
margin_bottom = 167.0
|
2020-08-01 21:59:00 +00:00
|
|
|
|
2020-09-14 21:01:21 +00:00
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer"]
|
2020-08-18 13:21:31 +00:00
|
|
|
margin_right = 20.0
|
2021-08-16 23:56:19 +00:00
|
|
|
margin_bottom = 160.0
|
2020-09-14 21:01:21 +00:00
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="HBoxContainer/VBoxContainer"]
|
|
|
|
margin_left = 6.0
|
|
|
|
margin_right = 14.0
|
2020-08-18 13:21:31 +00:00
|
|
|
margin_bottom = 14.0
|
2020-09-14 21:01:21 +00:00
|
|
|
size_flags_horizontal = 4
|
2020-08-18 13:21:31 +00:00
|
|
|
text = "+"
|
|
|
|
align = 1
|
|
|
|
|
2020-09-14 21:01:21 +00:00
|
|
|
[node name="PreviewZoomSlider" type="VSlider" parent="HBoxContainer/VBoxContainer"]
|
|
|
|
margin_left = 2.0
|
2020-08-18 13:21:31 +00:00
|
|
|
margin_top = 18.0
|
2020-09-14 21:01:21 +00:00
|
|
|
margin_right = 18.0
|
2021-08-16 23:56:19 +00:00
|
|
|
margin_bottom = 118.0
|
2020-08-01 21:59:00 +00:00
|
|
|
mouse_default_cursor_shape = 2
|
2020-09-14 21:01:21 +00:00
|
|
|
size_flags_horizontal = 4
|
2020-08-01 21:59:00 +00:00
|
|
|
size_flags_vertical = 3
|
|
|
|
step = 0.01
|
|
|
|
|
2020-09-14 21:01:21 +00:00
|
|
|
[node name="Label2" type="Label" parent="HBoxContainer/VBoxContainer"]
|
|
|
|
margin_left = 7.0
|
2021-08-16 23:56:19 +00:00
|
|
|
margin_top = 122.0
|
2020-09-14 21:01:21 +00:00
|
|
|
margin_right = 12.0
|
2021-08-16 23:56:19 +00:00
|
|
|
margin_bottom = 136.0
|
2020-09-14 21:01:21 +00:00
|
|
|
size_flags_horizontal = 4
|
2020-08-18 13:21:31 +00:00
|
|
|
text = "-"
|
|
|
|
align = 1
|
|
|
|
|
2020-09-14 21:01:21 +00:00
|
|
|
[node name="PlayButton" type="Button" parent="HBoxContainer/VBoxContainer" groups=[
|
2020-08-01 21:59:00 +00:00
|
|
|
"UIButtons",
|
|
|
|
]]
|
2021-08-16 23:56:19 +00:00
|
|
|
margin_top = 140.0
|
2020-08-01 21:59:00 +00:00
|
|
|
margin_right = 20.0
|
2021-08-16 23:56:19 +00:00
|
|
|
margin_bottom = 160.0
|
2020-08-01 21:59:00 +00:00
|
|
|
rect_min_size = Vector2( 20, 0 )
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
toggle_mode = true
|
|
|
|
|
2020-09-14 21:01:21 +00:00
|
|
|
[node name="TextureRect" type="TextureRect" parent="HBoxContainer/VBoxContainer/PlayButton"]
|
2020-08-01 21:59:00 +00:00
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
margin_left = -3.5
|
|
|
|
margin_top = -6.0
|
|
|
|
margin_right = 3.5
|
|
|
|
margin_bottom = 6.0
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
texture = ExtResource( 7 )
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
2020-09-14 21:01:21 +00:00
|
|
|
[node name="PreviewViewportContainer" type="ViewportContainer" parent="HBoxContainer"]
|
|
|
|
margin_left = 24.0
|
2021-08-16 23:56:19 +00:00
|
|
|
margin_right = 314.0
|
|
|
|
margin_bottom = 160.0
|
|
|
|
rect_min_size = Vector2( 290, 160 )
|
2020-08-01 21:59:00 +00:00
|
|
|
|
2020-09-14 21:01:21 +00:00
|
|
|
[node name="Viewport" type="Viewport" parent="HBoxContainer/PreviewViewportContainer"]
|
2021-08-16 23:56:19 +00:00
|
|
|
size = Vector2( 290, 160 )
|
2020-08-01 21:59:00 +00:00
|
|
|
transparent_bg = true
|
|
|
|
handle_input_locally = false
|
|
|
|
render_target_update_mode = 3
|
|
|
|
|
2020-09-14 21:01:21 +00:00
|
|
|
[node name="TransparentChecker" parent="HBoxContainer/PreviewViewportContainer/Viewport" instance=ExtResource( 2 )]
|
2020-08-01 21:59:00 +00:00
|
|
|
material = SubResource( 1 )
|
|
|
|
|
2020-09-14 21:01:21 +00:00
|
|
|
[node name="CanvasPreview" parent="HBoxContainer/PreviewViewportContainer/Viewport" instance=ExtResource( 1 )]
|
2020-08-01 21:59:00 +00:00
|
|
|
|
2020-09-14 21:01:21 +00:00
|
|
|
[node name="CameraPreview" type="Camera2D" parent="HBoxContainer/PreviewViewportContainer/Viewport"]
|
2020-08-01 21:59:00 +00:00
|
|
|
offset = Vector2( 32, 32 )
|
|
|
|
current = true
|
|
|
|
zoom = Vector2( 0.15, 0.15 )
|
|
|
|
script = ExtResource( 4 )
|
2021-08-16 23:56:19 +00:00
|
|
|
|
2020-09-23 17:30:33 +00:00
|
|
|
[connection signal="value_changed" from="HBoxContainer/VBoxContainer/PreviewZoomSlider" to="." method="_on_PreviewZoomSlider_value_changed"]
|
|
|
|
[connection signal="toggled" from="HBoxContainer/VBoxContainer/PlayButton" to="." method="_on_PlayButton_toggled"]
|