1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-19 01:29:49 +00:00

Removed frame_changed method from Canvas.gd

This commit is contained in:
OverloadedOrama 2020-03-08 22:03:31 +02:00
parent b9b0d3e1b3
commit a9c57d27e5
2 changed files with 1 additions and 8 deletions

View file

@ -6,7 +6,7 @@ var current_layer_index := 0
var location := Vector2.ZERO var location := Vector2.ZERO
var size := Vector2(64, 64) var size := Vector2(64, 64)
var fill_color := Color(0, 0, 0, 0) 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 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 := Vector2.ZERO
var previous_mouse_pos_for_lines := 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 = Global.find_node_by_name(Global.layers[layer_index][2].get_child(frame),"FrameTexture")
frame_texture_rect.texture = layers[layer_index][1] 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: func get_layer_container(layer_index : int) -> LayerContainer:
for container in Global.vbox_layer_container.get_children(): for container in Global.vbox_layer_container.get_children():

View file

@ -2,8 +2,6 @@ class_name LayerContainer
extends Button extends Button
var i := 0 var i := 0
# warning-ignore:unused_class_variable
var currently_selected := false
var visibility_button : BaseButton var visibility_button : BaseButton
var label : Label var label : Label
var line_edit : LineEdit var line_edit : LineEdit