mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-04 23:10:08 +01:00
298 lines
9.7 KiB
Plaintext
298 lines
9.7 KiB
Plaintext
[gd_scene load_steps=4 format=3 uid="uid://1cywl1qtanq3"]
|
||
|
||
[ext_resource type="Script" path="res://main.gd" id="1"]
|
||
|
||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_vvbdh"]
|
||
draw_center = false
|
||
border_width_left = 4
|
||
border_width_top = 4
|
||
border_width_right = 4
|
||
border_width_bottom = 4
|
||
border_color = Color(0.501961, 1, 0.25098, 0.501961)
|
||
|
||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_dyby4"]
|
||
draw_center = false
|
||
border_width_left = 8
|
||
border_width_top = 8
|
||
border_width_right = 8
|
||
border_width_bottom = 8
|
||
border_color = Color(0.25, 0.38, 0.8, 0.5)
|
||
|
||
[node name="Main" type="Control"]
|
||
anchor_right = 1.0
|
||
anchor_bottom = 1.0
|
||
script = ExtResource( "1" )
|
||
|
||
[node name="OuterSideLabel" type="Label" parent="."]
|
||
modulate = Color(1, 1, 1, 0.627451)
|
||
offset_left = 8.0
|
||
offset_top = 8.0
|
||
offset_right = 165.0
|
||
offset_bottom = 60.0
|
||
text = "Outer Side Label
|
||
(ignores all margins)"
|
||
metadata/_edit_layout_mode = 1
|
||
metadata/_edit_use_custom_anchors = false
|
||
|
||
[node name="Panel" type="Panel" parent="."]
|
||
anchor_right = 1.0
|
||
anchor_bottom = 1.0
|
||
theme_override_styles/panel = SubResource( "StyleBoxFlat_vvbdh" )
|
||
|
||
[node name="InnerSideLabel" type="Label" parent="Panel"]
|
||
modulate = Color(0.666667, 1, 0.501961, 1)
|
||
anchor_top = 1.0
|
||
anchor_bottom = 1.0
|
||
offset_left = 8.0
|
||
offset_top = -60.0
|
||
offset_right = 246.0
|
||
offset_bottom = -8.0
|
||
grow_vertical = 0
|
||
text = "Inner Side Label
|
||
(ignores GUI Max Aspect Ratio)"
|
||
metadata/_edit_layout_mode = 1
|
||
metadata/_edit_use_custom_anchors = false
|
||
|
||
[node name="AspectRatioContainer" type="AspectRatioContainer" parent="Panel"]
|
||
anchor_right = 1.0
|
||
anchor_bottom = 1.0
|
||
|
||
[node name="Panel" type="Panel" parent="Panel/AspectRatioContainer"]
|
||
offset_left = 212.0
|
||
offset_right = 812.0
|
||
offset_bottom = 600.0
|
||
theme_override_styles/panel = SubResource( "StyleBoxFlat_dyby4" )
|
||
|
||
[node name="TopLeft" type="ColorRect" parent="Panel/AspectRatioContainer/Panel"]
|
||
color = Color(1, 1, 1, 0.25098)
|
||
|
||
[node name="TopRight" type="ColorRect" parent="Panel/AspectRatioContainer/Panel"]
|
||
anchor_left = 1.0
|
||
anchor_right = 1.0
|
||
color = Color(1, 1, 1, 0.25098)
|
||
|
||
[node name="BottomLeft" type="ColorRect" parent="Panel/AspectRatioContainer/Panel"]
|
||
anchor_top = 1.0
|
||
anchor_bottom = 1.0
|
||
color = Color(1, 1, 1, 0.25098)
|
||
|
||
[node name="BottomRight" type="ColorRect" parent="Panel/AspectRatioContainer/Panel"]
|
||
anchor_left = 1.0
|
||
anchor_top = 1.0
|
||
anchor_right = 1.0
|
||
anchor_bottom = 1.0
|
||
color = Color(1, 1, 1, 0.25098)
|
||
|
||
[node name="CenterContainer" type="CenterContainer" parent="Panel/AspectRatioContainer/Panel"]
|
||
anchor_right = 1.0
|
||
anchor_bottom = 1.0
|
||
|
||
[node name="Options" type="VBoxContainer" parent="Panel/AspectRatioContainer/Panel/CenterContainer"]
|
||
offset_left = 112.0
|
||
offset_top = 152.0
|
||
offset_right = 488.0
|
||
offset_bottom = 447.0
|
||
theme_override_constants/separation = 10
|
||
|
||
[node name="Title" type="Label" parent="Panel/AspectRatioContainer/Panel/CenterContainer/Options"]
|
||
minimum_size = Vector2(0, 45)
|
||
offset_right = 376.0
|
||
offset_bottom = 45.0
|
||
theme_override_colors/font_color = Color(1, 0.87, 0.62, 1)
|
||
theme_override_font_sizes/font_size = 24
|
||
text = "Options"
|
||
horizontal_alignment = 1
|
||
|
||
[node name="WindowBaseSize" type="HBoxContainer" parent="Panel/AspectRatioContainer/Panel/CenterContainer/Options"]
|
||
offset_top = 55.0
|
||
offset_right = 376.0
|
||
offset_bottom = 86.0
|
||
|
||
[node name="Label" type="Label" parent="Panel/AspectRatioContainer/Panel/CenterContainer/Options/WindowBaseSize"]
|
||
minimum_size = Vector2(190, 0)
|
||
offset_top = 2.0
|
||
offset_right = 190.0
|
||
offset_bottom = 28.0
|
||
text = "Window Base Size"
|
||
|
||
[node name="OptionButton" type="OptionButton" parent="Panel/AspectRatioContainer/Panel/CenterContainer/Options/WindowBaseSize"]
|
||
offset_left = 194.0
|
||
offset_right = 376.0
|
||
offset_bottom = 31.0
|
||
size_flags_horizontal = 3
|
||
item_count = 8
|
||
selected = 0
|
||
popup/item_0/text = "648×648 (1:1)"
|
||
popup/item_0/id = 0
|
||
popup/item_1/text = "640×480 (4:3)"
|
||
popup/item_1/id = 1
|
||
popup/item_2/text = "720×480 (3:2)"
|
||
popup/item_2/id = 2
|
||
popup/item_3/text = "800×600 (4:3)"
|
||
popup/item_3/id = 3
|
||
popup/item_4/text = "1152×648 (16:9)"
|
||
popup/item_4/id = 4
|
||
popup/item_5/text = "1280×720 (16:9)"
|
||
popup/item_5/id = 5
|
||
popup/item_6/text = "1280×800 (16:10)"
|
||
popup/item_6/id = 6
|
||
popup/item_7/text = "1680×720 (21:9)"
|
||
popup/item_7/id = 7
|
||
|
||
[node name="WindowStretchMode" type="HBoxContainer" parent="Panel/AspectRatioContainer/Panel/CenterContainer/Options"]
|
||
offset_top = 96.0
|
||
offset_right = 376.0
|
||
offset_bottom = 127.0
|
||
|
||
[node name="Label" type="Label" parent="Panel/AspectRatioContainer/Panel/CenterContainer/Options/WindowStretchMode"]
|
||
minimum_size = Vector2(190, 0)
|
||
offset_top = 2.0
|
||
offset_right = 190.0
|
||
offset_bottom = 28.0
|
||
text = "Window Stretch Mode"
|
||
|
||
[node name="OptionButton" type="OptionButton" parent="Panel/AspectRatioContainer/Panel/CenterContainer/Options/WindowStretchMode"]
|
||
offset_left = 194.0
|
||
offset_right = 376.0
|
||
offset_bottom = 31.0
|
||
size_flags_horizontal = 3
|
||
item_count = 3
|
||
selected = 1
|
||
popup/item_0/text = "Disabled"
|
||
popup/item_0/id = 0
|
||
popup/item_1/text = "Canvas Items (2D)"
|
||
popup/item_1/id = 1
|
||
popup/item_2/text = "Viewport"
|
||
popup/item_2/id = 2
|
||
|
||
[node name="WindowStretchAspect" type="HBoxContainer" parent="Panel/AspectRatioContainer/Panel/CenterContainer/Options"]
|
||
offset_top = 137.0
|
||
offset_right = 376.0
|
||
offset_bottom = 168.0
|
||
|
||
[node name="Label" type="Label" parent="Panel/AspectRatioContainer/Panel/CenterContainer/Options/WindowStretchAspect"]
|
||
minimum_size = Vector2(190, 0)
|
||
offset_top = 2.0
|
||
offset_right = 190.0
|
||
offset_bottom = 28.0
|
||
text = "Window Stretch Aspect"
|
||
|
||
[node name="OptionButton" type="OptionButton" parent="Panel/AspectRatioContainer/Panel/CenterContainer/Options/WindowStretchAspect"]
|
||
offset_left = 194.0
|
||
offset_right = 376.0
|
||
offset_bottom = 31.0
|
||
size_flags_horizontal = 3
|
||
item_count = 5
|
||
selected = 4
|
||
popup/item_0/text = "Ignore"
|
||
popup/item_0/id = 0
|
||
popup/item_1/text = "Keep"
|
||
popup/item_1/id = 1
|
||
popup/item_2/text = "Keep Width"
|
||
popup/item_2/id = 2
|
||
popup/item_3/text = "Keep Height"
|
||
popup/item_3/id = 3
|
||
popup/item_4/text = "Expand"
|
||
popup/item_4/id = 4
|
||
|
||
[node name="WindowScaleFactor" type="HBoxContainer" parent="Panel/AspectRatioContainer/Panel/CenterContainer/Options"]
|
||
offset_top = 178.0
|
||
offset_right = 376.0
|
||
offset_bottom = 204.0
|
||
|
||
[node name="Label" type="Label" parent="Panel/AspectRatioContainer/Panel/CenterContainer/Options/WindowScaleFactor"]
|
||
minimum_size = Vector2(190, 0)
|
||
offset_right = 190.0
|
||
offset_bottom = 26.0
|
||
text = "Window Scale Factor"
|
||
|
||
[node name="HSlider" type="HSlider" parent="Panel/AspectRatioContainer/Panel/CenterContainer/Options/WindowScaleFactor"]
|
||
offset_left = 194.0
|
||
offset_right = 330.0
|
||
offset_bottom = 16.0
|
||
size_flags_horizontal = 3
|
||
size_flags_stretch_ratio = 100.0
|
||
min_value = 0.75
|
||
max_value = 2.0
|
||
step = 0.01
|
||
value = 1.0
|
||
|
||
[node name="Value" type="Label" parent="Panel/AspectRatioContainer/Panel/CenterContainer/Options/WindowScaleFactor"]
|
||
offset_left = 334.0
|
||
offset_right = 376.0
|
||
offset_bottom = 26.0
|
||
size_flags_horizontal = 3
|
||
text = "100%"
|
||
|
||
[node name="HSeparator" type="HSeparator" parent="Panel/AspectRatioContainer/Panel/CenterContainer/Options"]
|
||
offset_top = 214.0
|
||
offset_right = 376.0
|
||
offset_bottom = 218.0
|
||
|
||
[node name="GUIMaxAspectRatio" type="HBoxContainer" parent="Panel/AspectRatioContainer/Panel/CenterContainer/Options"]
|
||
offset_top = 228.0
|
||
offset_right = 376.0
|
||
offset_bottom = 259.0
|
||
|
||
[node name="Label" type="Label" parent="Panel/AspectRatioContainer/Panel/CenterContainer/Options/GUIMaxAspectRatio"]
|
||
minimum_size = Vector2(190, 0)
|
||
offset_top = 2.0
|
||
offset_right = 190.0
|
||
offset_bottom = 28.0
|
||
text = "GUI Max Aspect Ratio"
|
||
|
||
[node name="OptionButton" type="OptionButton" parent="Panel/AspectRatioContainer/Panel/CenterContainer/Options/GUIMaxAspectRatio"]
|
||
offset_left = 194.0
|
||
offset_right = 376.0
|
||
offset_bottom = 31.0
|
||
size_flags_horizontal = 3
|
||
item_count = 7
|
||
selected = 0
|
||
popup/item_0/text = "Fit to Window"
|
||
popup/item_0/id = 0
|
||
popup/item_1/text = "5:4"
|
||
popup/item_1/id = 1
|
||
popup/item_2/text = "4:3"
|
||
popup/item_2/id = 2
|
||
popup/item_3/text = "3:2"
|
||
popup/item_3/id = 3
|
||
popup/item_4/text = "16:10"
|
||
popup/item_4/id = 4
|
||
popup/item_5/text = "16:9"
|
||
popup/item_5/id = 5
|
||
popup/item_6/text = "21:9"
|
||
popup/item_6/id = 6
|
||
|
||
[node name="GUIMargin" type="HBoxContainer" parent="Panel/AspectRatioContainer/Panel/CenterContainer/Options"]
|
||
offset_top = 269.0
|
||
offset_right = 376.0
|
||
offset_bottom = 295.0
|
||
|
||
[node name="Label" type="Label" parent="Panel/AspectRatioContainer/Panel/CenterContainer/Options/GUIMargin"]
|
||
minimum_size = Vector2(190, 0)
|
||
offset_right = 190.0
|
||
offset_bottom = 26.0
|
||
text = "GUI Margin"
|
||
|
||
[node name="HSlider" type="HSlider" parent="Panel/AspectRatioContainer/Panel/CenterContainer/Options/GUIMargin"]
|
||
offset_left = 194.0
|
||
offset_right = 362.0
|
||
offset_bottom = 16.0
|
||
size_flags_horizontal = 3
|
||
size_flags_stretch_ratio = 100.0
|
||
max_value = 50.0
|
||
|
||
[node name="Value" type="Label" parent="Panel/AspectRatioContainer/Panel/CenterContainer/Options/GUIMargin"]
|
||
offset_left = 366.0
|
||
offset_right = 376.0
|
||
offset_bottom = 26.0
|
||
size_flags_horizontal = 3
|
||
text = "0"
|
||
|
||
[connection signal="item_selected" from="Panel/AspectRatioContainer/Panel/CenterContainer/Options/WindowBaseSize/OptionButton" to="." method="_on_window_base_size_item_selected"]
|
||
[connection signal="item_selected" from="Panel/AspectRatioContainer/Panel/CenterContainer/Options/WindowStretchMode/OptionButton" to="." method="_on_window_stretch_mode_item_selected"]
|
||
[connection signal="item_selected" from="Panel/AspectRatioContainer/Panel/CenterContainer/Options/WindowStretchAspect/OptionButton" to="." method="_on_window_stretch_aspect_item_selected"]
|
||
[connection signal="drag_ended" from="Panel/AspectRatioContainer/Panel/CenterContainer/Options/WindowScaleFactor/HSlider" to="." method="_on_window_scale_factor_drag_ended"]
|
||
[connection signal="item_selected" from="Panel/AspectRatioContainer/Panel/CenterContainer/Options/GUIMaxAspectRatio/OptionButton" to="." method="_on_gui_aspect_ratio_item_selected"]
|
||
[connection signal="drag_ended" from="Panel/AspectRatioContainer/Panel/CenterContainer/Options/GUIMargin/HSlider" to="." method="_on_gui_margin_drag_ended"]
|