summaryrefslogtreecommitdiff
path: root/Scripts/UI/UIConnector.gd
blob: b41e24154fa62bdfde49ba9b4f4fff24bd317897 (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

var hud : UI

var is_inv_open : bool = false

func _ready() -> void:
	hud = get_tree().get_root().get_node("Node2D/HUD")

func display_health(n : int) -> void:
	hud.display_health(n)

func add_machette() -> void:
	hud.add_machette()

func remove_machette() -> void:
	hud.remove_machette()

func switch_tool() -> void:
	hud.switch_tool()

func update_masks(masks : Array[int]) -> void:
	hud.update_masks(masks)

func show_mask_bubble() -> void:
	hud.show_mask_bubble()

func death() -> void:
	hud.death()

func next_level(level : int) -> void:
	hud.next_level(level)