Get the DicePool to support edge/drag modifications
This commit is contained in:
parent
43fe433900
commit
40ba46fc6b
5 changed files with 126 additions and 5 deletions
28
templates/Apps/DicePool/drag.hbs
Normal file
28
templates/Apps/DicePool/drag.hbs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<div>
|
||||
<rc-border
|
||||
var:border-color="var(--accent-1)"
|
||||
>
|
||||
<div slot="title">
|
||||
{{ rc-i18n "RipCrypt.common.drag" }}
|
||||
</div>
|
||||
<div slot="content">
|
||||
<button
|
||||
type="button"
|
||||
data-action="dragDelta"
|
||||
data-delta="-1"
|
||||
{{#if decrementDisabled}}disabled{{/if}}
|
||||
>
|
||||
-
|
||||
</button>
|
||||
<span>{{drag}}</span>
|
||||
<button
|
||||
type="button"
|
||||
data-action="dragDelta"
|
||||
data-delta="1"
|
||||
{{#if incrementDisabled}}disabled{{/if}}
|
||||
>
|
||||
+
|
||||
</button>
|
||||
</div>
|
||||
</rc-border>
|
||||
</div>
|
||||
28
templates/Apps/DicePool/edge.hbs
Normal file
28
templates/Apps/DicePool/edge.hbs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<div>
|
||||
<rc-border
|
||||
var:border-color="var(--accent-1)"
|
||||
>
|
||||
<div slot="title">
|
||||
{{ rc-i18n "RipCrypt.common.edge" }}
|
||||
</div>
|
||||
<div slot="content">
|
||||
<button
|
||||
type="button"
|
||||
data-action="edgeDelta"
|
||||
data-delta="-1"
|
||||
{{#if decrementDisabled}}disabled{{/if}}
|
||||
>
|
||||
-
|
||||
</button>
|
||||
<span>{{edge}}</span>
|
||||
<button
|
||||
type="button"
|
||||
data-action="edgeDelta"
|
||||
data-delta="not a number"
|
||||
{{#if incrementDisabled}}disabled{{/if}}
|
||||
>
|
||||
+
|
||||
</button>
|
||||
</div>
|
||||
</rc-border>
|
||||
</div>
|
||||
|
|
@ -7,7 +7,6 @@
|
|||
padding: 8px;
|
||||
gap: 8px;
|
||||
width: 250px;
|
||||
height: 185px;
|
||||
}
|
||||
|
||||
--button-background: var(--alt-row-background);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue