From 2bcbdcc1f01b95c56df0ac34d8b068f7a26890bd Mon Sep 17 00:00:00 2001 From: Alistair-Afton Date: Fri, 18 Sep 2026 00:33:42 +0200 Subject: [PATCH] gui/create-item: add 0-5 hotkeys to quality prompt Fixes DFHack/dfhack#5770 --- changelog.txt | 1 + gui/create-item.lua | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/changelog.txt b/changelog.txt index 1ed30ae501..1b7683546f 100644 --- a/changelog.txt +++ b/changelog.txt @@ -40,6 +40,7 @@ Template for new versions: ## Misc Improvements - `caravan`: the ``Bring goods to depot``, ``Trade``, and ``Assign items for display`` overlays now allow searching for items with non-ASCII characters in their description - `caravan`: the ``Trade`` overlay will use the trader's appraisal skill instead of the broker's to round/obfuscate the value of items +- `gui/create-item`: add 0-5 hotkeys to the item quality selection prompt ## Removed - `confirm`: removed the ``squad-disband`` and ``hotkey-reset`` confirmations; the game asks for both itself now ("Really disband?" and "Really overwrite") diff --git a/gui/create-item.lua b/gui/create-item.lua index cf5c12a25d..32a0851182 100644 --- a/gui/create-item.lua +++ b/gui/create-item.lua @@ -165,12 +165,12 @@ local function getMatFilter(itemtype, opts) end local function qualityTable() - return { { 'None' }, - { '-Well-crafted-' }, - { '+Finely-crafted+' }, - { '*Superior*' }, - { string.char(240) .. 'Exceptional' .. string.char(240) }, - { string.char(15) .. 'Masterwork' .. string.char(15) }, + return { { 'None', key='STRING_A048' }, + { '-Well-crafted-', key='STRING_A049' }, + { '+Finely-crafted+', key='STRING_A050' }, + { '*Superior*', key='STRING_A051' }, + { string.char(240) .. 'Exceptional' .. string.char(240), key='STRING_A052' }, + { string.char(15) .. 'Masterwork' .. string.char(15), key='STRING_A053' }, } end