Extensive work on virtually all of the visuals and the net code

This commit is contained in:
2026-03-01 21:26:31 -05:00
parent e7570c78c3
commit bed068eafc
180 changed files with 46533 additions and 913 deletions

View File

@@ -1,23 +1,23 @@
class_name PawnDisplay extends Panel
@onready var pawn_name : Label = %PawnName
@onready var trap_container : HBoxContainer = %TrapContainer
@onready var hack_container : HBoxContainer = %HackContainer
@onready var portrait : TextureRect = $Portrait
@onready var portrait_blinder : TextureRect = $PortraitBlinder
var traps : Array = []
var hacks : Array = []
var swap_portrait_tween : Tween = null
func _ready() -> void:
for child in trap_container.get_children():
traps.append(child)
for child in hack_container.get_children():
hacks.append(child)
func set_traps(trap_list : Array[TrapSet]) -> void:
var tcount = 0
if len(trap_list) != 3:
func set_hacks(hack_list : Array[HackSet]) -> void:
var hcount = 0
if len(hack_list) != 3:
return
for trap in traps:
trap.setup(trap_list[tcount].type, trap_list[tcount].qty)
tcount+=1
for hack in hacks:
hack.setup(hack_list[hcount].type, hack_list[hcount].qty)
hcount+=1
func set_portrait(picture : Texture2D) -> void:
if swap_portrait_tween != null and swap_portrait_tween.is_running():