mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-13 17:23:08 +00:00
* Set dynamics dialog to correct size after something is made visible or hidden
* fixed aspects of brush buttons
* Fixed wrong stretch mode
* improved rotation brush UI
* Update PaintSelect.tscn
* formatting
* fix all stretch modes
* fix export expand mode
* Fix more Stretch modes
* Fixed Resize canvas transparent checker
* removed an addition
The change: 625fe4cdd1
is moved over to a new pr
* moved some changes to another pr
* Moved some more changes to another pr
119 lines
3.9 KiB
Plaintext
119 lines
3.9 KiB
Plaintext
[gd_scene load_steps=7 format=3 uid="uid://bbvvkrrjyxugo"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://yjhp0ssng2mp" path="res://src/UI/Nodes/ValueSlider.tscn" id="1"]
|
|
[ext_resource type="PackedScene" uid="uid://ctfgfelg0sho8" path="res://src/Tools/BaseTool.tscn" id="2"]
|
|
[ext_resource type="Script" path="res://src/Tools/DesignTools/Bucket.gd" id="3"]
|
|
[ext_resource type="Script" path="res://src/UI/Nodes/ValueSlider.gd" id="4_1pngp"]
|
|
|
|
[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")]
|
|
offset_right = 138.0
|
|
offset_bottom = 105.0
|
|
script = ExtResource("3")
|
|
|
|
[node name="FillArea" type="Label" parent="." index="2"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
mouse_default_cursor_shape = 2
|
|
text = "Fill area:"
|
|
|
|
[node name="FillAreaOptions" type="OptionButton" parent="." index="3"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
mouse_default_cursor_shape = 2
|
|
item_count = 3
|
|
selected = 0
|
|
popup/item_0/text = "Similar area"
|
|
popup/item_0/id = 0
|
|
popup/item_1/text = "Similar colors"
|
|
popup/item_1/id = 1
|
|
popup/item_2/text = "Whole selection"
|
|
popup/item_2/id = 2
|
|
|
|
[node name="ToleranceSlider" type="TextureProgressBar" parent="." index="4"]
|
|
custom_minimum_size = Vector2(32, 24)
|
|
layout_mode = 2
|
|
focus_mode = 2
|
|
mouse_default_cursor_shape = 2
|
|
theme_type_variation = &"ValueSlider"
|
|
max_value = 255.0
|
|
nine_patch_stretch = true
|
|
stretch_margin_left = 3
|
|
stretch_margin_top = 3
|
|
stretch_margin_right = 3
|
|
stretch_margin_bottom = 3
|
|
script = ExtResource("4_1pngp")
|
|
prefix = "Tolerance:"
|
|
|
|
[node name="FillWith" type="Label" parent="." index="5"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = "Fill with:"
|
|
|
|
[node name="FillWithOptions" type="OptionButton" parent="." index="6"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
mouse_default_cursor_shape = 2
|
|
item_count = 2
|
|
selected = 0
|
|
popup/item_0/text = "Selected color"
|
|
popup/item_0/id = 0
|
|
popup/item_1/text = "Pattern"
|
|
popup/item_1/id = 1
|
|
|
|
[node name="FillPattern" type="VBoxContainer" parent="." index="7"]
|
|
visible = false
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="Type" type="Button" parent="FillPattern" index="0"]
|
|
custom_minimum_size = Vector2(32, 32)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 0
|
|
tooltip_text = "Select a brush"
|
|
mouse_default_cursor_shape = 2
|
|
theme_override_styles/normal = SubResource("1")
|
|
theme_override_styles/hover = SubResource("1")
|
|
theme_override_styles/pressed = SubResource("1")
|
|
theme_override_styles/disabled = SubResource("2")
|
|
theme_override_styles/focus = SubResource("2")
|
|
|
|
[node name="Texture2D" type="TextureRect" parent="FillPattern/Type" index="0"]
|
|
layout_mode = 0
|
|
offset_right = 32.0
|
|
offset_bottom = 32.0
|
|
expand_mode = 1
|
|
stretch_mode = 5
|
|
|
|
[node name="OffsetX" parent="FillPattern" index="1" instance=ExtResource("1")]
|
|
layout_mode = 2
|
|
prefix = "Offset X:"
|
|
|
|
[node name="OffsetY" parent="FillPattern" index="2" instance=ExtResource("1")]
|
|
layout_mode = 2
|
|
prefix = "Offset Y:"
|
|
|
|
[connection signal="item_selected" from="FillAreaOptions" to="." method="_on_FillAreaOptions_item_selected"]
|
|
[connection signal="value_changed" from="ToleranceSlider" to="." method="_on_tolerance_slider_value_changed"]
|
|
[connection signal="item_selected" from="FillWithOptions" to="." method="_on_FillWithOptions_item_selected"]
|
|
[connection signal="pressed" from="FillPattern/Type" to="." method="_on_PatternType_pressed"]
|
|
[connection signal="value_changed" from="FillPattern/OffsetX" to="." method="_on_PatternOffsetX_value_changed"]
|
|
[connection signal="value_changed" from="FillPattern/OffsetY" to="." method="_on_PatternOffsetY_value_changed"]
|