From e216bf93e77ceb42c8c5dc5e77ebff6e1968faa3 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Mon, 8 Feb 2021 15:06:31 +0100 Subject: Adds Cancel Button to Level HUD --- Levels/Level.gd | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Levels/Level.gd') diff --git a/Levels/Level.gd b/Levels/Level.gd index 7544dd9..6777854 100644 --- a/Levels/Level.gd +++ b/Levels/Level.gd @@ -7,11 +7,13 @@ var timer = 0 var HUD = CanvasLayer.new() var LabelTimer = preload("res://UI/HUD/Timer.tscn").instance() var LevelMap = preload("res://UI/HUD/LevelMap.tscn").instance() +var CancelButton = preload("res://UI/HUD/CancelButton.tscn").instance() func _ready(): self.HUD.add_child(self.LabelTimer) self.HUD.add_child(self.LevelMap) + self.HUD.add_child(self.CancelButton) self.add_child(self.HUD) var character = load("res://Characters/" + Network.player.character + ".tscn").instance() -- cgit v1.2.3