fixed reset breaking point button handler finally

This commit is contained in:
Nick Eimers
2020-06-20 20:50:38 -07:00
parent 1e6ff8acde
commit 4e3ccb741a
3 changed files with 15 additions and 7 deletions
+1 -1
View File
@@ -254,7 +254,7 @@
text-align: right;
}
.deltagreen button.btn-tiny{
button.btn-tiny{
height: 26px;
margin-left: 5px;
margin-right: 5px;
+3 -2
View File
@@ -122,8 +122,9 @@ export class DeltaGreenActorSheet extends ActorSheet {
}
// Custom Sheet Macros
html.find('#btnResetBreakingPoint').click(this._resetBreakingPoint.bind(this));
//html.find('.sanity-test-btn').click(this._onSanityTest.bind(this));
html.find('#btnResetBreakingPoint').click((event) => {
this._resetBreakingPoint(this);
});
}
/**
+11 -4
View File
@@ -55,10 +55,17 @@
from 1 to 12 and will create that number of columns. --}}
<div class="statistics grid grid-3col">
{{#each data.statistics as |statistic key|}}
<div class="statistic flexrow flex-group-center">
<label class="rollable" data-roll="d100" data-target="statistic.x5" data-label="{{key}}" title="Click to roll a x5 check." for="data.statistics.{{key}}.value" class="resource-label">{{toUpperCase key}}</label>
<input type="text" name="data.statistics.{{key}}.value" value="{{statistic.value}}" data-dtype="Number"/>
<span class="statistic-mod">({{numberFormat statistic.x5 decimals=0 sign=false}}%)</span>
<div class="statistic flexrow flex-group-center" style="flex-direction: column; clear:both;">
<div class="grid">
<div class="flexrow">
<label class="rollable" data-roll="d100" data-target="statistic.x5" data-label="{{key}}" title="Click to roll a x5 check." for="data.statistics.{{key}}.value" class="resource-label">{{toUpperCase key}}</label>
<input type="text" name="data.statistics.{{key}}.value" value="{{statistic.value}}" data-dtype="Number"/>
<span class="statistic-mod">({{numberFormat statistic.x5 decimals=0 sign=false}}%)</span>
</div>
<div class="flexrow">
<input type="text" name="data.statistics.{{key}}.distinguishing_feature" value="{{statistic.distinguishing_feature}}" data-dtype="Text"/>
</div>
</div>
</div>
{{/each}}
</div>