RC-72 | Step | Display & Input
This commit is contained in:
parent
cf3cb7357b
commit
e29c5a8cd0
4 changed files with 43 additions and 1 deletions
|
|
@ -60,6 +60,36 @@
|
||||||
{{ level.glory }}
|
{{ level.glory }}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
{{#if meta.editable}}
|
||||||
|
<label
|
||||||
|
for="{{meta.idp}}-step"
|
||||||
|
class="step-label col-header"
|
||||||
|
>
|
||||||
|
{{ rc-i18n "RipCrypt.common.step" }}
|
||||||
|
</label>
|
||||||
|
<input
|
||||||
|
id="{{meta.idp}}-step"
|
||||||
|
type="number"
|
||||||
|
class="step row-alt"
|
||||||
|
name="system.level.step"
|
||||||
|
value="{{level.step}}"
|
||||||
|
min="1"
|
||||||
|
max="3"
|
||||||
|
>
|
||||||
|
{{else}}
|
||||||
|
<div
|
||||||
|
id="{{meta.idp}}-step-label"
|
||||||
|
class="step-label label col-header"
|
||||||
|
>
|
||||||
|
{{ rc-i18n "RipCrypt.common.step" }}
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="step row-alt input"
|
||||||
|
aria-describedby="{{meta.idp}}-step-label"
|
||||||
|
>
|
||||||
|
{{ level.step }}
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{!-- * Weapons --}}
|
{{!-- * Weapons --}}
|
||||||
<table class="weapons">
|
<table class="weapons">
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,15 @@
|
||||||
grid-row: 5 / span 1;
|
grid-row: 5 / span 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.step-label {
|
||||||
|
grid-column: 3 / span 1;
|
||||||
|
grid-row: 4 / span 1;
|
||||||
|
}
|
||||||
|
.step {
|
||||||
|
grid-column: 3 / span 1;
|
||||||
|
grid-row: 5 / span 1;
|
||||||
|
}
|
||||||
|
|
||||||
.fate {
|
.fate {
|
||||||
grid-column: 1 / span 1;
|
grid-column: 1 / span 1;
|
||||||
grid-row: 4 / span 2;
|
grid-row: 4 / span 2;
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,8 @@
|
||||||
"wear": "Wear",
|
"wear": "Wear",
|
||||||
"damage": "Damage",
|
"damage": "Damage",
|
||||||
"guts": "Guts",
|
"guts": "Guts",
|
||||||
"glory": "Glory"
|
"glory": "Glory",
|
||||||
|
"step": "Step"
|
||||||
},
|
},
|
||||||
"setting": {
|
"setting": {
|
||||||
"abbrAccess": {
|
"abbrAccess": {
|
||||||
|
|
|
||||||
|
|
@ -66,9 +66,11 @@ export class HeroSummaryCardV1 extends GenericSheetMixin(HandlebarsApplicationMi
|
||||||
static async prepareLevelData(ctx) {
|
static async prepareLevelData(ctx) {
|
||||||
ctx.level = {
|
ctx.level = {
|
||||||
glory: ctx.actor.system.level.glory,
|
glory: ctx.actor.system.level.glory,
|
||||||
|
step: ctx.actor.system.level.step,
|
||||||
};
|
};
|
||||||
if (ctx.meta.limited) {
|
if (ctx.meta.limited) {
|
||||||
ctx.level.glory = `?`;
|
ctx.level.glory = `?`;
|
||||||
|
ctx.level.step = `?`;
|
||||||
};
|
};
|
||||||
return ctx;
|
return ctx;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue