Add powercasting dropdown

This commit is contained in:
TJ 2021-02-16 15:35:03 -06:00
parent d716d514df
commit 08700670f9
3 changed files with 21 additions and 5 deletions

View file

@ -695,6 +695,10 @@
}
}
.powercasting {
text-transform: capitalize;
}
.languages {
grid-column-end: span 1;
label {
@ -982,7 +986,7 @@
}
& > .panel {
grid-template-rows: 56px 32px 24px auto;
grid-template-rows: 64px 32px 24px auto;
}
h3.power-dc {
line-height: 24px;
@ -1083,9 +1087,6 @@
margin-left: auto;
}
}
// section.traits {
// display:block;
// }
}
}
.tab.force-powerbook,

View file

@ -1362,6 +1362,9 @@ input[type="reset"]:disabled {
.sw5e.sheet.actor .swalt-sheet .tab.attributes .traits-resources section.traits .trait-selector i.fas:hover {
text-shadow: none;
}
.sw5e.sheet.actor .swalt-sheet .tab.attributes .traits-resources section.traits .powercasting {
text-transform: capitalize;
}
.sw5e.sheet.actor .swalt-sheet .tab.attributes .traits-resources section.traits .languages {
grid-column-end: span 1;
}
@ -1610,7 +1613,7 @@ input[type="reset"]:disabled {
}
.sw5e.sheet.actor .swalt-sheet .tab.force-powerbook > .panel,
.sw5e.sheet.actor .swalt-sheet .tab.tech-powerbook > .panel {
grid-template-rows: 56px 32px 24px auto;
grid-template-rows: 64px 32px 24px auto;
}
.sw5e.sheet.actor .swalt-sheet .tab.force-powerbook h3.power-dc,
.sw5e.sheet.actor .swalt-sheet .tab.tech-powerbook h3.power-dc {

View file

@ -69,6 +69,18 @@
{{/select}}
</select>
</label>
{{#if isNPC}}
<label>
{{localize "SW5E.Powercasting"}}
<select class="powercasting" name="data.attributes.powercasting">
{{#select data.attributes.powercasting}}
{{#each config.powerMaxLevel as |id class|}}
<option value="{{class}}">{{class}}</option>
{{/each}}
{{/select}}
</select>
</label>
{{/if}}
<label class="{{#unless data.traits.senses}}inactive{{/unless}}">
{{#unless isVehicle}}
<label>{{localize "SW5E.Senses"}}</label>