201 lines
6.3 KiB
Plaintext
201 lines
6.3 KiB
Plaintext
[gd_scene load_steps=8 format=3 uid="uid://xybmfvufjuv"]
|
|
|
|
[ext_resource type="Script" path="res://addons/anthonyec.camera_preview/preview.gd" id="1_6b32r"]
|
|
[ext_resource type="Texture2D" uid="uid://do6d60od41vmg" path="res://addons/anthonyec.camera_preview/Pin.svg" id="2_p0pa8"]
|
|
[ext_resource type="Texture2D" uid="uid://btc01wc11tiid" path="res://addons/anthonyec.camera_preview/GuiResizerTopLeft.svg" id="2_t64ej"]
|
|
[ext_resource type="Texture2D" uid="uid://04l05jxuyt7k" path="res://addons/anthonyec.camera_preview/GuiResizerTopRight.svg" id="3_6yuab"]
|
|
|
|
[sub_resource type="ViewportTexture" id="ViewportTexture_hchdq"]
|
|
viewport_path = NodePath("Panel/SubViewport")
|
|
|
|
[sub_resource type="Gradient" id="Gradient_11p6r"]
|
|
offsets = PackedFloat32Array(0, 0.3, 0.6, 1)
|
|
colors = PackedColorArray(0, 0, 0, 0.235294, 0, 0, 0, 0.0784314, 0, 0, 0, 0.0784314, 0, 0, 0, 0.235294)
|
|
|
|
[sub_resource type="GradientTexture2D" id="GradientTexture2D_4dkve"]
|
|
gradient = SubResource("Gradient_11p6r")
|
|
width = 256
|
|
height = 256
|
|
fill_to = Vector2(2.08165e-12, 1)
|
|
|
|
[node name="Preview" type="Control"]
|
|
z_index = 999
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
script = ExtResource("1_6b32r")
|
|
|
|
[node name="Placeholder" type="Panel" parent="."]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
modulate = Color(1, 1, 1, 0.705882)
|
|
layout_mode = 1
|
|
anchors_preset = 3
|
|
anchor_left = 1.0
|
|
anchor_top = 1.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = -40.0
|
|
offset_top = -40.0
|
|
offset_right = 410.0
|
|
offset_bottom = 410.0
|
|
grow_horizontal = 0
|
|
grow_vertical = 0
|
|
|
|
[node name="Panel" type="Panel" parent="."]
|
|
unique_name_in_owner = true
|
|
clip_contents = true
|
|
layout_mode = 1
|
|
anchors_preset = 3
|
|
anchor_left = 1.0
|
|
anchor_top = 1.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = -520.0
|
|
offset_top = -908.889
|
|
offset_right = -20.0
|
|
offset_bottom = -20.0
|
|
grow_horizontal = 0
|
|
grow_vertical = 0
|
|
pivot_offset = Vector2(450, 300)
|
|
|
|
[node name="SubViewport" type="SubViewport" parent="Panel"]
|
|
unique_name_in_owner = true
|
|
handle_input_locally = false
|
|
gui_disable_input = true
|
|
size_2d_override_stretch = true
|
|
|
|
[node name="Camera3D" type="Camera3D" parent="Panel/SubViewport"]
|
|
unique_name_in_owner = true
|
|
current = true
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="Panel/SubViewport"]
|
|
unique_name_in_owner = true
|
|
ignore_rotation = false
|
|
|
|
[node name="ViewportMarginContainer" type="MarginContainer" parent="Panel"]
|
|
unique_name_in_owner = true
|
|
clip_contents = true
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 2
|
|
theme_override_constants/margin_left = 4
|
|
theme_override_constants/margin_top = 4
|
|
theme_override_constants/margin_right = 4
|
|
theme_override_constants/margin_bottom = 4
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="Panel/ViewportMarginContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
texture = SubResource("ViewportTexture_hchdq")
|
|
expand_mode = 1
|
|
|
|
[node name="Gradient" type="TextureRect" parent="Panel"]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 2
|
|
texture = SubResource("GradientTexture2D_4dkve")
|
|
|
|
[node name="OverlayMarginContainer" type="MarginContainer" parent="Panel"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 2
|
|
theme_override_constants/margin_left = 4
|
|
theme_override_constants/margin_top = 4
|
|
theme_override_constants/margin_right = 4
|
|
theme_override_constants/margin_bottom = 4
|
|
|
|
[node name="OverlayContainer" type="Control" parent="Panel/OverlayMarginContainer"]
|
|
unique_name_in_owner = true
|
|
clip_contents = true
|
|
layout_mode = 2
|
|
mouse_filter = 2
|
|
|
|
[node name="DragHandle" type="Button" parent="Panel/OverlayMarginContainer/OverlayContainer"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
focus_mode = 0
|
|
flat = true
|
|
|
|
[node name="ResizeLeftHandle" type="Button" parent="Panel/OverlayMarginContainer/OverlayContainer"]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
layout_mode = 1
|
|
offset_right = 60.0
|
|
offset_bottom = 60.0
|
|
size_flags_horizontal = 0
|
|
size_flags_vertical = 0
|
|
mouse_default_cursor_shape = 12
|
|
icon = ExtResource("2_t64ej")
|
|
flat = true
|
|
icon_alignment = 1
|
|
expand_icon = true
|
|
|
|
[node name="ResizeRightHandle" type="Button" parent="Panel/OverlayMarginContainer/OverlayContainer"]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
layout_mode = 1
|
|
anchors_preset = 1
|
|
anchor_left = 1.0
|
|
anchor_right = 1.0
|
|
offset_left = -60.0
|
|
offset_bottom = 60.0
|
|
pivot_offset = Vector2(60, 60)
|
|
size_flags_horizontal = 8
|
|
size_flags_vertical = 0
|
|
mouse_default_cursor_shape = 11
|
|
icon = ExtResource("3_6yuab")
|
|
flat = true
|
|
icon_alignment = 1
|
|
expand_icon = true
|
|
|
|
[node name="LockButton" type="Button" parent="Panel/OverlayMarginContainer/OverlayContainer"]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
layout_mode = 1
|
|
anchors_preset = 2
|
|
anchor_top = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_top = -60.0
|
|
offset_right = 60.0
|
|
pivot_offset = Vector2(0, 60)
|
|
size_flags_horizontal = 0
|
|
size_flags_vertical = 8
|
|
tooltip_text = "Always Show Preview"
|
|
toggle_mode = true
|
|
icon = ExtResource("2_p0pa8")
|
|
flat = true
|
|
icon_alignment = 1
|
|
expand_icon = true
|
|
|
|
[connection signal="button_down" from="Panel/OverlayMarginContainer/OverlayContainer/DragHandle" to="." method="_on_drag_handle_button_down"]
|
|
[connection signal="button_up" from="Panel/OverlayMarginContainer/OverlayContainer/DragHandle" to="." method="_on_drag_handle_button_up"]
|
|
[connection signal="renamed" from="Panel/OverlayMarginContainer/OverlayContainer/DragHandle" to="." method="_on_drag_handle_renamed"]
|
|
[connection signal="button_down" from="Panel/OverlayMarginContainer/OverlayContainer/ResizeLeftHandle" to="." method="_on_resize_handle_button_down"]
|
|
[connection signal="button_up" from="Panel/OverlayMarginContainer/OverlayContainer/ResizeLeftHandle" to="." method="_on_resize_handle_button_up"]
|
|
[connection signal="button_down" from="Panel/OverlayMarginContainer/OverlayContainer/ResizeRightHandle" to="." method="_on_resize_handle_button_down"]
|
|
[connection signal="button_up" from="Panel/OverlayMarginContainer/OverlayContainer/ResizeRightHandle" to="." method="_on_resize_handle_button_up"]
|
|
[connection signal="pressed" from="Panel/OverlayMarginContainer/OverlayContainer/LockButton" to="." method="_on_lock_button_pressed"]
|