RC-73 | Rank | Display & Input
This commit is contained in:
parent
6b88714bfc
commit
7256e9f53b
4 changed files with 40 additions and 1 deletions
|
|
@ -91,6 +91,30 @@
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
<{{{ifThen meta.editable "label" "div"}}}
|
||||||
|
id="{{meta.idp}}-rank-label"
|
||||||
|
for="{{meta.idp}}-rank"
|
||||||
|
class="rank-label label col-header"
|
||||||
|
>
|
||||||
|
{{ rc-i18n "RipCrypt.common.rank" }}
|
||||||
|
</{{{ifThen meta.editable "label" "div"}}}>
|
||||||
|
{{#if meta.editable}}
|
||||||
|
<select
|
||||||
|
id="{{meta.idp}}-rank"
|
||||||
|
name="system.level.rank"
|
||||||
|
class="rank row-alt"
|
||||||
|
>
|
||||||
|
{{ rc-options level.rank.selected level.rank.options }}
|
||||||
|
</select>
|
||||||
|
{{else}}
|
||||||
|
<div
|
||||||
|
aria-describedby="{{meta.idp}}-rank-label"
|
||||||
|
class="rank row-alt input"
|
||||||
|
>
|
||||||
|
{{ level.rank.selected }}
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{!-- * Weapons --}}
|
{{!-- * Weapons --}}
|
||||||
<table class="weapons">
|
<table class="weapons">
|
||||||
<thead>
|
<thead>
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,15 @@
|
||||||
grid-row: 5 / span 1;
|
grid-row: 5 / span 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.rank-label {
|
||||||
|
grid-column: 4 / span 1;
|
||||||
|
grid-row: 4 / span 1;
|
||||||
|
}
|
||||||
|
.rank {
|
||||||
|
grid-column: 4 / 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;
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,8 @@
|
||||||
"damage": "Damage",
|
"damage": "Damage",
|
||||||
"guts": "Guts",
|
"guts": "Guts",
|
||||||
"glory": "Glory",
|
"glory": "Glory",
|
||||||
"step": "Step"
|
"step": "Step",
|
||||||
|
"rank": "Rank"
|
||||||
},
|
},
|
||||||
"setting": {
|
"setting": {
|
||||||
"abbrAccess": {
|
"abbrAccess": {
|
||||||
|
|
|
||||||
|
|
@ -67,10 +67,15 @@ export class HeroSummaryCardV1 extends GenericSheetMixin(HandlebarsApplicationMi
|
||||||
ctx.level = {
|
ctx.level = {
|
||||||
glory: ctx.actor.system.level.glory,
|
glory: ctx.actor.system.level.glory,
|
||||||
step: ctx.actor.system.level.step,
|
step: ctx.actor.system.level.step,
|
||||||
|
rank: {
|
||||||
|
selected: ctx.actor.system.level.rank,
|
||||||
|
options: Object.values(gameTerms.Rank),
|
||||||
|
},
|
||||||
};
|
};
|
||||||
if (ctx.meta.limited) {
|
if (ctx.meta.limited) {
|
||||||
ctx.level.glory = `?`;
|
ctx.level.glory = `?`;
|
||||||
ctx.level.step = `?`;
|
ctx.level.step = `?`;
|
||||||
|
ctx.level.rank.selected = `?`;
|
||||||
};
|
};
|
||||||
return ctx;
|
return ctx;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue