Feat : add click event
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user