Skip to content

Commit

Permalink
fix message display for hotkey zoom confirm spec
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Jun 13, 2024
1 parent d207453 commit 9144671
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Template for new versions:
- `gui/sandbox`: created undead now have a purple shade (after save and reload)
- `caravan`: fix errors in trade dialog if all fort items are traded away while the trade dialog is showing fort items and the `confirm` trade confirmation is shown
- `control-panel`: restore non-default values of per-save enabled/disabled settings for repeat-based commands
- `confirm`: fix confirmation prompt for overwriting a hotkey zoom location

## Misc Improvements
- `gui/launcher`: "space space to toggle pause" behavior is skipped if the game was paused when `gui/launcher` came up to prevent accidental unpausing
Expand Down
3 changes: 2 additions & 1 deletion confirm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ local dialogs = require('gui.dialogs')
local gui = require('gui')
local overlay = require('plugins.overlay')
local specs = reqscript('internal/confirm/specs')
local utils = require('utils')
local widgets = require("gui.widgets")

------------------------
Expand Down Expand Up @@ -129,7 +130,7 @@ function ConfirmOverlay:onInput(keys)
gui.simulateInput(scr, keys)
self.simulating = false
end
dialogs.showYesNoPrompt(conf.title, conf.message:wrap(45), COLOR_YELLOW,
dialogs.showYesNoPrompt(conf.title, utils.getval(conf.message):wrap(45), COLOR_YELLOW,
propagate_fn, nil, curry(propagate_fn, true), curry(dfhack.run_script, 'gui/confirm', tostring(conf.id)))
return true
end
Expand Down

0 comments on commit 9144671

Please sign in to comment.