Add functionality for randomly picking a difficulty
This commit is contained in:
parent
31033017f7
commit
39ba3fd547
3 changed files with 37 additions and 11 deletions
|
|
@ -8,9 +8,21 @@
|
|||
<div slot="content">
|
||||
<span>{{ difficulty }}</span>
|
||||
{{#if meta.editable}}
|
||||
<select id="{{meta.idp}}-difficulty">
|
||||
{{ rc-options difficulty options localize=true }}
|
||||
</select>
|
||||
<div class="row">
|
||||
<select id="{{meta.idp}}-difficulty">
|
||||
{{ rc-options difficulty options localize=true }}
|
||||
</select>
|
||||
<button
|
||||
type="button"
|
||||
data-action="randomCondition"
|
||||
>
|
||||
<rc-icon
|
||||
name="icons/roll"
|
||||
var:size="20px"
|
||||
var:fill="var(--accent-3)"
|
||||
></rc-icon>
|
||||
</button>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</rc-border>
|
||||
|
|
|
|||
|
|
@ -10,4 +10,9 @@
|
|||
background: var(--base-background);
|
||||
padding: 4px;
|
||||
};
|
||||
|
||||
.row {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue