Add functionality to the CryptApp to make it update/display the current difficulty, and rerender when it changes.
This commit is contained in:
parent
495dafaf12
commit
31033017f7
11 changed files with 125 additions and 11 deletions
17
templates/Apps/CryptApp/delveConditions.hbs
Normal file
17
templates/Apps/CryptApp/delveConditions.hbs
Normal 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>
|
||||
12
templates/Apps/CryptApp/fate.hbs
Normal file
12
templates/Apps/CryptApp/fate.hbs
Normal 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>
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
<div>
|
||||
Hello
|
||||
</div>
|
||||
13
templates/Apps/CryptApp/style.css
Normal file
13
templates/Apps/CryptApp/style.css
Normal 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;
|
||||
};
|
||||
}
|
||||
12
templates/Apps/CryptApp/turnCount.hbs
Normal file
12
templates/Apps/CryptApp/turnCount.hbs
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue