Feat : add click event

This commit is contained in:
2024-07-02 11:44:01 +02:00
parent 85d23f4b60
commit e2a0bb5c12
105 changed files with 707 additions and 636 deletions
+2 -2
View File
@@ -83,7 +83,7 @@ for card_data in cards:
# Create a new SVG drawing
output_dir = "output/" + all_skin_data["skin_name"]
os.makedirs(output_dir, exist_ok=True)
d = Drawing(x_width, y_height)
d = Drawing(x_width, y_height, id="card"+str(card_data["id"]))
d.append(shadowFilter)
# Define linear colored gradient
@@ -104,7 +104,7 @@ for card_data in cards:
# Draw card background
background = dw.Group(id="background")
background.append(dw.Rectangle(0, 0, x_width, y_height, rx=15, ry=18, fill="black"))
background.append(dw.Rectangle(0, 0, x_width, y_height, rx=15, ry=18, fill="black", stroke="white", stroke_width=1))
background.append(
dw.Rectangle(
border_width_x,