Feat : add onclick event for text

This commit is contained in:
2024-07-07 17:17:20 +02:00
parent 5c8ad7b906
commit 174253cf4d
74 changed files with 91 additions and 89 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
"13": {
"title": "Caprisun",
"flavor_text_type": "20cl",
"image_path": "lancersiz3.png"
"image_path": "../../img/skins/heron/013.png"
}
}
+3 -1
View File
@@ -332,7 +332,9 @@ def create_effect_row(effects: list[Effect], type: str, height: int, width: int)
create_effect_text(effect_with_text, text_height, text_width),
transform=f"translate({width / 2},{text_y_pos})",
**{
"v-bind:class": f"{{used:used_effects_indexes.includes({effect_with_text[0].get('index')})}}"
"class": "svg_effect",
"v-bind:class": f"{{used:used_effects_indexes.includes({effect_with_text[0].get('index')})}}",
"v-on:click": js_event_function(effect_with_text[0].get("index")),
},
)
)