feat: display text for draw card

This commit is contained in:
2024-05-26 22:28:46 +02:00
parent ba5c35368d
commit 2c4a0278c1
4 changed files with 8 additions and 4 deletions
+5 -1
View File
@@ -142,7 +142,11 @@ for card_data in cards:
# Draw row 1 stats
draw_effects_resources_for_row(dwg, base_effects, row_1_base_y, x_width)
# Draw row 1 text
effect_text_1 = ""
for effect in base_effects:
effect_text_1 = ""
if effect.get('effect') == 'draw':
effect_text_1 = "Piochez une carte."
dwg.add(dwg.text(effect_text_1, insert=(x_width/2, row_1_base_y + 57), text_anchor='middle', fill='black', font_size=str(effect_text_size) + 'px', font_family='Helvetica'))
if other_effects: