ENH: Modifier dialog

master
U~man 2020-07-11 19:21:19 +02:00
parent 765e06debe
commit f4d620dd31
3 changed files with 12 additions and 7 deletions

View File

@ -8,7 +8,7 @@ export class OseCharacterModifiers extends FormApplication {
options.id = 'sheet-modifiers'; options.id = 'sheet-modifiers';
options.template = options.template =
'systems/ose/templates/actors/dialogs/modifiers-dialog.html'; 'systems/ose/templates/actors/dialogs/modifiers-dialog.html';
options.width = 380; options.width = 220;
return options; return options;
} }

View File

@ -31,15 +31,20 @@
.attributes-tab{ .attributes-tab{
justify-content: space-between; justify-content: space-between;
height: 100%; height: 100%;
.attribute-group {
position: relative;
.modifiers-btn {
position: absolute;
left: 0;
top: -5px;
}
}
} }
.resources { .resources {
margin: 20px; margin: 20px;
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
flex-direction: column; flex-direction: column;
.modifiers-btn {
width: 30px;
}
.attribute { .attribute {
flex: 0 0 55px; flex: 0 0 55px;
&.attribute-secondaries { &.attribute-secondaries {

View File

@ -1,6 +1,9 @@
<section class="attributes-tab flexrow"> <section class="attributes-tab flexrow">
{{!-- Scores --}} {{!-- Scores --}}
<div class="attribute-group"> <div class="attribute-group">
<div class="modifiers-btn">
<a data-action="modifiers" title="{{localize 'OSE.Modifiers'}}"><i class="fas fa-book"></i></a>
</div>
<ul class="attributes"> <ul class="attributes">
<li class="attribute ability-score" data-score="str"> <li class="attribute ability-score" data-score="str">
<h4 class="attribute-name box-title" title="{{ localize 'OSE.scores.str.long' }}"> <h4 class="attribute-name box-title" title="{{ localize 'OSE.scores.str.long' }}">
@ -65,9 +68,6 @@
</div> </div>
{{!-- Resource Tracking --}} {{!-- Resource Tracking --}}
<div class="resources"> <div class="resources">
<div class="modifiers-btn">
<a data-action="modifiers" title="{{localize 'OSE.Modifiers'}}"><i class="fas fa-book"></i></a>
</div>
<div class="flexrow"> <div class="flexrow">
<div class="health"> <div class="health">
<input class="health-value health-top" name="data.hp.value" type="text" value="{{data.hp.value}}" <input class="health-value health-top" name="data.hp.value" type="text" value="{{data.hp.value}}"