From 98e6b0f56bbba1e2f60510ab13b08fba28964de2 Mon Sep 17 00:00:00 2001 From: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com> Date: Tue, 3 Mar 2020 01:46:14 +0200 Subject: [PATCH] Fix move up/down and merge layers not de-activating when there's only one layer left --- Scripts/Global.gd | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Scripts/Global.gd b/Scripts/Global.gd index ec92a69..b39ce93 100644 --- a/Scripts/Global.gd +++ b/Scripts/Global.gd @@ -516,6 +516,12 @@ func layers_changed(value : Array) -> void: if layers.size() == 1: remove_layer_button.disabled = true 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: remove_layer_button.disabled = false 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.mouse_default_cursor_shape = Control.CURSOR_FORBIDDEN 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: var brush_container