[gd_scene load_steps=6 format=2] [ext_resource path="res://src/UI/Nodes/ValueSlider.tscn" type="PackedScene" id=1] [ext_resource path="res://src/Tools/BaseTool.tscn" type="PackedScene" id=2] [ext_resource path="res://src/Tools/Draw.gd" type="Script" id=3] [sub_resource type="StyleBoxFlat" id=1] bg_color = Color( 1, 1, 1, 1 ) border_color = Color( 1, 1, 1, 1 ) corner_radius_top_left = 5 corner_radius_top_right = 5 corner_radius_bottom_right = 5 corner_radius_bottom_left = 5 anti_aliasing = false [sub_resource type="StyleBoxFlat" id=2] bg_color = Color( 1, 1, 1, 1 ) border_color = Color( 1, 1, 1, 1 ) corner_radius_top_left = 5 corner_radius_top_right = 5 corner_radius_bottom_right = 5 corner_radius_bottom_left = 5 anti_aliasing = false [node name="ToolOptions" instance=ExtResource( 2 )] script = ExtResource( 3 ) [node name="Brush" type="HBoxContainer" parent="." index="2"] margin_top = 26.0 margin_right = 116.0 margin_bottom = 58.0 alignment = 1 [node name="Type" type="Button" parent="Brush" index="0"] margin_right = 32.0 margin_bottom = 32.0 rect_min_size = Vector2( 32, 32 ) hint_tooltip = "Select a brush" mouse_default_cursor_shape = 2 size_flags_horizontal = 0 custom_styles/hover = SubResource( 1 ) custom_styles/pressed = SubResource( 1 ) custom_styles/focus = SubResource( 2 ) custom_styles/disabled = SubResource( 2 ) custom_styles/normal = SubResource( 1 ) [node name="Texture" type="TextureRect" parent="Brush/Type" index="0"] margin_right = 32.0 margin_bottom = 32.0 expand = true stretch_mode = 6 [node name="BrushSize" parent="Brush" index="1" instance=ExtResource( 1 )] margin_left = 36.0 margin_right = 116.0 margin_bottom = 32.0 min_value = 1.0 max_value = 25.0 value = 1.0 allow_greater = true prefix = "Size:" suffix = "px" [node name="ColorInterpolation" parent="." index="3" instance=ExtResource( 1 )] visible = false margin_top = 62.0 margin_right = 116.0 margin_bottom = 86.0 hint_tooltip = "0: Color from the brush itself, 100: the currently selected color" prefix = "Brush color from:" [connection signal="pressed" from="Brush/Type" to="." method="_on_BrushType_pressed"] [connection signal="value_changed" from="Brush/BrushSize" to="." method="_on_BrushSize_value_changed"] [connection signal="value_changed" from="ColorInterpolation" to="." method="_on_InterpolateFactor_value_changed"]