Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-05-29 18:02:18 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-05-29 18:02:18 -0700
commit187faec2dfb7959c536d6847a61be912cff9275e (patch)
tree2875104e6f5c33912dd6cfffb0c36d2982d702ad /public/assets/images/scenario-side_show.svg
parentfdf9e0145ee14d4db7004c56d0e5b15cb3461e2d (diff)
Try to simplify trooper counter
Diffstat (limited to 'public/assets/images/scenario-side_show.svg')
-rw-r--r--public/assets/images/scenario-side_show.svg136
1 files changed, 107 insertions, 29 deletions
diff --git a/public/assets/images/scenario-side_show.svg b/public/assets/images/scenario-side_show.svg
index f18e689..543475e 100644
--- a/public/assets/images/scenario-side_show.svg
+++ b/public/assets/images/scenario-side_show.svg
@@ -25,7 +25,6 @@
</style>
<defs>
<polygon id="hex" points="0,10 8.66,5 8.66,-5 0,-10 -8.66,-5 -8.66,5"/>
- <circle id="counter-base" cx="0" cy="0" r="5"/>
<line id="ast-line" x1="-1.2" y1="0" x2="1.2" y2="0"/>
@@ -45,13 +44,36 @@
<use x="-8.66" style="transform-origin: -8.66px 0;" class="ccw-60-deg" href="#ast-line"/>
</pattern>
- <g id="t-1" class="troop-counter-template"><use href="#counter-base"/><text>1</text></g>
- <g id="t-2" class="troop-counter-template"><use href="#counter-base"/><text>2</text></g>
- <g id="t-3" class="troop-counter-template"><use href="#counter-base"/><text>3</text></g>
- <g id="t-4" class="troop-counter-template"><use href="#counter-base"/><text>4</text></g>
- <g id="t-5" class="troop-counter-template"><use href="#counter-base"/><text>5</text></g>
- <g id="t-6" class="troop-counter-template"><use href="#counter-base"/><text>6</text></g>
- <g id="t-7" class="troop-counter-template"><use href="#counter-base"/><text>7</text></g>
+ <circle id="counter-base" style="r: inherit;" cx="0" cy="0" r="5"/>
+
+ <g style="r: inherit;" id="number-1">
+ <use style="r: inherit;" href="#counter-base"/>
+ <text style="fill: var(--text-fill); transform: translateY(var(--translateY))">1</text>
+ </g>
+ <g style="r: inherit;" id="number-2">
+ <use style="r: inherit;" href="#counter-base"/>
+ <text style="fill: var(--text-fill); transform: translateY(var(--translateY))">2</text>
+ </g>
+ <g style="r: inherit;" id="number-3">
+ <use style="r: inherit;" href="#counter-base"/>
+ <text style="fill: var(--text-fill); transform: translateY(var(--translateY))">3</text>
+ </g>
+ <g style="r: inherit;" id="number-4">
+ <use style="r: inherit;" href="#counter-base"/>
+ <text style="fill: var(--text-fill); transform: translateY(var(--translateY))">4</text>
+ </g>
+ <g style="r: inherit;" id="number-5">
+ <use style="r: inherit;" href="#counter-base"/>
+ <text style="fill: var(--text-fill); transform: translateY(var(--translateY))">5</text>
+ </g>
+ <g style="r: inherit;" id="number-6">
+ <use style="r: inherit;" href="#counter-base"/>
+ <text style="fill: var(--text-fill); transform: translateY(var(--translateY))">6</text>
+ </g>
+ <g style="r: inherit;" id="number-7">
+ <use style="r: inherit;" href="#counter-base"/>
+ <text style="fill: var(--text-fill); transform: translateY(var(--translateY))">7</text>
+ </g>
<g id="semi-auto">
<line x1="-2" y1="1" x2="2" y2="1"/>
@@ -64,19 +86,22 @@
<line x1="-2" y1="2" x2="2" y2="2"/>
</g>
- <g id="rifle" class="weapon-symbol">
+ <g id="rifle" style="r: inherit;" class="weapon-symbol">
+ <use style="r: inherit;" href="#counter-base"/>
<use href="#semi-auto"/>
<line x1="0" y1="-5" x2="0" y2="5"/>
- <polyline points="-2,-3.5 0,-5 2,-3.5"/>
+ <polyline style="fill: none;" points="-2,-3.5 0,-5 2,-3.5"/>
</g>
- <g id="smg" class="weapon-symbol">
+ <g id="smg" style="r: inherit;" class="weapon-symbol">
+ <use style="r: inherit;" href="#counter-base"/>
<use href="#auto"/>
<line x1="0" y1="-5" x2="0" y2="4.5"/>
<line x1="-2" y1="4.5" x2="2" y2="4.5"/>
</g>
- <g id="blazer" class="weapon-symbol">
+ <g id="blazer" style="r: inherit;" class="weapon-symbol">
+ <use style="r: inherit;" href="#counter-base"/>
<use href="#auto"/>
<polyline points="0,-5 0,-3 -3,-2.5 3,-1.5 0,-1 0,2.5 -3,3, 3,4 0,4.5 0,5"/>
<polyline points="-2,-3.5 0,-5 2,-3.5"/>
@@ -114,51 +139,104 @@
<g class="start-locations" data-attacker-name="liao" data-defender-name="davion">
<g data-edge="north">
<g data-x="13">
- <g class="counter" data-allegiance="attacker" data-number="1">
- <use href="#counter-base"/><use class="troop-number" href="#t-1"/><use class="squad-number" href="#t-1"/><use class="primary-weapon" href="#rifle"/>
- <!-- <use data-href="counters.svg#rifle"/><use class="troop-number" href="#t-1"/><use class="squad-number" href="#t-1"/> -->
+ <g class="counter selected" data-allegiance="attacker" data-number="1">
+ <use class="primary-weapon" href="#blazer"/>
+ <use class="troop-number" href="#number-1"/>
+ <use class="squad-number" href="#number-1"/>
</g>
</g>
<g data-x="14">
- <g class="counter" data-allegiance="attacker" data-number="2"><use href="#counter-base"/><use class="troop-number" href="#t-2"/><use class="squad-number" href="#t-1"/><use class="primary-weapon" href="#rifle"/></g>
+ <g class="counter" data-allegiance="attacker" data-number="2">
+ <use class="primary-weapon" href="#rifle"/>
+ <use class="troop-number" href="#number-2"/>
+ <use class="squad-number" href="#number-1"/>
+ </g>
</g>
<g data-x="15">
- <g class="counter" data-allegiance="attacker" data-number="3"><use href="#counter-base"/><use class="troop-number" href="#t-3"/><use class="squad-number" href="#t-1"/><use class="primary-weapon" href="#smg"/></g>
+ <g class="counter" data-allegiance="attacker" data-number="3">
+ <use class="primary-weapon" href="#rifle"/>
+ <use class="troop-number" href="#number-3"/>
+ <use class="squad-number" href="#number-1"/>
+ </g>
</g>
<g data-x="16">
- <g class="counter" data-allegiance="attacker" data-number="4"><use href="#counter-base"/><use class="troop-number" href="#t-4"/><use class="squad-number" href="#t-1"/><use class="primary-weapon" href="#smg"/></g>
+ <g class="counter" data-allegiance="attacker" data-number="4">
+ <use class="primary-weapon" href="#smg"/>
+ <use class="troop-number" href="#number-4"/>
+ <use class="squad-number" href="#number-1"/>
+ </g>
</g>
<g data-x="17">
- <g class="counter" data-allegiance="attacker" data-number="5"><use href="#counter-base"/><use class="troop-number" href="#t-5"/><use class="squad-number" href="#t-1"/><use class="primary-weapon" href="#smg"/></g>
+ <g class="counter" data-allegiance="attacker" data-number="5">
+ <use class="primary-weapon" href="#smg"/>
+ <use class="troop-number" href="#number-5"/>
+ <use class="squad-number" href="#number-1"/>
+ </g>
</g>
<g data-x="18">
- <g class="counter" data-allegiance="attacker" data-number="6"><use href="#counter-base"/><use class="troop-number" href="#t-6"/><use class="squad-number" href="#t-1"/><use class="primary-weapon" href="#smg"/></g>
+ <g class="counter" data-allegiance="attacker" data-number="6">
+ <use class="primary-weapon" href="#smg"/>
+ <use class="troop-number" href="#number-6"/>
+ <use class="squad-number" href="#number-1"/>
+ </g>
</g>
<g data-x="19">
- <g class="counter" data-allegiance="attacker" data-number="7"><use href="#counter-base"/><use class="troop-number" href="#t-7"/><use class="squad-number" href="#t-1"/><use class="primary-weapon" href="#blazer"/></g>
+ <g class="counter" data-allegiance="attacker" data-number="7">
+ <use class="primary-weapon" href="#smg"/>
+ <use class="troop-number" href="#number-7"/>
+ <use class="squad-number" href="#number-1"/>
+ </g>
</g>
</g>
<g data-edge="south">
<g data-x="13">
- <g class="counter" data-allegiance="defender" data-number="1"><use href="#counter-base"/><use class="troop-number" href="#t-1"/><use class="squad-number" href="#t-1"/><use class="primary-weapon" href="#rifle"/></g>
+ <g class="counter" data-allegiance="defender" data-number="1">
+ <use class="primary-weapon" href="#blazer"/>
+ <use class="troop-number" href="#number-1"/>
+ <use class="squad-number" href="#number-1"/>
+ </g>
</g>
<g data-x="14">
- <g class="counter" data-allegiance="defender" data-number="2"><use href="#counter-base"/><use class="troop-number" href="#t-2"/><use class="squad-number" href="#t-1"/><use class="primary-weapon" href="#rifle"/></g>
+ <g class="counter" data-allegiance="defender" data-number="2">
+ <use class="primary-weapon" href="#rifle"/>
+ <use class="troop-number" href="#number-2"/>
+ <use class="squad-number" href="#number-1"/>
+ </g>
</g>
<g data-x="15">
- <g class="counter" data-allegiance="defender" data-number="3"><use href="#counter-base"/><use class="troop-number" href="#t-3"/><use class="squad-number" href="#t-1"/><use class="primary-weapon" href="#smg"/></g>
+ <g class="counter" data-allegiance="defender" data-number="3">
+ <use class="primary-weapon" href="#rifle"/>
+ <use class="troop-number" href="#number-3"/>
+ <use class="squad-number" href="#number-1"/>
+ </g>
</g>
<g data-x="16">
- <g class="counter" data-allegiance="defender" data-number="4"><use href="#counter-base"/><use class="troop-number" href="#t-4"/><use class="squad-number" href="#t-1"/><use class="primary-weapon" href="#smg"/></g>
+ <g class="counter" data-allegiance="defender" data-number="4">
+ <use class="primary-weapon" href="#smg"/>
+ <use class="troop-number" href="#number-4"/>
+ <use class="squad-number" href="#number-1"/>
+ </g>
</g>
<g data-x="17">
- <g class="counter" data-allegiance="defender" data-number="5"><use href="#counter-base"/><use class="troop-number" href="#t-5"/><use class="squad-number" href="#t-1"/><use class="primary-weapon" href="#smg"/></g>
+ <g class="counter" data-allegiance="defender" data-number="5">
+ <use class="primary-weapon" href="#smg"/>
+ <use class="troop-number" href="#number-5"/>
+ <use class="squad-number" href="#number-1"/>
+ </g>
</g>
<g data-x="18">
- <g class="counter" data-allegiance="defender" data-number="6"><use href="#counter-base"/><use class="troop-number" href="#t-6"/><use class="squad-number" href="#t-1"/><use class="primary-weapon" href="#smg"/></g>
+ <g class="counter" data-allegiance="defender" data-number="6">
+ <use class="primary-weapon" href="#smg"/>
+ <use class="troop-number" href="#number-6"/>
+ <use class="squad-number" href="#number-1"/>
+ </g>
</g>
<g data-x="19">
- <g class="counter" data-allegiance="defender" data-number="7"><use href="#counter-base"/><use class="troop-number" href="#t-7"/><use class="squad-number" href="#t-1"/><use class="primary-weapon" href="#blazer"/></g>
+ <g class="counter" data-allegiance="defender" data-number="7">
+ <use class="primary-weapon" href="#smg"/>
+ <use class="troop-number" href="#number-7"/>
+ <use class="squad-number" href="#number-1"/>
+ </g>
</g>
</g>
</g>
@@ -1952,6 +2030,6 @@
</g>
</g>
<!-- <script href="http://localhost:8080/map.js"/> -->
- <script href="../../import_mapsheets.js"/>
+ <script href="../../import_external_resources.js"/>
<script href="../../map.js"/>
</svg>