Add grenade counter
This commit is contained in:
BIN
public/counter_grenade.jpg
Normal file
BIN
public/counter_grenade.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.5 KiB |
BIN
public/icon_grenade.png
Normal file
BIN
public/icon_grenade.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.2 KiB |
@@ -167,8 +167,10 @@
|
||||
<button type="button" class="set-firing-arc" data-size="large">
|
||||
<img src="firing_arc_large.png" height="12" /> 6 MP
|
||||
</button>
|
||||
<br>
|
||||
Prone: <input type="checkbox" id="toggle-prone-counter" />
|
||||
<button type="button" class="set-grenade">
|
||||
<img src="icon_grenade.png" height="12" />
|
||||
</button>
|
||||
Turn:
|
||||
<span id="turn-count" data-update="0">
|
||||
<span name="count">0</span>
|
||||
|
||||
@@ -86,6 +86,10 @@ g.troop-counter-template text {
|
||||
transform: translate(-5px, 6px);
|
||||
}
|
||||
|
||||
[href="#counter-grenade"] {
|
||||
transform: translate(-5px, -5px);
|
||||
}
|
||||
|
||||
g#points g use.counter {
|
||||
r: 5px;
|
||||
}
|
||||
|
||||
@@ -21,7 +21,8 @@
|
||||
<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>
|
||||
|
||||
<image id="counter-prone" href="counter_prone.jpg" width="10px"/>
|
||||
<image id="counter-prone" href="counter_prone.jpg" width="10"/>
|
||||
<image id="counter-grenade" href="counter_grenade.jpg" width="10"/>
|
||||
<image id="numbers" href="rendered_numbers.png" width="182" height="22"/>
|
||||
|
||||
<symbol id="n1" viewBox="1 0 17 22" width="17" height="22"><use href="#numbers"/></symbol>
|
||||
@@ -72,7 +73,7 @@
|
||||
</g>
|
||||
<g data-y="0">
|
||||
<g data-x="0"><use href="#hex"/><use class="counter" href="#t-1" data-allegiance="liao" data-number="1"/></g>
|
||||
<g data-x="1"><use href="#hex"/></g>
|
||||
<g data-x="1"><use href="#hex"/><use href="#counter-grenade"/></g>
|
||||
<g data-x="2"><use href="#hex"/></g>
|
||||
<g data-x="3"><use href="#hex"/></g>
|
||||
<g data-x="4"><use href="#hex"/></g>
|
||||
|
||||
|
Before Width: | Height: | Size: 81 KiB After Width: | Height: | Size: 81 KiB |
Reference in New Issue
Block a user