mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-31 15:39:49 +00:00
Fix move up/down and merge layers not de-activating when there's only one layer left
This commit is contained in:
parent
adcacaa8cb
commit
98e6b0f56b
|
@ -516,6 +516,12 @@ func layers_changed(value : Array) -> void:
|
||||||
if layers.size() == 1:
|
if layers.size() == 1:
|
||||||
remove_layer_button.disabled = true
|
remove_layer_button.disabled = true
|
||||||
remove_layer_button.mouse_default_cursor_shape = Control.CURSOR_FORBIDDEN
|
remove_layer_button.mouse_default_cursor_shape = Control.CURSOR_FORBIDDEN
|
||||||
|
move_up_layer_button.disabled = true
|
||||||
|
move_up_layer_button.mouse_default_cursor_shape = Control.CURSOR_FORBIDDEN
|
||||||
|
move_down_layer_button.disabled = true
|
||||||
|
move_down_layer_button.mouse_default_cursor_shape = Control.CURSOR_FORBIDDEN
|
||||||
|
merge_down_layer_button.disabled = true
|
||||||
|
merge_down_layer_button.mouse_default_cursor_shape = Control.CURSOR_FORBIDDEN
|
||||||
else:
|
else:
|
||||||
remove_layer_button.disabled = false
|
remove_layer_button.disabled = false
|
||||||
remove_layer_button.mouse_default_cursor_shape = Control.CURSOR_POINTING_HAND
|
remove_layer_button.mouse_default_cursor_shape = Control.CURSOR_POINTING_HAND
|
||||||
|
@ -562,6 +568,7 @@ func layer_changed(value : int) -> void:
|
||||||
move_down_layer_button.disabled = true
|
move_down_layer_button.disabled = true
|
||||||
move_down_layer_button.mouse_default_cursor_shape = Control.CURSOR_FORBIDDEN
|
move_down_layer_button.mouse_default_cursor_shape = Control.CURSOR_FORBIDDEN
|
||||||
merge_down_layer_button.disabled = true
|
merge_down_layer_button.disabled = true
|
||||||
|
merge_down_layer_button.mouse_default_cursor_shape = Control.CURSOR_FORBIDDEN
|
||||||
|
|
||||||
func create_brush_button(brush_img : Image, brush_type := Brush_Types.CUSTOM, hint_tooltip := "") -> void:
|
func create_brush_button(brush_img : Image, brush_type := Brush_Types.CUSTOM, hint_tooltip := "") -> void:
|
||||||
var brush_container
|
var brush_container
|
||||||
|
|
Loading…
Reference in a new issue