1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-18 19:43:14 +00:00

Fixed changing colors array by mistake

This commit is contained in:
Variable 2024-09-14 19:39:50 +05:00
parent 452d13b0bf
commit fbaa9981c3
2 changed files with 5 additions and 3 deletions

View file

@ -321,10 +321,12 @@ func update_brush() -> void:
$ColorInterpolation.visible = false
func _check_palette_color(_color, mouse_button):
func _check_palette_color(_color, mouse_button) -> void:
if mouse_button != tool_slot.button:
return
if _shading_mode == ShadingMode.COLOR_REPLACE:
await get_tree().process_frame
var index = Palettes.current_palette_get_selected_color_index(tool_slot.button)
var index = Palettes.current_palette_get_selected_color_index(mouse_button)
if index > -1:
$ColorReplaceOptions/Settings.visible = true
$ColorReplaceOptions/Label.visible = false

View file

@ -86,7 +86,7 @@ prefix = "Colors Right"
[node name="Label" type="Label" parent="ColorReplaceOptions/Settings" index="1"]
layout_mode = 2
text = "(Darken -> Lighten)"
text = "(Darken <--> Lighten)"
[node name="Colors" type="HFlowContainer" parent="ColorReplaceOptions/Settings" index="2"]
layout_mode = 2