From ffd9d2bca8e6e540133f105fcfe107ad4b636afa Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas Date: Wed, 8 Nov 2023 19:01:31 +0200 Subject: [PATCH] Update tile mode opacity when changed from the preferences, and remove unused variables --- src/Autoload/Global.gd | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/Autoload/Global.gd b/src/Autoload/Global.gd index deb7ab2dd..7431fc77b 100644 --- a/src/Autoload/Global.gd +++ b/src/Autoload/Global.gd @@ -211,7 +211,10 @@ var checker_follow_scale := false: set(value): checker_follow_scale = value transparent_checker.update_rect() -var tilemode_opacity := 1.0 +var tilemode_opacity := 1.0: + set(value): + tilemode_opacity = value + canvas.tile_mode.queue_redraw() var select_layer_on_button_click := false var onion_skinning_past_color := Color.RED: @@ -308,15 +311,6 @@ var onion_skinning_past_rate := 1.0 var onion_skinning_future_rate := 1.0 var onion_skinning_blue_red := false -# Palettes -var palettes := {} - -# Crop Options: -var crop_top := 0 -var crop_bottom := 0 -var crop_left := 0 -var crop_right := 0 - # Nodes var base_layer_button_node: PackedScene = load("res://src/UI/Timeline/BaseLayerButton.tscn") var pixel_layer_button_node: PackedScene = load("res://src/UI/Timeline/PixelLayerButton.tscn")