modular everything
This commit is contained in:
parent
e4bb42cf6a
commit
297b5e53b6
29 changed files with 660 additions and 1697 deletions
19
Scenes/GUI/Controls/CameraButton.tscn
Normal file
19
Scenes/GUI/Controls/CameraButton.tscn
Normal file
|
@ -0,0 +1,19 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://bt7bxdgv6u8ev"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dfoog0y2bh7tk" path="res://Scripts/CameraButton.gd" id="1_3y3s1"]
|
||||
|
||||
[node name="CameraButton" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
offset_right = 136.0
|
||||
offset_bottom = 32.0
|
||||
script = ExtResource("1_3y3s1")
|
||||
|
||||
[node name="Button" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 4.0
|
||||
offset_right = 132.0
|
||||
offset_bottom = 32.0
|
||||
text = "Angle"
|
||||
|
||||
[connection signal="pressed" from="Button" to="." method="_on_button_pressed"]
|
87
Scenes/GUI/Controls/FlowControl.tscn
Normal file
87
Scenes/GUI/Controls/FlowControl.tscn
Normal file
|
@ -0,0 +1,87 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://blg1c3v4o44of"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://blhv0kms1sleu" path="res://Scripts/FlowControl.gd" id="1_6sy3t"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_6sy3t"]
|
||||
border_width_left = 1
|
||||
border_color = Color(0.0941176, 0.0941176, 0.0941176, 1)
|
||||
|
||||
[node name="FlowControl" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
offset_right = 512.0
|
||||
offset_bottom = 40.0
|
||||
script = ExtResource("1_6sy3t")
|
||||
|
||||
[node name="Panel" type="Panel" parent="."]
|
||||
layout_mode = 0
|
||||
offset_right = 512.0
|
||||
offset_bottom = 40.0
|
||||
|
||||
[node name="Label" type="Label" parent="Panel"]
|
||||
layout_mode = 0
|
||||
offset_left = 4.0
|
||||
offset_top = 4.0
|
||||
offset_right = 167.0
|
||||
offset_bottom = 36.0
|
||||
text = "Movement"
|
||||
vertical_alignment = 1
|
||||
clip_text = true
|
||||
text_overrun_behavior = 3
|
||||
|
||||
[node name="InSlider" type="HSlider" parent="Panel"]
|
||||
layout_mode = 2
|
||||
offset_left = 171.0
|
||||
offset_top = 4.0
|
||||
offset_right = 235.0
|
||||
offset_bottom = 36.0
|
||||
size_flags_vertical = 1
|
||||
max_value = 5.0
|
||||
step = 0.1
|
||||
value = 1.0
|
||||
|
||||
[node name="InStepper" type="SpinBox" parent="Panel"]
|
||||
layout_mode = 0
|
||||
offset_left = 239.0
|
||||
offset_top = 4.0
|
||||
offset_right = 335.0
|
||||
offset_bottom = 36.0
|
||||
max_value = 5.0
|
||||
step = 0.1
|
||||
value = 1.0
|
||||
prefix = "In:"
|
||||
|
||||
[node name="OutSlider" type="HSlider" parent="Panel"]
|
||||
layout_mode = 2
|
||||
offset_left = 344.0
|
||||
offset_top = 4.0
|
||||
offset_right = 408.0
|
||||
offset_bottom = 36.0
|
||||
size_flags_vertical = 1
|
||||
max_value = 5.0
|
||||
step = 0.1
|
||||
value = 1.0
|
||||
|
||||
[node name="OutStepper" type="SpinBox" parent="Panel"]
|
||||
layout_mode = 0
|
||||
offset_left = 412.0
|
||||
offset_top = 4.0
|
||||
offset_right = 508.0
|
||||
offset_bottom = 36.0
|
||||
max_value = 5.0
|
||||
step = 0.1
|
||||
value = 1.0
|
||||
prefix = "Out:"
|
||||
|
||||
[node name="VSeparator" type="VSeparator" parent="Panel"]
|
||||
layout_mode = 0
|
||||
offset_left = 337.0
|
||||
offset_top = 4.0
|
||||
offset_right = 341.0
|
||||
offset_bottom = 36.0
|
||||
theme_override_styles/separator = SubResource("StyleBoxFlat_6sy3t")
|
||||
|
||||
[connection signal="value_changed" from="Panel/InSlider" to="." method="_on_in_slider_value_changed"]
|
||||
[connection signal="value_changed" from="Panel/InStepper" to="." method="_on_in_stepper_value_changed"]
|
||||
[connection signal="value_changed" from="Panel/OutSlider" to="." method="_on_out_slider_value_changed"]
|
||||
[connection signal="value_changed" from="Panel/OutStepper" to="." method="_on_out_stepper_value_changed"]
|
|
@ -1,42 +0,0 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://blg1c3v4o44of"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://blhv0kms1sleu" path="res://Scripts/FlowSlider.gd" id="1_q164o"]
|
||||
|
||||
[node name="FlowSlider" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_right = -1280.0
|
||||
offset_bottom = -720.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_q164o")
|
||||
|
||||
[node name="Panel" type="Panel" parent="."]
|
||||
layout_mode = 0
|
||||
offset_right = 96.0
|
||||
offset_bottom = 32.0
|
||||
|
||||
[node name="Slider" type="HSlider" parent="Panel"]
|
||||
layout_mode = 2
|
||||
offset_left = 4.0
|
||||
offset_right = 64.0
|
||||
offset_bottom = 32.0
|
||||
size_flags_vertical = 1
|
||||
max_value = 5.0
|
||||
step = 0.1
|
||||
value = 1.0
|
||||
|
||||
[node name="ValueLabel" type="Label" parent="Panel"]
|
||||
layout_mode = 2
|
||||
offset_left = 64.0
|
||||
offset_right = 96.0
|
||||
offset_bottom = 32.0
|
||||
size_flags_horizontal = 8
|
||||
size_flags_vertical = 1
|
||||
text = "1.0"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[connection signal="value_changed" from="Panel/Slider" to="." method="_on_slider_value_changed"]
|
|
@ -1,6 +1,6 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://cbf3x44mvo701"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cg157l4uo7ki8" path="res://Scripts/IndicatorLight.gd" id="1_l718a"]
|
||||
[ext_resource type="Script" uid="uid://cg157l4uo7ki8" path="res://Scripts/MovementButton.gd" id="1_l718a"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_1pi70"]
|
||||
bg_color = Color(0, 0, 0, 1)
|
||||
|
@ -16,23 +16,26 @@ corner_radius_top_right = 12
|
|||
corner_radius_bottom_right = 12
|
||||
corner_radius_bottom_left = 12
|
||||
|
||||
[node name="IndicatorLight" type="Control"]
|
||||
[node name="MovementButton" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_right = -1280.0
|
||||
offset_bottom = -720.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
anchors_preset = 0
|
||||
offset_right = 256.0
|
||||
offset_bottom = 40.0
|
||||
script = ExtResource("1_l718a")
|
||||
|
||||
[node name="Container" type="Panel" parent="."]
|
||||
[node name="Panel" type="Panel" parent="."]
|
||||
layout_mode = 0
|
||||
offset_right = 32.0
|
||||
offset_bottom = 32.0
|
||||
offset_right = 256.0
|
||||
offset_bottom = 40.0
|
||||
|
||||
[node name="Black" type="Panel" parent="."]
|
||||
[node name="IndicatorPanel" type="Panel" parent="Panel"]
|
||||
layout_mode = 0
|
||||
offset_left = 220.0
|
||||
offset_top = 4.0
|
||||
offset_right = 252.0
|
||||
offset_bottom = 36.0
|
||||
|
||||
[node name="Black" type="Panel" parent="Panel/IndicatorPanel"]
|
||||
layout_mode = 0
|
||||
offset_left = 4.0
|
||||
offset_top = 4.0
|
||||
|
@ -40,10 +43,22 @@ offset_right = 28.0
|
|||
offset_bottom = 28.0
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_1pi70")
|
||||
|
||||
[node name="Green" type="Panel" parent="."]
|
||||
[node name="Green" type="Panel" parent="Panel/IndicatorPanel"]
|
||||
visible = false
|
||||
layout_mode = 0
|
||||
offset_left = 4.0
|
||||
offset_top = 4.0
|
||||
offset_right = 28.0
|
||||
offset_bottom = 28.0
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_5m0fm")
|
||||
|
||||
[node name="Button" type="Button" parent="Panel"]
|
||||
layout_mode = 0
|
||||
offset_left = 4.0
|
||||
offset_top = 4.0
|
||||
offset_right = 216.0
|
||||
offset_bottom = 36.0
|
||||
text = "Movement"
|
||||
|
||||
[connection signal="button_down" from="Panel/Button" to="." method="_on_button_button_down"]
|
||||
[connection signal="button_up" from="Panel/Button" to="." method="_on_button_button_up"]
|
|
@ -1,8 +1,9 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://dtkqaw5533rxy"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://dtkqaw5533rxy"]
|
||||
|
||||
[ext_resource type="StyleBox" uid="uid://d17amc25o63p1" path="res://UI/Themes/MovementsPanelOverride.tres" id="1_d1xev"]
|
||||
[ext_resource type="Script" uid="uid://tn3aaldu7mm2" path="res://Scripts/MovementRow.gd" id="1_rm5t0"]
|
||||
[ext_resource type="Texture2D" uid="uid://cn5xdrxdv622h" path="res://UI/SmallX.png" id="2_e7anl"]
|
||||
[ext_resource type="Texture2D" uid="uid://d007317123e27" path="res://UI/SmallLock.png" id="3_ldhn8"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_rm5t0"]
|
||||
bg_color = Color(0, 1, 0, 1)
|
||||
|
@ -36,6 +37,8 @@ offset_bottom = 36.0
|
|||
tooltip_text = "Click to bind a key to this movement"
|
||||
text = "0 - Name (Unbound)"
|
||||
alignment = 0
|
||||
text_overrun_behavior = 3
|
||||
clip_text = true
|
||||
|
||||
[node name="ClearButton" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
|
@ -46,6 +49,16 @@ offset_bottom = 20.0
|
|||
tooltip_text = "Clear this row"
|
||||
icon = ExtResource("2_e7anl")
|
||||
|
||||
[node name="LockButton" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 244.0
|
||||
offset_top = 20.0
|
||||
offset_right = 260.0
|
||||
offset_bottom = 36.0
|
||||
tooltip_text = "Prevent recording over"
|
||||
toggle_mode = true
|
||||
icon = ExtResource("3_ldhn8")
|
||||
|
||||
[node name="MovementsBG" type="Panel" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue