More work on pawn select sounds and controls.

This commit is contained in:
2026-01-02 03:25:41 -05:00
parent b4910013c0
commit 9fe376e27e
21 changed files with 351 additions and 17 deletions

20
scripts/pawn_display.gd Normal file
View File

@@ -0,0 +1,20 @@
class_name PawnDisplay extends Panel
@onready var pawn_name : Label = %PawnName
@onready var trap_container : HBoxContainer = %TrapContainer
var traps : Array = []
func _ready() -> void:
for child in trap_container.get_children():
traps.append(child)
func set_traps(trap_list : Array[TrapSet]) -> void:
var tcount = 0
if len(trap_list) != 3:
return
for trap in traps:
trap.setup(trap_list[tcount].type, trap_list[tcount].qty)
tcount+=1
func set_pawn_name(name : String) -> void:
pawn_name.text = name