From 13ac8818090fecdd0f2e737d9ee86271ed631376 Mon Sep 17 00:00:00 2001 From: CactiChameleon9 Date: Mon, 25 Jul 2022 20:45:37 +0100 Subject: [PATCH] Add code support for bold input dice --- UI/CardView.gd | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/UI/CardView.gd b/UI/CardView.gd index f95583c..0e73b31 100644 --- a/UI/CardView.gd +++ b/UI/CardView.gd @@ -41,16 +41,22 @@ func update_cardview(new_card = null): # set the extra info var extra_text = "" if card.card_info.addition_dice == true: - extra_text = card.addition_dice_amount + # set the dice to have the remaining addition + extra_text = str(card.addition_dice_amount) else: + # set the dice to have a list of accepted dice for dice in card.card_info.accepted_dice: extra_text += str(dice) + ", " extra_text = extra_text.trim_suffix(", ") for i in input_dice_views: i.set_extra_info(extra_text) - + + # set bold dice if addition dice + for i in input_dice_views: + i.bold = true + # add an input_dice_view to the array (for easy management) # and to the autogrid