summaryrefslogtreecommitdiff
path: root/Scripts/UI/MaskButton.gd
blob: b9ce5054c16de42b75f6385be6ca4a15d97652e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
extends Button

@export var mask_type : int = -1
@export var index : int = 0

func _ready() -> void:
	pressed.connect(_on_pressed)

signal i_was_pressed(mask : int, index : int, btn : Button)

func _on_pressed() -> void:
	print("pressed here")
	i_was_pressed.emit(mask_type, index, self)