Add code support for bold input dice
This commit is contained in:
parent
8bd768ebdc
commit
13ac881809
@ -41,16 +41,22 @@ func update_cardview(new_card = null):
|
|||||||
# set the extra info
|
# set the extra info
|
||||||
var extra_text = ""
|
var extra_text = ""
|
||||||
if card.card_info.addition_dice == true:
|
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:
|
else:
|
||||||
|
# set the dice to have a list of accepted dice
|
||||||
for dice in card.card_info.accepted_dice:
|
for dice in card.card_info.accepted_dice:
|
||||||
extra_text += str(dice) + ", "
|
extra_text += str(dice) + ", "
|
||||||
extra_text = extra_text.trim_suffix(", ")
|
extra_text = extra_text.trim_suffix(", ")
|
||||||
|
|
||||||
for i in input_dice_views:
|
for i in input_dice_views:
|
||||||
i.set_extra_info(extra_text)
|
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)
|
# add an input_dice_view to the array (for easy management)
|
||||||
# and to the autogrid
|
# and to the autogrid
|
||||||
|
Loading…
Reference in New Issue
Block a user