Skip to content

Commit

Permalink
Merge pull request #961 from ben/manual-rolling-autofocus
Browse files Browse the repository at this point in the history
"Manual rolling mode"
  • Loading branch information
ben authored Feb 22, 2024
2 parents 00ad881 + 2c5429d commit 63f16ac
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Next Release

- Extend the new setting into a "manual rolling mode" ([#961](https://github.com/ben/foundry-ironsworn/pull/961))

## 1.22.12

- Add a setting to default the "advanced" rolling options to expanded ([#960](https://github.com/ben/foundry-ironsworn/pull/960))
Expand Down
4 changes: 2 additions & 2 deletions system/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@
"Hint": "If on, changing any character/shared supply tracker changes all other actors' supply trackers as well."
},
"AdvancedRollingOpen": {
"Name": "Advanced Rolling Options Default",
"Hint": "If on, the \"advanced\" section of the roll dialog will default to open."
"Name": "Manual Rolling Mode",
"Hint": "If on, the \"advanced\" section of the roll dialog will default to open, and focus will be set to the first die-roll entry box."
},
"LogChanges": {
"Name": "Log Character Updates",
Expand Down
4 changes: 2 additions & 2 deletions system/templates/rolls/preroll-dialog.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@
{{#if action}}
<fieldset class='form-group'>
<label>{{localize 'IRONSWORN.RollDialog.PresetActionDie'}}</label>
<input type='number' step='1' name='presetActionDieValue' />
<input type='number' step='1' name='presetActionDieValue' {{#if advancedOptionsOpen}}autofocus{{/if}} />
</fieldset>
{{/if}}

<fieldset class='form-group'>
<label>{{localize 'IRONSWORN.RollDialog.PresetChallengeDice'}}</label>
<div class="flexrow" style="gap: var(--ironsworn-spacer-md)">
<input type='number' step='1' name='presetChallengeDie1Value' />
<input type='number' step='1' name='presetChallengeDie1Value' {{#if advancedOptionsOpen}}autofocus{{/if}} />
<input type='number' step='1' name='presetChallengeDie2Value' />
</div>
</fieldset>
Expand Down

0 comments on commit 63f16ac

Please sign in to comment.