2021-04-16 20:09:03 +02:00
|
|
|
[gd_scene load_steps=8 format=2]
|
|
|
|
|
|
|
|
[ext_resource path="res://src/Palette/EditPaletteDialog.tscn" type="PackedScene" id=1]
|
2021-06-03 22:42:08 +03:00
|
|
|
[ext_resource path="res://assets/graphics/palette/edit.png" type="Texture" id=2]
|
|
|
|
[ext_resource path="res://assets/graphics/palette/add.png" type="Texture" id=3]
|
2021-04-16 20:09:03 +02:00
|
|
|
[ext_resource path="res://src/Palette/CreatePaletteDialog.tscn" type="PackedScene" id=4]
|
|
|
|
[ext_resource path="res://src/Palette/PaletteGrid.gd" type="Script" id=5]
|
|
|
|
[ext_resource path="res://src/Palette/PaletteScroll.gd" type="Script" id=6]
|
|
|
|
[ext_resource path="res://src/Palette/PalettePanel.gd" type="Script" id=8]
|
|
|
|
|
|
|
|
[node name="PalettePanel" type="PanelContainer"]
|
2021-08-17 01:56:19 +02:00
|
|
|
size_flags_horizontal = 3
|
2022-10-04 12:47:31 +02:00
|
|
|
size_flags_vertical = 3
|
2021-04-16 20:09:03 +02:00
|
|
|
script = ExtResource( 8 )
|
|
|
|
|
|
|
|
[node name="PaletteVBoxContainer" type="VBoxContainer" parent="."]
|
|
|
|
margin_left = 7.0
|
|
|
|
margin_top = 7.0
|
2022-10-04 12:47:31 +02:00
|
|
|
margin_right = 159.0
|
|
|
|
margin_bottom = 93.0
|
2021-04-16 20:09:03 +02:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
|
|
|
|
[node name="PaletteButtons" type="HBoxContainer" parent="PaletteVBoxContainer"]
|
2022-10-04 12:47:31 +02:00
|
|
|
margin_right = 152.0
|
2022-03-21 16:24:03 +02:00
|
|
|
margin_bottom = 22.0
|
2021-04-16 20:09:03 +02:00
|
|
|
|
|
|
|
[node name="PaletteSelect" type="OptionButton" parent="PaletteVBoxContainer/PaletteButtons"]
|
2022-10-04 12:47:31 +02:00
|
|
|
unique_name_in_owner = true
|
|
|
|
margin_right = 100.0
|
2021-06-03 22:42:08 +03:00
|
|
|
margin_bottom = 22.0
|
2021-04-16 20:09:03 +02:00
|
|
|
grow_horizontal = 0
|
|
|
|
rect_min_size = Vector2( 100, 0 )
|
|
|
|
hint_tooltip = "Choose a palette"
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
clip_text = true
|
|
|
|
|
2021-12-24 03:12:44 +02:00
|
|
|
[node name="EditPalette" type="Button" parent="PaletteVBoxContainer/PaletteButtons" groups=["UIButtons"]]
|
2022-10-04 12:47:31 +02:00
|
|
|
margin_left = 104.0
|
|
|
|
margin_right = 126.0
|
2021-06-03 22:42:08 +03:00
|
|
|
margin_bottom = 22.0
|
|
|
|
rect_min_size = Vector2( 22, 22 )
|
2021-04-16 20:09:03 +02:00
|
|
|
hint_tooltip = "Edit currently selected palette"
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_group_": true
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="PaletteVBoxContainer/PaletteButtons/EditPalette"]
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
2021-06-03 22:42:08 +03:00
|
|
|
margin_left = -11.0
|
|
|
|
margin_top = -11.0
|
|
|
|
margin_right = 11.0
|
|
|
|
margin_bottom = 11.0
|
2021-04-16 20:09:03 +02:00
|
|
|
size_flags_horizontal = 0
|
|
|
|
size_flags_vertical = 0
|
|
|
|
texture = ExtResource( 2 )
|
|
|
|
|
2021-12-24 03:12:44 +02:00
|
|
|
[node name="AddPalette" type="Button" parent="PaletteVBoxContainer/PaletteButtons" groups=["UIButtons"]]
|
2022-10-04 12:47:31 +02:00
|
|
|
margin_left = 130.0
|
|
|
|
margin_right = 152.0
|
2021-06-03 22:42:08 +03:00
|
|
|
margin_bottom = 22.0
|
|
|
|
rect_min_size = Vector2( 22, 22 )
|
2021-04-16 20:09:03 +02:00
|
|
|
hint_tooltip = "Create a new palette"
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_group_": true
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="PaletteVBoxContainer/PaletteButtons/AddPalette"]
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
2021-06-03 22:42:08 +03:00
|
|
|
margin_left = -11.0
|
|
|
|
margin_top = -11.0
|
|
|
|
margin_right = 11.0
|
|
|
|
margin_bottom = 11.0
|
2021-04-16 20:09:03 +02:00
|
|
|
size_flags_horizontal = 0
|
|
|
|
size_flags_vertical = 0
|
|
|
|
texture = ExtResource( 3 )
|
|
|
|
|
|
|
|
[node name="HSeparator" type="HSeparator" parent="PaletteVBoxContainer"]
|
2022-03-21 16:24:03 +02:00
|
|
|
margin_top = 26.0
|
2022-10-04 12:47:31 +02:00
|
|
|
margin_right = 152.0
|
2022-03-21 16:24:03 +02:00
|
|
|
margin_bottom = 30.0
|
2021-04-16 20:09:03 +02:00
|
|
|
|
|
|
|
[node name="SwatchesContainer" type="HBoxContainer" parent="PaletteVBoxContainer"]
|
2022-03-21 16:24:03 +02:00
|
|
|
margin_top = 34.0
|
2022-10-04 12:47:31 +02:00
|
|
|
margin_right = 152.0
|
2022-03-21 16:24:03 +02:00
|
|
|
margin_bottom = 86.0
|
2021-04-16 20:09:03 +02:00
|
|
|
size_flags_horizontal = 3
|
2022-10-04 12:47:31 +02:00
|
|
|
size_flags_vertical = 3
|
2021-04-16 20:09:03 +02:00
|
|
|
|
|
|
|
[node name="ColorButtons" type="VBoxContainer" parent="PaletteVBoxContainer/SwatchesContainer"]
|
|
|
|
margin_right = 24.0
|
2021-06-14 20:38:46 +03:00
|
|
|
margin_bottom = 52.0
|
2021-04-16 20:09:03 +02:00
|
|
|
|
|
|
|
[node name="AddColor" type="Button" parent="PaletteVBoxContainer/SwatchesContainer/ColorButtons"]
|
2022-10-04 12:47:31 +02:00
|
|
|
unique_name_in_owner = true
|
2021-04-16 20:09:03 +02:00
|
|
|
margin_right = 24.0
|
|
|
|
margin_bottom = 24.0
|
|
|
|
rect_min_size = Vector2( 24, 24 )
|
|
|
|
hint_tooltip = "Add a new color"
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
text = "+"
|
|
|
|
|
|
|
|
[node name="DeleteColor" type="Button" parent="PaletteVBoxContainer/SwatchesContainer/ColorButtons"]
|
2022-10-04 12:47:31 +02:00
|
|
|
unique_name_in_owner = true
|
2021-04-16 20:09:03 +02:00
|
|
|
margin_top = 28.0
|
|
|
|
margin_right = 24.0
|
|
|
|
margin_bottom = 52.0
|
|
|
|
rect_min_size = Vector2( 24, 24 )
|
|
|
|
hint_tooltip = "Remove a selected color"
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
text = "-"
|
|
|
|
|
|
|
|
[node name="PaletteScroll" type="VBoxContainer" parent="PaletteVBoxContainer/SwatchesContainer"]
|
2022-10-04 12:47:31 +02:00
|
|
|
unique_name_in_owner = true
|
2021-04-16 20:09:03 +02:00
|
|
|
margin_left = 28.0
|
2022-10-04 12:47:31 +02:00
|
|
|
margin_right = 152.0
|
2021-06-14 20:38:46 +03:00
|
|
|
margin_bottom = 52.0
|
2021-04-16 20:09:03 +02:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
script = ExtResource( 6 )
|
|
|
|
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="PaletteVBoxContainer/SwatchesContainer/PaletteScroll"]
|
2022-10-04 12:47:31 +02:00
|
|
|
margin_right = 124.0
|
|
|
|
margin_bottom = 52.0
|
2021-04-16 20:09:03 +02:00
|
|
|
size_flags_horizontal = 3
|
2022-10-04 12:47:31 +02:00
|
|
|
size_flags_vertical = 3
|
|
|
|
alignment = 1
|
2021-04-16 20:09:03 +02:00
|
|
|
|
2022-10-04 12:47:31 +02:00
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="PaletteVBoxContainer/SwatchesContainer/PaletteScroll/HBoxContainer"]
|
|
|
|
margin_right = 120.0
|
|
|
|
margin_bottom = 52.0
|
2021-04-16 20:09:03 +02:00
|
|
|
size_flags_horizontal = 3
|
2022-10-04 12:47:31 +02:00
|
|
|
size_flags_vertical = 3
|
|
|
|
alignment = 1
|
2021-04-16 20:09:03 +02:00
|
|
|
|
2022-10-04 12:47:31 +02:00
|
|
|
[node name="ScrollContainer" type="ScrollContainer" parent="PaletteVBoxContainer/SwatchesContainer/PaletteScroll/HBoxContainer/VBoxContainer"]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
margin_right = 120.0
|
|
|
|
margin_bottom = 52.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
2021-04-16 20:09:03 +02:00
|
|
|
|
2022-10-04 12:47:31 +02:00
|
|
|
[node name="PaletteGrid" type="GridContainer" parent="PaletteVBoxContainer/SwatchesContainer/PaletteScroll/HBoxContainer/VBoxContainer/ScrollContainer"]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
margin_right = 120.0
|
|
|
|
margin_bottom = 52.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
custom_constants/vseparation = 3
|
|
|
|
custom_constants/hseparation = 3
|
2021-04-16 20:09:03 +02:00
|
|
|
script = ExtResource( 5 )
|
|
|
|
|
2022-10-04 12:47:31 +02:00
|
|
|
[node name="HScrollBar" type="HScrollBar" parent="PaletteVBoxContainer/SwatchesContainer/PaletteScroll/HBoxContainer/VBoxContainer"]
|
|
|
|
unique_name_in_owner = true
|
2021-04-16 20:09:03 +02:00
|
|
|
visible = false
|
2022-10-04 12:47:31 +02:00
|
|
|
margin_left = -132.0
|
|
|
|
margin_top = 4.0
|
|
|
|
margin_right = 118.0
|
|
|
|
margin_bottom = 16.0
|
2021-04-16 20:09:03 +02:00
|
|
|
step = 1.0
|
|
|
|
page = 8.0
|
|
|
|
custom_step = 1.0
|
|
|
|
|
2022-10-04 12:47:31 +02:00
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="PaletteVBoxContainer/SwatchesContainer/PaletteScroll/HBoxContainer"]
|
|
|
|
margin_left = 124.0
|
|
|
|
margin_right = 124.0
|
|
|
|
margin_bottom = 52.0
|
|
|
|
custom_constants/margin_bottom = 15
|
2021-04-16 20:09:03 +02:00
|
|
|
|
2022-10-04 12:47:31 +02:00
|
|
|
[node name="VScrollBar" type="VScrollBar" parent="PaletteVBoxContainer/SwatchesContainer/PaletteScroll/HBoxContainer/MarginContainer"]
|
|
|
|
unique_name_in_owner = true
|
2021-04-16 20:09:03 +02:00
|
|
|
visible = false
|
2022-10-04 12:47:31 +02:00
|
|
|
margin_right = 12.0
|
|
|
|
margin_bottom = 37.0
|
2021-04-16 20:09:03 +02:00
|
|
|
step = 1.0
|
|
|
|
page = 8.0
|
|
|
|
custom_step = 1.0
|
|
|
|
|
|
|
|
[node name="EditPaletteDialog" parent="." instance=ExtResource( 1 )]
|
2022-10-04 12:47:31 +02:00
|
|
|
unique_name_in_owner = true
|
2021-04-16 20:09:03 +02:00
|
|
|
margin_left = 7.0
|
|
|
|
margin_top = 7.0
|
|
|
|
margin_right = 317.0
|
|
|
|
margin_bottom = 442.0
|
|
|
|
rect_min_size = Vector2( 250, 87.5 )
|
|
|
|
|
|
|
|
[node name="CreatePaletteDialog" parent="." instance=ExtResource( 4 )]
|
2022-10-04 12:47:31 +02:00
|
|
|
unique_name_in_owner = true
|
2021-04-16 20:09:03 +02:00
|
|
|
margin_left = 7.0
|
|
|
|
margin_top = 7.0
|
|
|
|
margin_right = 317.0
|
|
|
|
margin_bottom = 312.0
|
|
|
|
rect_min_size = Vector2( 250, 87.5 )
|
|
|
|
|
|
|
|
[node name="HiddenColorPickerButton" type="ColorPickerButton" parent="."]
|
2022-10-04 12:47:31 +02:00
|
|
|
unique_name_in_owner = true
|
2021-04-16 20:09:03 +02:00
|
|
|
visible = false
|
|
|
|
margin_left = 7.0
|
|
|
|
margin_top = 7.0
|
2022-10-04 12:47:31 +02:00
|
|
|
margin_right = 311.0
|
|
|
|
margin_bottom = 111.0
|
2021-05-11 21:03:11 +03:00
|
|
|
|
2021-04-16 20:09:03 +02:00
|
|
|
[connection signal="item_selected" from="PaletteVBoxContainer/PaletteButtons/PaletteSelect" to="." method="_on_PaletteSelect_item_selected"]
|
|
|
|
[connection signal="pressed" from="PaletteVBoxContainer/PaletteButtons/EditPalette" to="." method="_on_EditPalette_pressed"]
|
|
|
|
[connection signal="pressed" from="PaletteVBoxContainer/PaletteButtons/AddPalette" to="." method="_on_AddPalette_pressed"]
|
|
|
|
[connection signal="gui_input" from="PaletteVBoxContainer/SwatchesContainer/ColorButtons/AddColor" to="." method="_on_AddColor_gui_input"]
|
|
|
|
[connection signal="gui_input" from="PaletteVBoxContainer/SwatchesContainer/ColorButtons/DeleteColor" to="." method="_on_DeleteColor_gui_input"]
|
2022-10-04 12:47:31 +02:00
|
|
|
[connection signal="gui_input" from="PaletteVBoxContainer/SwatchesContainer/PaletteScroll" to="PaletteVBoxContainer/SwatchesContainer/PaletteScroll" method="_on_PaletteScroll_gui_input"]
|
|
|
|
[connection signal="resized" from="PaletteVBoxContainer/SwatchesContainer/PaletteScroll" to="PaletteVBoxContainer/SwatchesContainer/PaletteScroll" method="_on_PaletteScroll_resized"]
|
|
|
|
[connection signal="gui_input" from="PaletteVBoxContainer/SwatchesContainer/PaletteScroll/HBoxContainer/VBoxContainer/ScrollContainer/PaletteGrid" to="PaletteVBoxContainer/SwatchesContainer/PaletteScroll" method="_on_PaletteGrid_gui_input"]
|
|
|
|
[connection signal="swatch_double_clicked" from="PaletteVBoxContainer/SwatchesContainer/PaletteScroll/HBoxContainer/VBoxContainer/ScrollContainer/PaletteGrid" to="." method="_on_PaletteGrid_swatch_double_clicked"]
|
|
|
|
[connection signal="swatch_dropped" from="PaletteVBoxContainer/SwatchesContainer/PaletteScroll/HBoxContainer/VBoxContainer/ScrollContainer/PaletteGrid" to="." method="_on_PaletteGrid_swatch_dropped"]
|
|
|
|
[connection signal="swatch_pressed" from="PaletteVBoxContainer/SwatchesContainer/PaletteScroll/HBoxContainer/VBoxContainer/ScrollContainer/PaletteGrid" to="." method="_on_PaletteGrid_swatch_pressed"]
|
|
|
|
[connection signal="value_changed" from="PaletteVBoxContainer/SwatchesContainer/PaletteScroll/HBoxContainer/VBoxContainer/HScrollBar" to="PaletteVBoxContainer/SwatchesContainer/PaletteScroll" method="_on_HSlider_value_changed"]
|
|
|
|
[connection signal="value_changed" from="PaletteVBoxContainer/SwatchesContainer/PaletteScroll/HBoxContainer/MarginContainer/VScrollBar" to="PaletteVBoxContainer/SwatchesContainer/PaletteScroll" method="_on_VSlider_value_changed"]
|
2021-04-16 20:09:03 +02:00
|
|
|
[connection signal="deleted" from="EditPaletteDialog" to="." method="_on_EditPaletteDialog_deleted"]
|
|
|
|
[connection signal="saved" from="EditPaletteDialog" to="." method="_on_EditPaletteDialog_saved"]
|
|
|
|
[connection signal="saved" from="CreatePaletteDialog" to="." method="_on_CreatePaletteDialog_saved"]
|
|
|
|
[connection signal="color_changed" from="HiddenColorPickerButton" to="." method="_on_ColorPicker_color_changed"]
|
2022-10-04 12:47:31 +02:00
|
|
|
[connection signal="popup_closed" from="HiddenColorPickerButton" to="." method="_on_HiddenColorPickerButton_popup_closed"]
|