[gd_scene load_steps=4 format=3 uid="uid://rbyd7i6snxjc"] [ext_resource type="PackedScene" uid="uid://ubyatap3sylf" path="res://src/Tools/Draw.tscn" id="1"] [ext_resource type="Script" path="res://src/Tools/Shading.gd" id="2"] [ext_resource type="PackedScene" path="res://src/UI/Nodes/ValueSlider.tscn" id="3"] [node name="ToolOptions" instance=ExtResource("1")] script = ExtResource("2") [node name="LightenDarken" type="OptionButton" parent="." index="4"] custom_minimum_size = Vector2(92, 0) layout_mode = 2 mouse_default_cursor_shape = 2 item_count = 2 selected = 0 popup/item_0/text = "Lighten" popup/item_0/id = 0 popup/item_1/text = "Darken" popup/item_1/id = 1 [node name="ShadingMode" type="OptionButton" parent="." index="5"] layout_mode = 2 mouse_default_cursor_shape = 2 item_count = 2 selected = 0 popup/item_0/text = "Simple Shading" popup/item_0/id = 0 popup/item_1/text = "Hue Shifting" popup/item_1/id = 1 [node name="AmountSlider" parent="." index="6" instance=ExtResource("3")] layout_mode = 2 tooltip_text = "Lighten/Darken amount" focus_mode = 2 theme_type_variation = &"ValueSlider" value = 10.0 prefix = "Amount:" [node name="HueShiftingOptions" type="VBoxContainer" parent="." index="7"] visible = false layout_mode = 2 [node name="HueSlider" parent="HueShiftingOptions" index="0" instance=ExtResource("3")] layout_mode = 2 focus_mode = 2 theme_type_variation = &"ValueSlider" max_value = 180.0 value = 10.0 prefix = "Hue:" [node name="SatSlider" parent="HueShiftingOptions" index="1" instance=ExtResource("3")] layout_mode = 2 focus_mode = 2 theme_type_variation = &"ValueSlider" value = 10.0 prefix = "Saturation:" [node name="ValueSlider" parent="HueShiftingOptions" index="2" instance=ExtResource("3")] layout_mode = 2 focus_mode = 2 theme_type_variation = &"ValueSlider" value = 10.0 prefix = "Value:" [connection signal="item_selected" from="LightenDarken" to="." method="_on_LightenDarken_item_selected"] [connection signal="item_selected" from="ShadingMode" to="." method="_on_ShadingMode_item_selected"] [connection signal="value_changed" from="AmountSlider" to="." method="_on_LightenDarken_value_changed"] [connection signal="value_changed" from="HueShiftingOptions/HueSlider" to="." method="_on_LightenDarken_hue_value_changed"] [connection signal="value_changed" from="HueShiftingOptions/SatSlider" to="." method="_on_LightenDarken_sat_value_changed"] [connection signal="value_changed" from="HueShiftingOptions/ValueSlider" to="." method="_on_LightenDarken_value_value_changed"]