localised resources and remaining scenes
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user