localised resources and remaining scenes

This commit is contained in:
2025-08-21 18:41:32 +10:00
parent 2859b6dd43
commit 57a57d2b91
38 changed files with 484 additions and 129 deletions

View File

@@ -13,7 +13,7 @@ var stats: Card
func set_card(value: Card) -> void:
stats = value
title_text.text = stats.display_name
target_label.text = str(Data.TargetType.keys()[stats.tower_stats.target_type])
target_label.text = "replace me"
rarity_sprite.region_rect = Rect2(64 * stats.rarity, 0, 64, 64)
energy_cost.text = str(value.cost)
@@ -22,8 +22,7 @@ func process_card_text(card_text: CardText) -> String:
var processed_string: String = card_text.text
for stat: StatAttribute in card_text.attributes:
processed_string = processed_string.replace(stat.key, str(stat.value))
processed_string = processed_string.replace("/", "[color=red]")
processed_string = processed_string.replace("\\", "[color=black]")
processed_string = processed_string.replace("%", "")
return processed_string
@@ -34,4 +33,4 @@ func view_weapon() -> void:
func view_tower() -> void:
description.text = process_card_text(stats.tower_stats)
target_label.text = str(Data.TargetType.keys()[stats.tower_stats.target_type])
target_label.text = str("go fuck yourself")