summaryrefslogtreecommitdiff
path: root/scripts/number_system/NumberNode.gd
blob: d53cc6e6ff8535a57a14f87820c4900f10d6270b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
extends Node
class_name NumberNode

@export_group("Toggles")
## Scan for mouse events by the player, used for Player's NumberNode to snap to
## other NumberNodes. Disable if AI or Player.
@export var do_scan_as_target : bool
@export_group("Values")
@export var value : int
@export var modifier_value : float
enum Operations {
	NONE,
	ADDITION,
	SUBTRACTION,
	MULTIPLICATION,
	DIVISION,
}
@export var modifier_operation : Operations
@export_group("Visuals")
@export var sprite : Sprite2D
@export var label : Label
@export var color : Color

func _ready():
	update_visuals()

func _process(_delta):
	pass

## Update label, size, color
func update_visuals():
	pass