UI work, placing traps, removing traps, disarming traps, new sound fx.
This commit is contained in:
12
scripts/remove_trap_modal.gd
Normal file
12
scripts/remove_trap_modal.gd
Normal file
@@ -0,0 +1,12 @@
|
||||
class_name RemoveTrapModal extends ConfirmationDialog
|
||||
|
||||
var square : Vector3i
|
||||
|
||||
func button_pressed(event : InputEventAction) -> void:
|
||||
match(event.action):
|
||||
"detonate":
|
||||
Game.player.remove_trap_at(square)
|
||||
Game.player.close_modal()
|
||||
"attack":
|
||||
Game.player.close_modal()
|
||||
_: return
|
||||
Reference in New Issue
Block a user