1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-19 01:29:49 +00:00
Pixelorama/Prefabs/EditPalettePopup.tscn

138 lines
4.8 KiB
Plaintext
Raw Normal View History

2019-12-18 14:43:11 +00:00
[gd_scene load_steps=6 format=2]
2019-12-18 01:04:37 +00:00
[ext_resource path="res://Scripts/Palette/EditPalettePopup.gd" type="Script" id=1]
2019-12-18 14:43:11 +00:00
[ext_resource path="res://Assets/Graphics/Palette/new_swatch_button.png" type="Texture" id=2]
[ext_resource path="res://Assets/Graphics/Palette/new_swatch_button_hover.png" type="Texture" id=3]
[ext_resource path="res://Assets/Graphics/Palette/remove_swatch_button.png" type="Texture" id=4]
[ext_resource path="res://Assets/Graphics/Palette/remove_swatch_button_hover.png" type="Texture" id=5]
2019-12-18 01:04:37 +00:00
[node name="EditPalettePopup" type="WindowDialog"]
2019-12-18 14:43:11 +00:00
visible = true
2019-12-18 01:04:37 +00:00
margin_right = 600.0
margin_bottom = 550.0
2019-12-31 01:02:53 +00:00
rect_min_size = Vector2( 600, 570 )
2019-12-18 01:04:37 +00:00
window_title = "Edit Palette"
script = ExtResource( 1 )
[node name="VBoxContainer" type="VBoxContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 10.0
margin_top = 10.0
margin_right = -10.0
margin_bottom = -10.0
size_flags_horizontal = 3
2019-12-31 01:02:53 +00:00
custom_constants/separation = 8
2019-12-18 01:04:37 +00:00
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
margin_right = 580.0
margin_bottom = 462.0
2019-12-18 01:04:37 +00:00
size_flags_vertical = 3
[node name="EditPaletteColorPicker" type="ColorPicker" parent="VBoxContainer/HBoxContainer"]
2019-12-18 14:43:11 +00:00
margin_right = 290.0
margin_bottom = 462.0
2019-12-18 01:04:37 +00:00
[node name="Panel" type="Panel" parent="VBoxContainer/HBoxContainer"]
margin_left = 294.0
2019-12-18 14:43:11 +00:00
margin_right = 556.0
margin_bottom = 462.0
2019-12-18 01:04:37 +00:00
size_flags_horizontal = 3
[node name="EditPaletteGridContainer" type="GridContainer" parent="VBoxContainer/HBoxContainer/Panel"]
anchor_right = 1.0
anchor_bottom = 1.0
size_flags_horizontal = 3
size_flags_vertical = 3
columns = 8
[node name="ColorButtons" type="VBoxContainer" parent="VBoxContainer/HBoxContainer"]
2019-12-18 14:43:11 +00:00
margin_left = 560.0
2019-12-18 01:04:37 +00:00
margin_right = 580.0
margin_bottom = 462.0
2019-12-18 01:04:37 +00:00
[node name="AddSwatchButton" type="TextureButton" parent="VBoxContainer/HBoxContainer/ColorButtons"]
2019-12-18 14:43:11 +00:00
margin_right = 20.0
margin_bottom = 20.0
2019-12-18 01:04:37 +00:00
texture_normal = ExtResource( 2 )
2019-12-18 14:43:11 +00:00
texture_hover = ExtResource( 3 )
2019-12-18 01:04:37 +00:00
[node name="RemoveSwatchButton" type="TextureButton" parent="VBoxContainer/HBoxContainer/ColorButtons"]
2019-12-18 14:43:11 +00:00
margin_top = 24.0
margin_right = 20.0
margin_bottom = 44.0
texture_normal = ExtResource( 4 )
texture_hover = ExtResource( 5 )
2019-12-18 01:04:37 +00:00
2019-12-31 01:02:53 +00:00
[node name="PaletteOptions" type="GridContainer" parent="VBoxContainer"]
margin_top = 470.0
2019-12-18 01:04:37 +00:00
margin_right = 580.0
2019-12-31 01:02:53 +00:00
margin_bottom = 522.0
columns = 2
2019-12-18 01:04:37 +00:00
2019-12-31 01:02:53 +00:00
[node name="Label" type="Label" parent="VBoxContainer/PaletteOptions"]
2019-12-18 14:43:11 +00:00
margin_top = 5.0
2019-12-31 01:02:53 +00:00
margin_right = 91.0
2019-12-18 14:43:11 +00:00
margin_bottom = 19.0
2019-12-18 01:04:37 +00:00
text = "Color Name:"
2019-12-31 01:02:53 +00:00
[node name="EditPaletteColorNameLineEdit" type="LineEdit" parent="VBoxContainer/PaletteOptions"]
margin_left = 95.0
2019-12-18 01:04:37 +00:00
margin_right = 580.0
2019-12-18 14:43:11 +00:00
margin_bottom = 24.0
2019-12-18 01:04:37 +00:00
size_flags_horizontal = 3
2019-12-31 01:02:53 +00:00
[node name="Label2" type="Label" parent="VBoxContainer/PaletteOptions"]
margin_top = 33.0
margin_right = 91.0
2019-12-31 01:02:53 +00:00
margin_bottom = 47.0
text = "Palette Name:"
2019-12-31 01:02:53 +00:00
[node name="EditPaletteNameLineEdit" type="LineEdit" parent="VBoxContainer/PaletteOptions"]
margin_left = 95.0
2019-12-31 01:02:53 +00:00
margin_top = 28.0
margin_right = 580.0
2019-12-31 01:02:53 +00:00
margin_bottom = 52.0
size_flags_horizontal = 3
[node name="WindowOptionsContainer" type="HBoxContainer" parent="VBoxContainer"]
2019-12-31 01:02:53 +00:00
margin_top = 530.0
margin_right = 580.0
2019-12-31 01:02:53 +00:00
margin_bottom = 550.0
2019-12-18 01:04:37 +00:00
size_flags_horizontal = 3
[node name="SpacerControl" type="Control" parent="VBoxContainer/WindowOptionsContainer"]
2019-12-18 14:43:11 +00:00
margin_right = 156.0
margin_bottom = 20.0
2019-12-18 01:04:37 +00:00
size_flags_horizontal = 3
[node name="EditPaletteSaveButton" type="Button" parent="VBoxContainer/WindowOptionsContainer"]
2019-12-18 14:43:11 +00:00
margin_left = 160.0
2019-12-18 01:04:37 +00:00
margin_right = 201.0
2019-12-18 14:43:11 +00:00
margin_bottom = 20.0
2019-12-18 01:04:37 +00:00
text = "Save"
[node name="SpacerControl2" type="Control" parent="VBoxContainer/WindowOptionsContainer"]
2019-12-18 01:04:37 +00:00
margin_left = 205.0
2019-12-18 14:43:11 +00:00
margin_right = 361.0
margin_bottom = 20.0
2019-12-18 01:04:37 +00:00
size_flags_horizontal = 3
[node name="EditPaletteCancelButton" type="Button" parent="VBoxContainer/WindowOptionsContainer"]
2019-12-18 14:43:11 +00:00
margin_left = 365.0
margin_right = 419.0
margin_bottom = 20.0
2019-12-18 01:04:37 +00:00
text = "Cancel"
[node name="SpacerControl3" type="Control" parent="VBoxContainer/WindowOptionsContainer"]
2019-12-18 14:43:11 +00:00
margin_left = 423.0
2019-12-18 01:04:37 +00:00
margin_right = 580.0
2019-12-18 14:43:11 +00:00
margin_bottom = 20.0
2019-12-18 01:04:37 +00:00
size_flags_horizontal = 3
[connection signal="color_changed" from="VBoxContainer/HBoxContainer/EditPaletteColorPicker" to="." method="_on_EditPaletteColorPicker_color_changed"]
[connection signal="pressed" from="VBoxContainer/HBoxContainer/ColorButtons/AddSwatchButton" to="." method="_on_AddSwatchButton_pressed"]
[connection signal="pressed" from="VBoxContainer/HBoxContainer/ColorButtons/RemoveSwatchButton" to="." method="_on_RemoveSwatchButton_pressed"]
2019-12-31 01:02:53 +00:00
[connection signal="text_changed" from="VBoxContainer/PaletteOptions/EditPaletteColorNameLineEdit" to="." method="_on_EditPaletteColorNameLineEdit_text_changed"]
[connection signal="pressed" from="VBoxContainer/WindowOptionsContainer/EditPaletteSaveButton" to="." method="_on_EditPaletteSaveButton_pressed"]
[connection signal="pressed" from="VBoxContainer/WindowOptionsContainer/EditPaletteCancelButton" to="." method="_on_EditPaletteCancelButton_pressed"]