1 Commits
Author SHA1 Message Date
Erzangel 2e9b8a0e1e feat(wip): draw flavor text in a placeholder spot
release-tag / release-image (push) Successful in 11s
2024-08-03 12:23:06 +02:00
2 changed files with 16 additions and 0 deletions
+2
View File
@@ -19,6 +19,7 @@
"4": {
"title": "Saki, Pégase de Guerre",
"flavor_text_type": "Cowboy",
"flavor_text_bottom": "Howdy!",
"image_path": "../../img/skins/heron/004.png"
},
"5": {
@@ -204,6 +205,7 @@
"41": {
"title": "Battler, Maître du jeu",
"flavor_text_type": "Sorcier Infini",
"flavor_text_bottom": "Please excuse my dope ass swag",
"image_path": "../../img/skins/heron/041.png"
},
"42": {
+14
View File
@@ -244,6 +244,20 @@ for card_data in cards:
)
)
# If it has a flavor text, draw flavor text
if "flavor_text_bottom" in card_skin_data:
d.append(
dw.Text(
text='"' + card_skin_data["flavor_text_bottom"] + '"',
font_size=8,
x=x_width/2,
y=y_height-20,
text_anchor="middle",
fill="black",
font_family="Helvetica",
)
)
# If champion, draw champion shield with defense
if card_data["card_type"] == "champion":
shield = draw_champion_shield(card_data, border_width_x)