Add functionality to the CryptApp to make it update/display the current difficulty, and rerender when it changes.

This commit is contained in:
Oliver-Akins 2025-02-01 22:18:53 -07:00
parent 495dafaf12
commit 31033017f7
11 changed files with 125 additions and 11 deletions

View file

@ -0,0 +1,17 @@
<div>
<rc-border
var:border-color="var(--accent-1)"
>
<div slot="title">
Difficulty
</div>
<div slot="content">
<span>{{ difficulty }}</span>
{{#if meta.editable}}
<select id="{{meta.idp}}-difficulty">
{{ rc-options difficulty options localize=true }}
</select>
{{/if}}
</div>
</rc-border>
</div>

View file

@ -0,0 +1,12 @@
<div>
<rc-border
var:border-color="var(--accent-1)"
>
<div slot="title">
Fate
</div>
<div slot="content">
N
</div>
</rc-border>
</div>

View file

@ -1,3 +0,0 @@
<div>
Hello
</div>

View file

@ -0,0 +1,13 @@
.ripcrypt.ripcrypt--CryptApp {
max-width: initial;
min-width: initial;
> .window-header .window-title {
text-align: center;
}
> .window-content {
background: var(--base-background);
padding: 4px;
};
}

View file

@ -0,0 +1,12 @@
<div>
<rc-border
var:border-color="var(--accent-1)"
>
<div slot="title">
Turn
</div>
<div slot="content">
1
</div>
</rc-border>
</div>