2021-06-26 22:02:00 +02:00
|
|
|
{{!--
|
|
|
|
SPDX-FileCopyrightText: 2021 Johannes Loher
|
|
|
|
SPDX-FileCopyrightText: 2021 Oliver Rümpelein
|
|
|
|
|
|
|
|
SPDX-License-Identifier: MIT
|
|
|
|
--}}
|
|
|
|
|
2021-03-17 20:00:36 +01:00
|
|
|
{{!--
|
|
|
|
!-- Render a roll options dialog. It uses the default form classes of Foundry VTT.
|
|
|
|
!-- @param checkTargetNumber: The preselected check target number.
|
|
|
|
!-- @param maximumCoupResult: The preselected maximum coup result.
|
|
|
|
!-- @param minimumFumbleResult: The preselected minimum fumble result.
|
|
|
|
!-- @param rollMode: The preselected roll mode (= chat roll-mode).
|
|
|
|
!-- @param rollModes: A map of all roll modes and their i18n keys.
|
|
|
|
--}}
|
|
|
|
<form class="ds4-roll-options">
|
|
|
|
<div class="form-group">
|
2021-05-13 21:39:42 +02:00
|
|
|
<label for="check-target-number">{{localize "DS4.DialogRollOptionsCheckTargetNumberLabel"}}</label>
|
2021-03-17 20:00:36 +01:00
|
|
|
<input id="check-target-number" data-type="Number" type="number" name="check-target-number"
|
|
|
|
value="{{checkTargetNumber}}" />
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2021-05-13 21:39:42 +02:00
|
|
|
<label for="gm-modifier">{{localize "DS4.DialogRollOptionsGMModifierLabel"}}</label>
|
2021-03-17 20:00:36 +01:00
|
|
|
<input id="gm-modifier" data-type="Number" type="number" name="gm-modifier" value="0" />
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2021-05-13 21:39:42 +02:00
|
|
|
<label for="maximum-coup-result">{{localize "DS4.DialogRollOptionsMaximumCoupResultLabel"}}</label>
|
2021-03-17 20:00:36 +01:00
|
|
|
<input id="maximum-coup-result" data-type="Number" type="number" name="maximum-coup-result"
|
|
|
|
value="{{maximumCoupResult}}" />
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2021-05-13 21:39:42 +02:00
|
|
|
<label for="minimum-fumble-result">{{localize "DS4.DialogRollOptionsMinimumFumbleResultLabel"}}</label>
|
2021-03-17 20:00:36 +01:00
|
|
|
<input id="minimum-fumble-result" data-type="Number" type="number" name="minimum-fumble-result"
|
|
|
|
value="{{minimumFumbleResult}}" />
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2021-05-13 21:39:42 +02:00
|
|
|
<label for="roll-mode">{{localize "DS4.DialogRollOptionsRollModeLabel"}}</label>
|
2021-03-17 20:00:36 +01:00
|
|
|
<div class="form-fields">
|
|
|
|
<select id="roll-mode" name="roll-mode" data-type="String">
|
|
|
|
{{#select rollMode}}
|
|
|
|
{{#each rollModes as |rollModeValue rollModeKey|}}
|
|
|
|
<option value="{{rollModeKey}}">{{localize rollModeValue}}</option>
|
|
|
|
{{/each}}
|
|
|
|
{{/select}}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-03-17 19:23:57 +01:00
|
|
|
</form>
|