[gd_scene load_steps=14 format=2] [ext_resource path="res://assets/graphics/misc/horizontal_mirror_off.png" type="Texture" id=1] [ext_resource path="res://assets/graphics/misc/vertical_mirror_off.png" type="Texture" id=2] [ext_resource path="res://src/UI/GlobalToolOptions/GlobalToolOptions.gd" type="Script" id=3] [ext_resource path="res://assets/graphics/misc/pixel_perfect_off.png" type="Texture" id=4] [ext_resource path="res://src/UI/Nodes/ValueSlider.gd" type="Script" id=5] [ext_resource path="res://assets/graphics/misc/dynamics.png" type="Texture" id=6] [ext_resource path="res://assets/graphics/misc/uncheck.png" type="Texture" id=7] [ext_resource path="res://src/UI/Nodes/MaxMinEdit.tscn" type="PackedScene" id=8] [sub_resource type="ButtonGroup" id=1] [sub_resource type="ButtonGroup" id=2] [sub_resource type="Gradient" id=3] interpolation_mode = 1 offsets = PoolRealArray( 0, 0, 1 ) colors = PoolColorArray( 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1 ) [sub_resource type="GradientTexture" id=4] gradient = SubResource( 3 ) [sub_resource type="GradientTexture" id=5] gradient = SubResource( 3 ) [node name="Global Tool Options" type="PanelContainer"] margin_left = 1.0 margin_right = 195.0 margin_bottom = 50.0 rect_min_size = Vector2( 0, 36 ) script = ExtResource( 3 ) [node name="ScrollContainer" type="ScrollContainer" parent="."] margin_left = 7.0 margin_top = 7.0 margin_right = 187.0 margin_bottom = 43.0 rect_min_size = Vector2( 36, 36 ) [node name="CenterContainer" type="CenterContainer" parent="ScrollContainer"] margin_right = 180.0 margin_bottom = 36.0 size_flags_horizontal = 3 size_flags_vertical = 3 [node name="GridContainer" type="GridContainer" parent="ScrollContainer/CenterContainer"] margin_left = 20.0 margin_top = 2.0 margin_right = 160.0 margin_bottom = 34.0 size_flags_vertical = 0 columns = 4 [node name="Horizontal" type="Button" parent="ScrollContainer/CenterContainer/GridContainer" groups=["UIButtons"]] margin_right = 32.0 margin_bottom = 32.0 rect_min_size = Vector2( 32, 32 ) hint_tooltip = "Enable horizontal mirrored drawing" mouse_default_cursor_shape = 2 toggle_mode = true [node name="TextureRect" type="TextureRect" parent="ScrollContainer/CenterContainer/GridContainer/Horizontal"] anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 margin_left = -10.0 margin_top = -10.5 margin_right = 10.0 margin_bottom = 10.5 texture = ExtResource( 1 ) [node name="Vertical" type="Button" parent="ScrollContainer/CenterContainer/GridContainer" groups=["UIButtons"]] margin_left = 36.0 margin_right = 68.0 margin_bottom = 32.0 rect_min_size = Vector2( 32, 32 ) hint_tooltip = "Enable vertical mirrored drawing" mouse_default_cursor_shape = 2 toggle_mode = true [node name="TextureRect" type="TextureRect" parent="ScrollContainer/CenterContainer/GridContainer/Vertical"] anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 margin_left = -10.0 margin_top = -10.0 margin_right = 10.0 margin_bottom = 10.0 texture = ExtResource( 2 ) [node name="PixelPerfect" type="Button" parent="ScrollContainer/CenterContainer/GridContainer" groups=["UIButtons"]] margin_left = 72.0 margin_right = 104.0 margin_bottom = 32.0 rect_min_size = Vector2( 32, 32 ) hint_tooltip = "Pixel Perfect Makes lines smooth by removing the extra pixels on the edges" mouse_default_cursor_shape = 2 toggle_mode = true [node name="TextureRect" type="TextureRect" parent="ScrollContainer/CenterContainer/GridContainer/PixelPerfect"] anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 margin_left = -11.0 margin_top = -10.0 margin_right = 11.0 margin_bottom = 10.0 texture = ExtResource( 4 ) [node name="Dynamics" type="Button" parent="ScrollContainer/CenterContainer/GridContainer" groups=["UIButtons"]] unique_name_in_owner = true margin_left = 108.0 margin_right = 140.0 margin_bottom = 32.0 rect_min_size = Vector2( 32, 32 ) hint_tooltip = "Dynamics" mouse_default_cursor_shape = 2 __meta__ = { "_editor_description_": "" } [node name="TextureRect" type="TextureRect" parent="ScrollContainer/CenterContainer/GridContainer/Dynamics"] anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 margin_left = -11.0 margin_top = -10.0 margin_right = 11.0 margin_bottom = 10.0 texture = ExtResource( 6 ) [node name="DynamicsPanel" type="PopupPanel" parent="."] margin_left = 7.0 margin_top = 7.0 margin_right = 267.0 margin_bottom = 267.0 rect_min_size = Vector2( 260, 260 ) [node name="VBoxContainer" type="VBoxContainer" parent="DynamicsPanel"] margin_left = 4.0 margin_top = 4.0 margin_right = 256.0 margin_bottom = 256.0 [node name="DynamicsOptions" type="GridContainer" parent="DynamicsPanel/VBoxContainer"] margin_right = 252.0 margin_bottom = 68.0 columns = 3 [node name="Control" type="Control" parent="DynamicsPanel/VBoxContainer/DynamicsOptions"] margin_right = 82.0 margin_bottom = 20.0 rect_min_size = Vector2( 20, 20 ) size_flags_horizontal = 3 [node name="PressureLabel" type="Label" parent="DynamicsPanel/VBoxContainer/DynamicsOptions"] margin_left = 86.0 margin_top = 3.0 margin_right = 167.0 margin_bottom = 17.0 size_flags_horizontal = 3 text = "Pressure" align = 1 [node name="VelocityLabel" type="Label" parent="DynamicsPanel/VBoxContainer/DynamicsOptions"] margin_left = 171.0 margin_top = 3.0 margin_right = 252.0 margin_bottom = 17.0 size_flags_horizontal = 3 text = "Velocity" align = 1 [node name="AlphaLabel" type="Label" parent="DynamicsPanel/VBoxContainer/DynamicsOptions"] margin_top = 27.0 margin_right = 82.0 margin_bottom = 41.0 text = "Alpha" [node name="AlphaPressureButton" type="Button" parent="DynamicsPanel/VBoxContainer/DynamicsOptions" groups=["UIButtons"]] unique_name_in_owner = true margin_left = 86.0 margin_top = 24.0 margin_right = 167.0 margin_bottom = 44.0 mouse_default_cursor_shape = 2 toggle_mode = true group = SubResource( 1 ) icon_align = 1 expand_icon = true [node name="TextureRect" type="TextureRect" parent="DynamicsPanel/VBoxContainer/DynamicsOptions/AlphaPressureButton"] anchor_right = 1.0 anchor_bottom = 1.0 texture = ExtResource( 7 ) expand = true [node name="AlphaVelocityButton" type="Button" parent="DynamicsPanel/VBoxContainer/DynamicsOptions" groups=["UIButtons"]] unique_name_in_owner = true margin_left = 171.0 margin_top = 24.0 margin_right = 252.0 margin_bottom = 44.0 mouse_default_cursor_shape = 2 toggle_mode = true group = SubResource( 1 ) [node name="TextureRect" type="TextureRect" parent="DynamicsPanel/VBoxContainer/DynamicsOptions/AlphaVelocityButton"] anchor_right = 1.0 anchor_bottom = 1.0 texture = ExtResource( 7 ) expand = true [node name="SizeLabel" type="Label" parent="DynamicsPanel/VBoxContainer/DynamicsOptions"] margin_top = 51.0 margin_right = 82.0 margin_bottom = 65.0 text = "Size" [node name="SizePressureButton" type="Button" parent="DynamicsPanel/VBoxContainer/DynamicsOptions" groups=["UIButtons"]] unique_name_in_owner = true margin_left = 86.0 margin_top = 48.0 margin_right = 167.0 margin_bottom = 68.0 mouse_default_cursor_shape = 2 toggle_mode = true group = SubResource( 2 ) [node name="TextureRect" type="TextureRect" parent="DynamicsPanel/VBoxContainer/DynamicsOptions/SizePressureButton"] anchor_right = 1.0 anchor_bottom = 1.0 texture = ExtResource( 7 ) expand = true [node name="SizeVelocityButton" type="Button" parent="DynamicsPanel/VBoxContainer/DynamicsOptions" groups=["UIButtons"]] unique_name_in_owner = true margin_left = 171.0 margin_top = 48.0 margin_right = 252.0 margin_bottom = 68.0 mouse_default_cursor_shape = 2 toggle_mode = true group = SubResource( 2 ) [node name="TextureRect" type="TextureRect" parent="DynamicsPanel/VBoxContainer/DynamicsOptions/SizeVelocityButton"] anchor_right = 1.0 anchor_bottom = 1.0 texture = ExtResource( 7 ) expand = true [node name="LimitsHeader" type="HBoxContainer" parent="DynamicsPanel/VBoxContainer"] margin_top = 72.0 margin_right = 252.0 margin_bottom = 86.0 [node name="Label" type="Label" parent="DynamicsPanel/VBoxContainer/LimitsHeader"] margin_right = 76.0 margin_bottom = 14.0 theme_type_variation = "Header" text = "Value limits" [node name="HSeparator" type="HSeparator" parent="DynamicsPanel/VBoxContainer/LimitsHeader"] margin_left = 80.0 margin_right = 252.0 margin_bottom = 14.0 size_flags_horizontal = 3 [node name="LimitContainer" type="GridContainer" parent="DynamicsPanel/VBoxContainer"] margin_top = 90.0 margin_right = 252.0 margin_bottom = 122.0 columns = 3 [node name="AlphaLabel" type="Label" parent="DynamicsPanel/VBoxContainer/LimitContainer"] margin_right = 82.0 margin_bottom = 14.0 size_flags_horizontal = 3 text = "Alpha" [node name="AlphaMin" type="TextureProgress" parent="DynamicsPanel/VBoxContainer/LimitContainer"] margin_left = 86.0 margin_right = 167.0 margin_bottom = 14.0 mouse_default_cursor_shape = 2 size_flags_horizontal = 3 theme_type_variation = "ValueSlider" max_value = 1.0 step = 0.01 value = 0.1 nine_patch_stretch = true stretch_margin_left = 3 stretch_margin_top = 3 stretch_margin_right = 3 stretch_margin_bottom = 3 script = ExtResource( 5 ) prefix = "Start" snap_step = 0.1 [node name="AlphaMax" type="TextureProgress" parent="DynamicsPanel/VBoxContainer/LimitContainer"] margin_left = 171.0 margin_right = 252.0 margin_bottom = 14.0 mouse_default_cursor_shape = 2 size_flags_horizontal = 3 theme_type_variation = "ValueSlider" max_value = 1.0 step = 0.01 value = 1.0 nine_patch_stretch = true stretch_margin_left = 3 stretch_margin_top = 3 stretch_margin_right = 3 stretch_margin_bottom = 3 script = ExtResource( 5 ) prefix = "End" snap_step = 0.1 [node name="SizeLabel" type="Label" parent="DynamicsPanel/VBoxContainer/LimitContainer"] margin_top = 18.0 margin_right = 82.0 margin_bottom = 32.0 size_flags_horizontal = 3 text = "Size" [node name="SizeMin" type="TextureProgress" parent="DynamicsPanel/VBoxContainer/LimitContainer"] margin_left = 86.0 margin_top = 18.0 margin_right = 167.0 margin_bottom = 32.0 mouse_default_cursor_shape = 2 size_flags_horizontal = 3 theme_type_variation = "ValueSlider" max_value = 25.0 value = 1.0 allow_greater = true nine_patch_stretch = true stretch_margin_left = 3 stretch_margin_top = 3 stretch_margin_right = 3 stretch_margin_bottom = 3 script = ExtResource( 5 ) prefix = "Start" [node name="SizeMax" type="TextureProgress" parent="DynamicsPanel/VBoxContainer/LimitContainer"] margin_left = 171.0 margin_top = 18.0 margin_right = 252.0 margin_bottom = 32.0 mouse_default_cursor_shape = 2 size_flags_horizontal = 3 theme_type_variation = "ValueSlider" max_value = 25.0 value = 4.0 allow_greater = true nine_patch_stretch = true stretch_margin_left = 3 stretch_margin_top = 3 stretch_margin_right = 3 stretch_margin_bottom = 3 script = ExtResource( 5 ) prefix = "End" [node name="ThresholdsHeader" type="HBoxContainer" parent="DynamicsPanel/VBoxContainer"] margin_top = 126.0 margin_right = 252.0 margin_bottom = 140.0 [node name="Label" type="Label" parent="DynamicsPanel/VBoxContainer/ThresholdsHeader"] margin_right = 70.0 margin_bottom = 14.0 theme_type_variation = "Header" text = "Thresholds" [node name="HSeparator" type="HSeparator" parent="DynamicsPanel/VBoxContainer/ThresholdsHeader"] margin_left = 74.0 margin_right = 252.0 margin_bottom = 14.0 size_flags_horizontal = 3 [node name="ThresholdContainer" type="GridContainer" parent="DynamicsPanel/VBoxContainer"] margin_top = 144.0 margin_right = 252.0 margin_bottom = 208.0 columns = 2 [node name="ThresholdPressureLabel" type="Label" parent="DynamicsPanel/VBoxContainer/ThresholdContainer"] margin_top = 8.0 margin_right = 56.0 margin_bottom = 22.0 text = "Pressure" [node name="ThresholdPressure" parent="DynamicsPanel/VBoxContainer/ThresholdContainer" instance=ExtResource( 8 )] anchor_right = 0.0 anchor_bottom = 0.0 margin_left = 60.0 margin_right = 252.0 margin_bottom = 30.0 size_flags_horizontal = 3 start = 0.2 end = 0.8 [node name="TextureRect" parent="DynamicsPanel/VBoxContainer/ThresholdContainer/ThresholdPressure" index="0"] margin_right = 192.0 margin_bottom = 30.0 texture = SubResource( 4 ) [node name="PressurePreview" type="ProgressBar" parent="DynamicsPanel/VBoxContainer/ThresholdContainer/ThresholdPressure/TextureRect" index="0"] unique_name_in_owner = true modulate = Color( 1, 1, 1, 0.294118 ) anchor_right = 1.0 anchor_bottom = 1.0 max_value = 1.0 step = 0.001 value = 0.497 percent_visible = false [node name="ThresholdVelocityLabel" type="Label" parent="DynamicsPanel/VBoxContainer/ThresholdContainer"] margin_top = 42.0 margin_right = 56.0 margin_bottom = 56.0 text = "Velocity" [node name="ThresholdVelocity" parent="DynamicsPanel/VBoxContainer/ThresholdContainer" instance=ExtResource( 8 )] anchor_right = 0.0 anchor_bottom = 0.0 margin_left = 60.0 margin_top = 34.0 margin_right = 252.0 margin_bottom = 64.0 start = 0.2 end = 0.8 [node name="TextureRect" parent="DynamicsPanel/VBoxContainer/ThresholdContainer/ThresholdVelocity" index="0"] margin_right = 192.0 margin_bottom = 30.0 texture = SubResource( 5 ) [node name="VelocityPreview" type="ProgressBar" parent="DynamicsPanel/VBoxContainer/ThresholdContainer/ThresholdVelocity/TextureRect" index="0"] unique_name_in_owner = true modulate = Color( 1, 1, 1, 0.294118 ) anchor_right = 1.0 anchor_bottom = 1.0 max_value = 1.0 step = 0.001 percent_visible = false [connection signal="resized" from="." to="." method="_on_resized"] [connection signal="toggled" from="ScrollContainer/CenterContainer/GridContainer/Horizontal" to="." method="_on_Horizontal_toggled"] [connection signal="toggled" from="ScrollContainer/CenterContainer/GridContainer/Vertical" to="." method="_on_Vertical_toggled"] [connection signal="toggled" from="ScrollContainer/CenterContainer/GridContainer/PixelPerfect" to="." method="_on_PixelPerfect_toggled"] [connection signal="pressed" from="ScrollContainer/CenterContainer/GridContainer/Dynamics" to="." method="_on_Dynamics_pressed"] [connection signal="value_changed" from="DynamicsPanel/VBoxContainer/LimitContainer/AlphaMin" to="." method="_on_AlphaMin_value_changed"] [connection signal="value_changed" from="DynamicsPanel/VBoxContainer/LimitContainer/AlphaMax" to="." method="_on_AlphaMax_value_changed"] [connection signal="value_changed" from="DynamicsPanel/VBoxContainer/LimitContainer/SizeMin" to="." method="_on_SizeMin_value_changed"] [connection signal="value_changed" from="DynamicsPanel/VBoxContainer/LimitContainer/SizeMax" to="." method="_on_SizeMax_value_changed"] [connection signal="updated" from="DynamicsPanel/VBoxContainer/ThresholdContainer/ThresholdPressure" to="." method="_on_ThresholdPressure_updated"] [connection signal="updated" from="DynamicsPanel/VBoxContainer/ThresholdContainer/ThresholdVelocity" to="." method="_on_ThresholdVelocity_updated"] [editable path="DynamicsPanel/VBoxContainer/ThresholdContainer/ThresholdPressure"] [editable path="DynamicsPanel/VBoxContainer/ThresholdContainer/ThresholdVelocity"]