Add phantom camera
This commit is contained in:
11
addons/phantom_camera/panel/editor.gd
Normal file
11
addons/phantom_camera/panel/editor.gd
Normal file
@@ -0,0 +1,11 @@
|
||||
@tool
|
||||
extends VBoxContainer
|
||||
|
||||
var editor_plugin: EditorPlugin
|
||||
|
||||
@onready var updater: Control = %UpdateButton
|
||||
@onready var viewfinder: Control = %ViewfinderPanel
|
||||
|
||||
|
||||
func _ready():
|
||||
updater.editor_plugin = editor_plugin
|
23
addons/phantom_camera/panel/editor.tscn
Normal file
23
addons/phantom_camera/panel/editor.tscn
Normal file
@@ -0,0 +1,23 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://cfdoaceoosi1w"]
|
||||
|
||||
[ext_resource type="Script" path="res://addons/phantom_camera/panel/editor.gd" id="1_86hp7"]
|
||||
[ext_resource type="PackedScene" uid="uid://cuqkqsp3ikv5u" path="res://addons/phantom_camera/panel/updater/update_button.tscn" id="1_oowcd"]
|
||||
[ext_resource type="PackedScene" uid="uid://dbkr3d716wtx0" path="res://addons/phantom_camera/panel/viewfinder/viewfinder_panel.tscn" id="2_xecnk"]
|
||||
|
||||
[node name="EditorPanel" type="VBoxContainer"]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_86hp7")
|
||||
|
||||
[node name="UpdateButton" parent="." instance=ExtResource("1_oowcd")]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 8
|
||||
size_flags_vertical = 1
|
||||
|
||||
[node name="ViewfinderPanel" parent="." instance=ExtResource("2_xecnk")]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
253
addons/phantom_camera/panel/updater/download_update_panel.tscn
Normal file
253
addons/phantom_camera/panel/updater/download_update_panel.tscn
Normal file
@@ -0,0 +1,253 @@
|
||||
[gd_scene load_steps=15 format=3 uid="uid://b25fl4usw0nlp"]
|
||||
|
||||
[ext_resource type="Script" path="res://addons/phantom_camera/scripts/panel/updater/download_update_panel.gd" id="1_sx5xq"]
|
||||
[ext_resource type="Texture2D" uid="uid://cc0wmici0eic8" path="res://addons/phantom_camera/icons/phantom_camera_logo.png" id="2_f3yo7"]
|
||||
[ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="3_h8uk3"]
|
||||
[ext_resource type="FontFile" uid="uid://dve7mgsjik4dg" path="res://addons/phantom_camera/fonts/Nunito-Regular.ttf" id="4_gwh4i"]
|
||||
[ext_resource type="Texture2D" uid="uid://censw3w53gldn" path="res://addons/phantom_camera/assets/PhantomCameraBtnPrimaryDefault.png" id="5_bonti"]
|
||||
|
||||
[sub_resource type="ImageTexture" id="ImageTexture_sjwi2"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_insma"]
|
||||
bg_color = Color(0.0190018, 0.21903, 0.16997, 1)
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
border_color = Color(0.0980392, 0.572549, 0.458824, 1)
|
||||
border_blend = true
|
||||
corner_radius_bottom_right = 12
|
||||
corner_radius_bottom_left = 12
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_8m63d"]
|
||||
bg_color = Color(0.0784314, 0.109804, 0.129412, 1)
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
border_color = Color(0.105882, 0.619608, 0.498039, 1)
|
||||
corner_radius_bottom_right = 12
|
||||
corner_radius_bottom_left = 12
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_yn22d"]
|
||||
bg_color = Color(0.0117647, 0.164706, 0.12549, 1)
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
border_color = Color(0.0980392, 0.572549, 0.458824, 1)
|
||||
border_blend = true
|
||||
corner_radius_bottom_right = 12
|
||||
corner_radius_bottom_left = 12
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_djsbc"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_xtrn6"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_o12j0"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_buptb"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_g3tf0"]
|
||||
|
||||
[node name="DownloadUpdatePanel" type="Control"]
|
||||
custom_minimum_size = Vector2(300, 350)
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_bottom = -61.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_sx5xq")
|
||||
|
||||
[node name="DownloadHTTPRequest" type="HTTPRequest" parent="."]
|
||||
unique_name_in_owner = true
|
||||
|
||||
[node name="Timer" type="Timer" parent="DownloadHTTPRequest"]
|
||||
one_shot = true
|
||||
|
||||
[node name="VBox" type="VBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_constants/separation = 2
|
||||
|
||||
[node name="VBoxContainer2" type="VBoxContainer" parent="VBox"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = -20
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="VBox/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_top = 12
|
||||
|
||||
[node name="Logo" type="TextureRect" parent="VBox/VBoxContainer2/MarginContainer"]
|
||||
unique_name_in_owner = true
|
||||
clip_contents = true
|
||||
custom_minimum_size = Vector2(300, 160)
|
||||
layout_mode = 2
|
||||
texture = ExtResource("2_f3yo7")
|
||||
expand_mode = 3
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="VBox/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = -5
|
||||
|
||||
[node name="NameLabel" type="Label" parent="VBox/VBoxContainer2/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.960784, 0.960784, 0.960784, 1)
|
||||
theme_override_fonts/font = ExtResource("3_h8uk3")
|
||||
theme_override_font_sizes/font_size = 32
|
||||
text = "Phantom Camera"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="DownloadVersionLabel" type="Label" parent="VBox/VBoxContainer2/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.960784, 0.960784, 0.960784, 1)
|
||||
theme_override_fonts/font = ExtResource("4_gwh4i")
|
||||
theme_override_font_sizes/font_size = 18
|
||||
text = "v1.2.3 is available for download."
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="CurrentVersionLabel" type="Label" parent="VBox"]
|
||||
unique_name_in_owner = true
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("4_gwh4i")
|
||||
text = "Current version: 0.0.0"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Center2" type="CenterContainer" parent="VBox"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="NotesButton" type="LinkButton" parent="VBox/Center2"]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.917647, 0.631373, 0.368627, 1)
|
||||
theme_override_colors/font_hover_color = Color(0.721569, 0.454902, 0.192157, 1)
|
||||
theme_override_fonts/font = ExtResource("3_h8uk3")
|
||||
theme_override_font_sizes/font_size = 18
|
||||
text = "Release Notes"
|
||||
|
||||
[node name="Center" type="CenterContainer" parent="VBox"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="VBox/Center"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="BreakingLabel" type="Label" parent="VBox/Center/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.72549, 0.227451, 0.34902, 1)
|
||||
theme_override_fonts/font = ExtResource("3_h8uk3")
|
||||
theme_override_font_sizes/font_size = 18
|
||||
text = "Potential Breaking Changes
|
||||
in new release"
|
||||
horizontal_alignment = 1
|
||||
uppercase = true
|
||||
|
||||
[node name="BreakingMarginContainer" type="MarginContainer" parent="VBox/Center/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="VBox/Center/VBoxContainer/BreakingMarginContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="RichTextLabel2" type="RichTextLabel" parent="VBox/Center/VBoxContainer/BreakingMarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_fonts/normal_font = ExtResource("4_gwh4i")
|
||||
theme_override_fonts/bold_font = ExtResource("3_h8uk3")
|
||||
theme_override_fonts/mono_font = ExtResource("3_h8uk3")
|
||||
theme_override_font_sizes/normal_font_size = 18
|
||||
theme_override_font_sizes/bold_font_size = 14
|
||||
theme_override_font_sizes/mono_font_size = 12
|
||||
bbcode_enabled = true
|
||||
text = "[center][b]I am prepared for any breaking
|
||||
changes that may occur from this update[/b][/center]"
|
||||
fit_content = true
|
||||
|
||||
[node name="BreakingOptionButton" type="OptionButton" parent="VBox/Center/VBoxContainer/BreakingMarginContainer/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
mouse_default_cursor_shape = 2
|
||||
theme_override_fonts/font = ExtResource("3_h8uk3")
|
||||
theme_override_font_sizes/font_size = 18
|
||||
theme_override_icons/arrow = SubResource("ImageTexture_sjwi2")
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_insma")
|
||||
theme_override_styles/hover = SubResource("StyleBoxFlat_8m63d")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxFlat_yn22d")
|
||||
alignment = 1
|
||||
item_count = 2
|
||||
selected = 0
|
||||
popup/item_0/text = "Confirm choice"
|
||||
popup/item_0/id = 0
|
||||
popup/item_1/text = "Yes, I am prepared"
|
||||
popup/item_1/id = 1
|
||||
|
||||
[node name="DownloadButton" type="Button" parent="VBox/Center/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(240, 90)
|
||||
layout_mode = 2
|
||||
mouse_default_cursor_shape = 2
|
||||
theme_override_styles/normal = SubResource("StyleBoxEmpty_djsbc")
|
||||
theme_override_styles/hover = SubResource("StyleBoxEmpty_xtrn6")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxEmpty_o12j0")
|
||||
theme_override_styles/disabled = SubResource("StyleBoxEmpty_buptb")
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_g3tf0")
|
||||
|
||||
[node name="DownloadButtonBG" type="NinePatchRect" parent="VBox/Center/VBoxContainer/DownloadButton"]
|
||||
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
|
||||
texture = ExtResource("5_bonti")
|
||||
patch_margin_left = 38
|
||||
patch_margin_top = 37
|
||||
patch_margin_right = 38
|
||||
patch_margin_bottom = 39
|
||||
|
||||
[node name="UpdateLabel" type="Label" parent="VBox/Center/VBoxContainer/DownloadButton"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 1
|
||||
anchors_preset = 14
|
||||
anchor_top = 0.5
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 0.5
|
||||
offset_top = -14.5
|
||||
offset_bottom = 14.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_colors/font_color = Color(0.960784, 0.960784, 0.960784, 1)
|
||||
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
|
||||
theme_override_fonts/font = ExtResource("3_h8uk3")
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "Update"
|
||||
horizontal_alignment = 1
|
||||
uppercase = true
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="VBox"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_top = 10
|
||||
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="VBox/MarginContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_fonts/normal_font = ExtResource("4_gwh4i")
|
||||
theme_override_fonts/mono_font = ExtResource("3_h8uk3")
|
||||
theme_override_font_sizes/normal_font_size = 12
|
||||
theme_override_font_sizes/mono_font_size = 12
|
||||
bbcode_enabled = true
|
||||
text = "[center]The updater can be disabled within:
|
||||
[code]Project Settings / Phantom Camera / Updater / Enable Updater[/code][/center]"
|
||||
fit_content = true
|
||||
|
||||
[connection signal="pressed" from="VBox/Center2/NotesButton" to="." method="_on_notes_button_pressed"]
|
101
addons/phantom_camera/panel/updater/update_button.tscn
Normal file
101
addons/phantom_camera/panel/updater/update_button.tscn
Normal file
@@ -0,0 +1,101 @@
|
||||
[gd_scene load_steps=10 format=3 uid="uid://cuqkqsp3ikv5u"]
|
||||
|
||||
[ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="1_5e5k4"]
|
||||
[ext_resource type="Script" path="res://addons/phantom_camera/scripts/panel/updater/update_button.gd" id="1_xtaw5"]
|
||||
[ext_resource type="Texture2D" uid="uid://d4j4hrb7yusyq" path="res://addons/phantom_camera/icons/phantom_camera_updater_panel_icon.svg" id="2_c4d83"]
|
||||
[ext_resource type="PackedScene" uid="uid://b25fl4usw0nlp" path="res://addons/phantom_camera/panel/updater/download_update_panel.tscn" id="2_vtgcx"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_c7fd1"]
|
||||
content_margin_left = 10.0
|
||||
content_margin_top = 4.0
|
||||
content_margin_right = 10.0
|
||||
content_margin_bottom = 4.0
|
||||
bg_color = Color(0.0980392, 0.415686, 0.341176, 1)
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
border_color = Color(0.227451, 0.72549, 0.603922, 1)
|
||||
corner_radius_top_left = 20
|
||||
corner_radius_top_right = 20
|
||||
corner_radius_bottom_right = 20
|
||||
corner_radius_bottom_left = 20
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_y83dj"]
|
||||
content_margin_left = 10.0
|
||||
content_margin_top = 4.0
|
||||
content_margin_right = 10.0
|
||||
content_margin_bottom = 4.0
|
||||
bg_color = Color(0.0784314, 0.109804, 0.129412, 1)
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
border_color = Color(0.960784, 0.960784, 0.960784, 1)
|
||||
corner_radius_top_left = 20
|
||||
corner_radius_top_right = 20
|
||||
corner_radius_bottom_right = 20
|
||||
corner_radius_bottom_left = 20
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_slf6e"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_lekqh"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_dr4n4"]
|
||||
content_margin_bottom = 20.0
|
||||
bg_color = Color(0.0784314, 0.109804, 0.129412, 1)
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
border_color = Color(0.227451, 0.72549, 0.603922, 1)
|
||||
|
||||
[node name="UpdateButton" type="Button"]
|
||||
visible = false
|
||||
offset_left = 1.0
|
||||
offset_right = 149.0
|
||||
offset_bottom = 28.0
|
||||
size_flags_vertical = 3
|
||||
theme_override_colors/font_color = Color(0.960784, 0.960784, 0.960784, 1)
|
||||
theme_override_colors/font_hover_color = Color(0.939288, 0.917743, 0.892615, 1)
|
||||
theme_override_colors/icon_normal_color = Color(0.960784, 0.960784, 0.960784, 1)
|
||||
theme_override_fonts/font = ExtResource("1_5e5k4")
|
||||
theme_override_font_sizes/font_size = 14
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_c7fd1")
|
||||
theme_override_styles/hover = SubResource("StyleBoxFlat_y83dj")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxEmpty_slf6e")
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_lekqh")
|
||||
text = "Update available"
|
||||
icon = ExtResource("2_c4d83")
|
||||
script = ExtResource("1_xtaw5")
|
||||
|
||||
[node name="HTTPRequest" type="HTTPRequest" parent="."]
|
||||
unique_name_in_owner = true
|
||||
|
||||
[node name="DownloadDialog" type="AcceptDialog" parent="."]
|
||||
unique_name_in_owner = true
|
||||
transparent_bg = true
|
||||
title = "New Update"
|
||||
initial_position = 2
|
||||
size = Vector2i(450, 480)
|
||||
transient = false
|
||||
unresizable = true
|
||||
borderless = true
|
||||
keep_title_visible = false
|
||||
content_scale_mode = 1
|
||||
theme_override_constants/buttons_separation = 30
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_dr4n4")
|
||||
ok_button_text = "Close"
|
||||
|
||||
[node name="DownloadUpdatePanel" parent="DownloadDialog" instance=ExtResource("2_vtgcx")]
|
||||
unique_name_in_owner = true
|
||||
offset_left = 2.0
|
||||
offset_top = 2.0
|
||||
offset_right = -2.0
|
||||
offset_bottom = -80.0
|
||||
|
||||
[node name="NeedsReloadDialog" type="ConfirmationDialog" parent="."]
|
||||
unique_name_in_owner = true
|
||||
|
||||
[node name="UpdateFailedDialog" type="AcceptDialog" parent="."]
|
||||
unique_name_in_owner = true
|
@@ -0,0 +1,14 @@
|
||||
[gd_resource type="StyleBoxFlat" format=3 uid="uid://dpa7yvxlq043a"]
|
||||
|
||||
[resource]
|
||||
bg_color = Color(0.227451, 0.72549, 0.603922, 0.2)
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
border_color = Color(0.227451, 0.72549, 0.603922, 1)
|
||||
corner_detail = 1
|
||||
expand_margin_left = 1.0
|
||||
expand_margin_top = 1.0
|
||||
expand_margin_right = 1.0
|
||||
expand_margin_bottom = 1.0
|
464
addons/phantom_camera/panel/viewfinder/viewfinder_panel.tscn
Normal file
464
addons/phantom_camera/panel/viewfinder/viewfinder_panel.tscn
Normal file
@@ -0,0 +1,464 @@
|
||||
[gd_scene load_steps=22 format=3 uid="uid://dbkr3d716wtx0"]
|
||||
|
||||
[ext_resource type="Script" path="res://addons/phantom_camera/scripts/panel/viewfinder/viewfinder.gd" id="1_utvi8"]
|
||||
[ext_resource type="StyleBox" uid="uid://dpa7yvxlq043a" path="res://addons/phantom_camera/panel/viewfinder/deadzone_style_box.tres" id="2_uabt4"]
|
||||
[ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="3_li3i3"]
|
||||
[ext_resource type="Texture2D" uid="uid://5fatldiu7dd5" path="res://addons/phantom_camera/icons/phantom_camera_host.svg" id="4_lcg1p"]
|
||||
[ext_resource type="FontFile" uid="uid://dve7mgsjik4dg" path="res://addons/phantom_camera/fonts/Nunito-Regular.ttf" id="5_4jhax"]
|
||||
[ext_resource type="Texture2D" uid="uid://dy8eifa6aw2en" path="res://addons/phantom_camera/icons/misc/PriorityOverride.svg" id="6_ptuth"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_fle8t"]
|
||||
bg_color = Color(0.227451, 0.72549, 0.603922, 0.2)
|
||||
draw_center = false
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
border_color = Color(0.227451, 0.72549, 0.603922, 1)
|
||||
corner_detail = 1
|
||||
expand_margin_left = 1.0
|
||||
expand_margin_top = 1.0
|
||||
expand_margin_right = 1.0
|
||||
expand_margin_bottom = 1.0
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_xmo1t"]
|
||||
draw_center = false
|
||||
border_width_left = 1
|
||||
border_width_top = 1
|
||||
border_width_right = 1
|
||||
border_width_bottom = 1
|
||||
border_color = Color(0.745098, 0.858824, 0.380392, 1)
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_q7vs4"]
|
||||
bg_color = Color(0.929412, 0.87451, 0.619608, 1)
|
||||
border_width_left = 1
|
||||
border_width_top = 1
|
||||
border_width_right = 1
|
||||
border_width_bottom = 1
|
||||
border_color = Color(0, 0, 0, 1)
|
||||
corner_radius_top_left = 10
|
||||
corner_radius_top_right = 10
|
||||
corner_radius_bottom_right = 10
|
||||
corner_radius_bottom_left = 10
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_iho1a"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_obaj6"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_4b76l"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_yh38y"]
|
||||
content_margin_left = 10.0
|
||||
content_margin_top = 10.0
|
||||
content_margin_right = 10.0
|
||||
content_margin_bottom = 10.0
|
||||
bg_color = Color(0.129412, 0.407843, 0.337255, 1)
|
||||
border_width_left = 4
|
||||
border_width_top = 4
|
||||
border_width_right = 4
|
||||
border_width_bottom = 4
|
||||
border_color = Color(0.552941, 0.647059, 0.952941, 1)
|
||||
corner_radius_top_left = 10
|
||||
corner_radius_top_right = 10
|
||||
corner_radius_bottom_right = 10
|
||||
corner_radius_bottom_left = 10
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_gci88"]
|
||||
content_margin_left = 10.0
|
||||
content_margin_top = 10.0
|
||||
content_margin_right = 10.0
|
||||
content_margin_bottom = 10.0
|
||||
bg_color = Color(0.180392, 0.576471, 0.482353, 1)
|
||||
corner_radius_top_left = 10
|
||||
corner_radius_top_right = 10
|
||||
corner_radius_bottom_right = 10
|
||||
corner_radius_bottom_left = 10
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_fsxik"]
|
||||
content_margin_left = 10.0
|
||||
content_margin_top = 10.0
|
||||
content_margin_right = 10.0
|
||||
content_margin_bottom = 10.0
|
||||
bg_color = Color(0.129412, 0.407843, 0.337255, 1)
|
||||
border_width_left = 4
|
||||
border_width_top = 4
|
||||
border_width_right = 4
|
||||
border_width_bottom = 4
|
||||
border_color = Color(0.227451, 0.72549, 0.603922, 1)
|
||||
corner_radius_top_left = 10
|
||||
corner_radius_top_right = 10
|
||||
corner_radius_bottom_right = 10
|
||||
corner_radius_bottom_left = 10
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_g5wua"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_x4bx8"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_840sd"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ja3vm"]
|
||||
bg_color = Color(0.53, 0.1643, 0.255725, 1)
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
border_blend = true
|
||||
corner_radius_top_left = 10
|
||||
corner_radius_top_right = 10
|
||||
corner_radius_bottom_right = 10
|
||||
corner_radius_bottom_left = 10
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_mk273"]
|
||||
bg_color = Color(0.43, 0.1333, 0.207475, 1)
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
border_blend = true
|
||||
corner_radius_top_left = 10
|
||||
corner_radius_top_right = 10
|
||||
corner_radius_bottom_right = 10
|
||||
corner_radius_bottom_left = 10
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_agqdu"]
|
||||
bg_color = Color(0.72549, 0.227451, 0.34902, 1)
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
border_blend = true
|
||||
corner_radius_top_left = 10
|
||||
corner_radius_top_right = 10
|
||||
corner_radius_bottom_right = 10
|
||||
corner_radius_bottom_left = 10
|
||||
|
||||
[node name="ViewfinderPanel" type="Control"]
|
||||
clip_contents = true
|
||||
custom_minimum_size = Vector2(0, 300)
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
mouse_filter = 2
|
||||
script = ExtResource("1_utvi8")
|
||||
|
||||
[node name="FramedViewfinder" type="Control" parent="."]
|
||||
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
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="SubViewportContainer" type="SubViewportContainer" parent="FramedViewfinder"]
|
||||
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
|
||||
stretch = true
|
||||
|
||||
[node name="SubViewport" type="SubViewport" parent="FramedViewfinder/SubViewportContainer"]
|
||||
unique_name_in_owner = true
|
||||
handle_input_locally = false
|
||||
canvas_item_default_texture_filter = 0
|
||||
gui_disable_input = true
|
||||
size = Vector2i(1152, 648)
|
||||
size_2d_override_stretch = true
|
||||
render_target_update_mode = 4
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="FramedViewfinder/SubViewportContainer/SubViewport"]
|
||||
unique_name_in_owner = true
|
||||
editor_draw_screen = false
|
||||
|
||||
[node name="DeadZoneHBoxContainer" type="HBoxContainer" parent="FramedViewfinder"]
|
||||
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/separation = 0
|
||||
|
||||
[node name="DeadZoneLeftHBoxContainer" type="VBoxContainer" parent="FramedViewfinder/DeadZoneHBoxContainer"]
|
||||
clip_contents = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
mouse_filter = 2
|
||||
theme_override_constants/separation = 0
|
||||
|
||||
[node name="DeadZoneLeftTopPanel" type="Panel" parent="FramedViewfinder/DeadZoneHBoxContainer/DeadZoneLeftHBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
mouse_filter = 2
|
||||
theme_override_styles/panel = ExtResource("2_uabt4")
|
||||
|
||||
[node name="DeadZoneLeftCenterPanel" type="Panel" parent="FramedViewfinder/DeadZoneHBoxContainer/DeadZoneLeftHBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
mouse_filter = 2
|
||||
theme_override_styles/panel = ExtResource("2_uabt4")
|
||||
|
||||
[node name="DeadZoneLeftBottomPanel" type="Panel" parent="FramedViewfinder/DeadZoneHBoxContainer/DeadZoneLeftHBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
mouse_filter = 2
|
||||
theme_override_styles/panel = ExtResource("2_uabt4")
|
||||
|
||||
[node name="DeadZoneCenterHBoxContainer" type="VBoxContainer" parent="FramedViewfinder/DeadZoneHBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
clip_contents = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
mouse_filter = 2
|
||||
theme_override_constants/separation = 0
|
||||
|
||||
[node name="DeadZoneCenterTopPanel" type="Panel" parent="FramedViewfinder/DeadZoneHBoxContainer/DeadZoneCenterHBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
mouse_filter = 2
|
||||
theme_override_styles/panel = ExtResource("2_uabt4")
|
||||
|
||||
[node name="DeadZoneCenterCenterPanel" type="Panel" parent="FramedViewfinder/DeadZoneHBoxContainer/DeadZoneCenterHBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 4
|
||||
mouse_filter = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_fle8t")
|
||||
|
||||
[node name="DeadZoneCenterBottomPanel" type="Panel" parent="FramedViewfinder/DeadZoneHBoxContainer/DeadZoneCenterHBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
mouse_filter = 2
|
||||
theme_override_styles/panel = ExtResource("2_uabt4")
|
||||
|
||||
[node name="DeadZoneRightHBoxContainer" type="VBoxContainer" parent="FramedViewfinder/DeadZoneHBoxContainer"]
|
||||
clip_contents = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
mouse_filter = 2
|
||||
theme_override_constants/separation = 0
|
||||
|
||||
[node name="DeadZoneRightTopPanel" type="Panel" parent="FramedViewfinder/DeadZoneHBoxContainer/DeadZoneRightHBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
mouse_filter = 2
|
||||
theme_override_styles/panel = ExtResource("2_uabt4")
|
||||
|
||||
[node name="DeadZoneRightCenterPanel" type="Panel" parent="FramedViewfinder/DeadZoneHBoxContainer/DeadZoneRightHBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
mouse_filter = 2
|
||||
theme_override_styles/panel = ExtResource("2_uabt4")
|
||||
|
||||
[node name="DeadZoneRightBottomPanel" type="Panel" parent="FramedViewfinder/DeadZoneHBoxContainer/DeadZoneRightHBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
mouse_filter = 2
|
||||
theme_override_styles/panel = ExtResource("2_uabt4")
|
||||
|
||||
[node name="AspectRatioContainer" type="AspectRatioContainer" parent="FramedViewfinder"]
|
||||
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
|
||||
ratio = 1.77778
|
||||
|
||||
[node name="CameraViewportPanel" type="Panel" parent="FramedViewfinder/AspectRatioContainer"]
|
||||
layout_mode = 2
|
||||
mouse_filter = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_xmo1t")
|
||||
|
||||
[node name="TargetPoint" type="Panel" parent="FramedViewfinder/AspectRatioContainer/CameraViewportPanel"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -3.0
|
||||
offset_top = -3.0
|
||||
offset_right = 3.0
|
||||
offset_bottom = 3.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_q7vs4")
|
||||
|
||||
[node name="NoSupportMsg" type="Label" parent="."]
|
||||
unique_name_in_owner = true
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = -8.0
|
||||
offset_bottom = -8.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_fonts/font = ExtResource("3_li3i3")
|
||||
theme_override_font_sizes/font_size = 24
|
||||
theme_override_styles/normal = SubResource("StyleBoxEmpty_iho1a")
|
||||
text = "Control scenes are not supported"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="EmptyStateControl" type="Control" parent="."]
|
||||
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
|
||||
|
||||
[node name="BGColorRect" type="ColorRect" parent="EmptyStateControl"]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="EmptyStateControl"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -200.0
|
||||
offset_top = -112.0
|
||||
offset_right = 200.0
|
||||
offset_bottom = 112.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="EmptyStateIcon" type="TextureRect" parent="EmptyStateControl/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(0, 64)
|
||||
layout_mode = 2
|
||||
texture = ExtResource("4_lcg1p")
|
||||
expand_mode = 1
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="EmptyStateText" type="RichTextLabel" parent="EmptyStateControl/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
theme_override_colors/default_color = Color(1, 1, 1, 1)
|
||||
theme_override_fonts/normal_font = ExtResource("5_4jhax")
|
||||
theme_override_fonts/bold_font = ExtResource("3_li3i3")
|
||||
theme_override_font_sizes/normal_font_size = 24
|
||||
theme_override_font_sizes/bold_font_size = 24
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_obaj6")
|
||||
theme_override_styles/normal = SubResource("StyleBoxEmpty_iho1a")
|
||||
bbcode_enabled = true
|
||||
text = "[center][b]NodeType[/b] Description [/center]"
|
||||
fit_content = true
|
||||
|
||||
[node name="AddNodeButton" type="Button" parent="EmptyStateControl/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(400, 54)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
focus_mode = 0
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
||||
theme_override_fonts/font = ExtResource("3_li3i3")
|
||||
theme_override_font_sizes/font_size = 24
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_4b76l")
|
||||
theme_override_styles/hover = SubResource("StyleBoxFlat_yh38y")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxFlat_gci88")
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_fsxik")
|
||||
|
||||
[node name="AddNodeTypeText" type="RichTextLabel" parent="EmptyStateControl/VBoxContainer/AddNodeButton"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = 9.0
|
||||
offset_bottom = -11.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
theme_override_colors/default_color = Color(1, 1, 1, 1)
|
||||
theme_override_fonts/normal_font = ExtResource("5_4jhax")
|
||||
theme_override_fonts/bold_font = ExtResource("3_li3i3")
|
||||
theme_override_font_sizes/normal_font_size = 24
|
||||
theme_override_font_sizes/bold_font_size = 24
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_g5wua")
|
||||
theme_override_styles/normal = SubResource("StyleBoxEmpty_x4bx8")
|
||||
bbcode_enabled = true
|
||||
text = "[center]Add [img=32]res://addons/phantom_camera/icons/viewfinder/Camera3DIcon.svg[/img] [b]{NodeType}[/b][/center]"
|
||||
scroll_active = false
|
||||
|
||||
[node name="PriorityOverrideButton" type="Button" parent="."]
|
||||
unique_name_in_owner = true
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
offset_left = 5.0
|
||||
offset_top = 5.0
|
||||
offset_right = 165.0
|
||||
offset_bottom = 57.0
|
||||
mouse_default_cursor_shape = 2
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_840sd")
|
||||
theme_override_styles/hover = SubResource("StyleBoxFlat_ja3vm")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxFlat_mk273")
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_agqdu")
|
||||
|
||||
[node name="PriorityOverrideIcon" type="TextureRect" parent="PriorityOverrideButton"]
|
||||
layout_mode = 1
|
||||
offset_left = 8.0
|
||||
offset_top = 4.0
|
||||
offset_right = 32.0
|
||||
offset_bottom = 28.0
|
||||
texture = ExtResource("6_ptuth")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="PriorityOverrideByLabel" type="Label" parent="PriorityOverrideButton"]
|
||||
layout_mode = 0
|
||||
offset_left = 30.0
|
||||
offset_top = 1.0
|
||||
offset_right = 140.0
|
||||
offset_bottom = 24.0
|
||||
theme_override_fonts/font = ExtResource("3_li3i3")
|
||||
theme_override_font_sizes/font_size = 14
|
||||
text = "OVERRIDDEN BY"
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="PriorityOverrideNameLabel" type="Label" parent="PriorityOverrideButton"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 0
|
||||
offset_left = 6.0
|
||||
offset_top = 21.0
|
||||
offset_right = 153.0
|
||||
offset_bottom = 44.0
|
||||
theme_override_fonts/font = ExtResource("5_4jhax")
|
||||
theme_override_font_sizes/font_size = 14
|
||||
text = "PCam_Name
|
||||
"
|
||||
vertical_alignment = 1
|
||||
text_overrun_behavior = 3
|
Reference in New Issue
Block a user