mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-31 23:49:47 +00:00
77 lines
2.9 KiB
Plaintext
77 lines
2.9 KiB
Plaintext
|
[gd_scene load_steps=5 format=2]
|
||
|
|
||
|
[ext_resource path="res://assets/graphics/misc/color_defaults.png" type="Texture" id=1]
|
||
|
[ext_resource path="res://assets/graphics/misc/color_switch.png" type="Texture" id=2]
|
||
|
[ext_resource path="res://src/UI/ColorPickers.gd" type="Script" id=3]
|
||
|
|
||
|
[sub_resource type="ShortCut" id=19]
|
||
|
|
||
|
[node name="ColorPickersHorizontal" type="HBoxContainer"]
|
||
|
margin_left = 958.0
|
||
|
margin_top = 170.0
|
||
|
margin_right = 1276.0
|
||
|
margin_bottom = 229.062
|
||
|
custom_constants/separation = 13
|
||
|
alignment = 1
|
||
|
script = ExtResource( 3 )
|
||
|
__meta__ = {
|
||
|
"_edit_use_anchors_": false
|
||
|
}
|
||
|
|
||
|
[node name="LeftColorPickerButton" type="ColorPickerButton" parent="."]
|
||
|
margin_left = 69.0
|
||
|
margin_top = 13.0
|
||
|
margin_right = 133.0
|
||
|
margin_bottom = 45.0
|
||
|
rect_min_size = Vector2( 64, 32 )
|
||
|
hint_tooltip = "Choose a color for the left tool"
|
||
|
mouse_default_cursor_shape = 2
|
||
|
size_flags_horizontal = 0
|
||
|
size_flags_vertical = 4
|
||
|
|
||
|
[node name="ColorButtonsVertical" type="VBoxContainer" parent="."]
|
||
|
margin_left = 146.0
|
||
|
margin_right = 171.0
|
||
|
margin_bottom = 59.0
|
||
|
alignment = 1
|
||
|
|
||
|
[node name="ColorSwitch" type="TextureButton" parent="ColorButtonsVertical" groups=["UIButtons"]]
|
||
|
margin_top = 20.0
|
||
|
margin_right = 25.0
|
||
|
margin_bottom = 27.0
|
||
|
hint_tooltip = "Switch left and right colors
|
||
|
(%s)"
|
||
|
mouse_default_cursor_shape = 2
|
||
|
shortcut_in_tooltip = false
|
||
|
shortcut = SubResource( 19 )
|
||
|
texture_normal = ExtResource( 2 )
|
||
|
|
||
|
[node name="ColorDefaults" type="TextureButton" parent="ColorButtonsVertical"]
|
||
|
margin_top = 31.0
|
||
|
margin_right = 25.0
|
||
|
margin_bottom = 39.0
|
||
|
hint_tooltip = "Reset the colors to their default state (black for left, white for right)"
|
||
|
mouse_default_cursor_shape = 2
|
||
|
texture_normal = ExtResource( 1 )
|
||
|
|
||
|
[node name="RightColorPickerButton" type="ColorPickerButton" parent="."]
|
||
|
margin_left = 184.0
|
||
|
margin_top = 13.0
|
||
|
margin_right = 248.0
|
||
|
margin_bottom = 45.0
|
||
|
rect_min_size = Vector2( 64, 32 )
|
||
|
hint_tooltip = "Choose a color for the right tool"
|
||
|
mouse_default_cursor_shape = 2
|
||
|
size_flags_horizontal = 0
|
||
|
size_flags_vertical = 4
|
||
|
color = Color( 1, 1, 1, 1 )
|
||
|
|
||
|
[connection signal="color_changed" from="LeftColorPickerButton" to="." method="_on_ColorPickerButton_color_changed" binds= [ false ]]
|
||
|
[connection signal="popup_closed" from="LeftColorPickerButton" to="." method="_on_ColorPickerButton_popup_closed"]
|
||
|
[connection signal="pressed" from="LeftColorPickerButton" to="." method="_on_ColorPickerButton_pressed"]
|
||
|
[connection signal="pressed" from="ColorButtonsVertical/ColorSwitch" to="." method="_on_ColorSwitch_pressed"]
|
||
|
[connection signal="pressed" from="ColorButtonsVertical/ColorDefaults" to="." method="_on_ColorDefaults_pressed"]
|
||
|
[connection signal="color_changed" from="RightColorPickerButton" to="." method="_on_ColorPickerButton_color_changed" binds= [ true ]]
|
||
|
[connection signal="popup_closed" from="RightColorPickerButton" to="." method="_on_ColorPickerButton_popup_closed"]
|
||
|
[connection signal="pressed" from="RightColorPickerButton" to="." method="_on_ColorPickerButton_pressed"]
|