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
@@ -33,7 +33,7 @@
<image x="0" y="65" width="298" height="200" xlink:href="../../img/missing.png" />
<g transform="translate(12,265)">
<g class="svg_effect">
<g transform="translate(137.0,101.5)" v-bind:class="{used:used_effects_indexes.includes(1)}">
<g transform="translate(137.0,101.5)" class="svg_effect" v-bind:class="{used:used_effects_indexes.includes(1)}" v-on:click="effectClick(1)">
<text x="0" y="-5.5" font-size="11" text-anchor="middle" fill="black" font-family="Helvetica"><tspan x="0" dy="0em">Vous pouvez sacrifier une carte</tspan><tspan x="0" dy="1em">de votre main ou de votre défausse.</tspan></text>
</g>
<g transform="translate(137.0,60.5)" v-bind:class="{used:used_effects_indexes.includes(0)}">

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB