RC-29 | Abilities | Editing
This commit is contained in:
parent
07ad74822f
commit
9f0fea1467
5 changed files with 22 additions and 6 deletions
|
|
@ -23,7 +23,11 @@
|
||||||
{{!-- * Fate & Advancement --}}
|
{{!-- * Fate & Advancement --}}
|
||||||
<div class="fate">
|
<div class="fate">
|
||||||
<label for="{{meta.idp}}-fate-path" class="col-header">Fate</label>
|
<label for="{{meta.idp}}-fate-path" class="col-header">Fate</label>
|
||||||
<select class="row-alt" id="{{meta.idp}}-fate-path" name="system.fate">
|
<select
|
||||||
|
class="row-alt"
|
||||||
|
id="{{meta.idp}}-fate-path"
|
||||||
|
name="system.fate"
|
||||||
|
>
|
||||||
{{rc-options fate.selected fate.options localize=true}}
|
{{rc-options fate.selected fate.options localize=true}}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -40,7 +44,9 @@
|
||||||
<input
|
<input
|
||||||
type="number"
|
type="number"
|
||||||
id="{{@root.meta.idp}}-{{ability.id}}-input"
|
id="{{@root.meta.idp}}-{{ability.id}}-input"
|
||||||
|
class="value"
|
||||||
value="{{ability.value}}"
|
value="{{ability.value}}"
|
||||||
|
name="system.ability.{{ability.id}}"
|
||||||
>
|
>
|
||||||
{{else}}
|
{{else}}
|
||||||
<span>{{ability.value}}</span>
|
<span>{{ability.value}}</span>
|
||||||
|
|
|
||||||
|
|
@ -85,8 +85,10 @@
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
|
|
||||||
> input {
|
> .value {
|
||||||
width: 75%;
|
background: none;
|
||||||
|
width: 70%;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,10 @@
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
background: none;
|
||||||
|
|
||||||
&[type="text"] {
|
&[type="text"],
|
||||||
|
&[type="number"] {
|
||||||
border-bottom: 2px dashed purple;
|
border-bottom: 2px dashed purple;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,12 @@
|
||||||
"East": "East",
|
"East": "East",
|
||||||
"South": "South",
|
"South": "South",
|
||||||
"West": "West"
|
"West": "West"
|
||||||
|
},
|
||||||
|
"ability": {
|
||||||
|
"grit": "Grit",
|
||||||
|
"gait": "Gait",
|
||||||
|
"grip": "Grip",
|
||||||
|
"glim": "Glim"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -79,11 +79,11 @@ export class HeroSummaryCardV1 extends HandlebarsApplicationMixin(ActorSheetV2)
|
||||||
{ value: ctx.actor.system.ability[key] },
|
{ value: ctx.actor.system.ability[key] },
|
||||||
),
|
),
|
||||||
value: ctx.actor.system.ability[key],
|
value: ctx.actor.system.ability[key],
|
||||||
readonly: true,
|
readonly: !this.isEditable,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
return ctx;
|
return ctx;
|
||||||
}
|
};
|
||||||
// #endregion
|
// #endregion
|
||||||
|
|
||||||
// #region Actions
|
// #region Actions
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue