mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-19 09:39:48 +00:00
80 lines
3.3 KiB
Plaintext
80 lines
3.3 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="ColorPickers" type="PanelContainer"]
|
|
margin_left = 958.0
|
|
margin_top = 170.0
|
|
margin_right = 1276.0
|
|
margin_bottom = 229.062
|
|
script = ExtResource( 3 )
|
|
|
|
[node name="ColorPickersHorizontal" type="HBoxContainer" parent="."]
|
|
margin_left = 7.0
|
|
margin_top = 7.0
|
|
margin_right = 311.0
|
|
margin_bottom = 52.062
|
|
custom_constants/separation = 13
|
|
alignment = 1
|
|
|
|
[node name="LeftColorPickerButton" type="ColorPickerButton" parent="ColorPickersHorizontal"]
|
|
margin_left = 62.0
|
|
margin_top = 6.0
|
|
margin_right = 126.0
|
|
margin_bottom = 38.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="ColorPickersHorizontal"]
|
|
margin_left = 139.0
|
|
margin_right = 164.0
|
|
margin_bottom = 45.0
|
|
alignment = 1
|
|
|
|
[node name="ColorSwitch" type="TextureButton" parent="ColorPickersHorizontal/ColorButtonsVertical" groups=["UIButtons"]]
|
|
margin_top = 13.0
|
|
margin_right = 25.0
|
|
margin_bottom = 20.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="ColorPickersHorizontal/ColorButtonsVertical"]
|
|
margin_top = 24.0
|
|
margin_right = 25.0
|
|
margin_bottom = 32.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="ColorPickersHorizontal"]
|
|
margin_left = 177.0
|
|
margin_top = 6.0
|
|
margin_right = 241.0
|
|
margin_bottom = 38.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="ColorPickersHorizontal/LeftColorPickerButton" to="." method="_on_ColorPickerButton_color_changed" binds= [ false ]]
|
|
[connection signal="popup_closed" from="ColorPickersHorizontal/LeftColorPickerButton" to="." method="_on_ColorPickerButton_popup_closed"]
|
|
[connection signal="pressed" from="ColorPickersHorizontal/LeftColorPickerButton" to="." method="_on_ColorPickerButton_pressed"]
|
|
[connection signal="pressed" from="ColorPickersHorizontal/ColorButtonsVertical/ColorSwitch" to="." method="_on_ColorSwitch_pressed"]
|
|
[connection signal="pressed" from="ColorPickersHorizontal/ColorButtonsVertical/ColorDefaults" to="." method="_on_ColorDefaults_pressed"]
|
|
[connection signal="color_changed" from="ColorPickersHorizontal/RightColorPickerButton" to="." method="_on_ColorPickerButton_color_changed" binds= [ true ]]
|
|
[connection signal="popup_closed" from="ColorPickersHorizontal/RightColorPickerButton" to="." method="_on_ColorPickerButton_popup_closed"]
|
|
[connection signal="pressed" from="ColorPickersHorizontal/RightColorPickerButton" to="." method="_on_ColorPickerButton_pressed"]
|