var movement_controls_open: bool = false
var colors_menu_open: bool = false
+
signal move_layer(LAYER_MOVEMENT)
signal move_drawing(MOVEMENT, multiplier: int)
+signal asset_selected(asset_path: String)
#region build in funcs
movement_multiplier_label.text = " " + str(movement_multiplier)
+func _on_asset_selected(file_path: String):
+ asset_selected.emit(file_path)
+
+
#endregion
#region utils
timer.timeout.connect(timer.queue_free)
add_child(timer)
+
#endregion
#region signal callbacks
texture_button.set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT, Control.PRESET_MODE_KEEP_SIZE, ASSET_MARGIN)
texture_button.ignore_texture_size = true
texture_button.custom_minimum_size = ASSET_MIN_SIZE
+
+ texture_button.pressed.connect(_on_asset_selected.bind(file_path))
var image = Image.load_from_file(miniature_file_path)
var texture = ImageTexture.create_from_image(image)