feat(wip): draw flavor text in a placeholder spot
release-tag / release-image (push) Successful in 11s
release-tag / release-image (push) Successful in 11s
This commit is contained in:
@@ -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": {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user