From a9c57d27e53b61c6ef8fd569bbd817eb1936dc74 Mon Sep 17 00:00:00 2001 From: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com> Date: Sun, 8 Mar 2020 22:03:31 +0200 Subject: [PATCH] Removed frame_changed method from Canvas.gd --- Scripts/Canvas.gd | 7 +------ Scripts/LayerContainer.gd | 2 -- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/Scripts/Canvas.gd b/Scripts/Canvas.gd index 180d9e8dd..28a850eee 100644 --- a/Scripts/Canvas.gd +++ b/Scripts/Canvas.gd @@ -6,7 +6,7 @@ var current_layer_index := 0 var location := Vector2.ZERO var size := Vector2(64, 64) var fill_color := Color(0, 0, 0, 0) -var frame := 0 setget frame_changed +var frame := 0 var current_pixel := Vector2.ZERO # pretty much same as mouse_pos, but can be accessed externally var previous_mouse_pos := Vector2.ZERO var previous_mouse_pos_for_lines := Vector2.ZERO @@ -496,11 +496,6 @@ func update_texture(layer_index : int) -> void: frame_texture_rect = Global.find_node_by_name(Global.layers[layer_index][2].get_child(frame),"FrameTexture") frame_texture_rect.texture = layers[layer_index][1] -func frame_changed(value : int) -> void: - frame = value -# if frame_button: -# frame_button.get_node("FrameButton").frame = frame -# frame_button.get_node("FrameID").text = str(frame + 1) func get_layer_container(layer_index : int) -> LayerContainer: for container in Global.vbox_layer_container.get_children(): diff --git a/Scripts/LayerContainer.gd b/Scripts/LayerContainer.gd index 9d9bef92a..d03e24af5 100644 --- a/Scripts/LayerContainer.gd +++ b/Scripts/LayerContainer.gd @@ -2,8 +2,6 @@ class_name LayerContainer extends Button var i := 0 -# warning-ignore:unused_class_variable -var currently_selected := false var visibility_button : BaseButton var label : Label var line_edit : LineEdit