Feat : add onclick event for text
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
"13": {
|
||||
"title": "Caprisun",
|
||||
"flavor_text_type": "20cl",
|
||||
"image_path": "lancersiz3.png"
|
||||
"image_path": "../../img/skins/heron/013.png"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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")),
|
||||
},
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user