From 615af9f078510cc5fe8b33a4c3db29fc35fe6743 Mon Sep 17 00:00:00 2001 From: Alistair-Afton Date: Tue, 15 Sep 2026 03:05:22 +0200 Subject: [PATCH 1/2] gui/create-item: add 0-5 hotkeys to the quality selection prompt The quality prompt had no keybindings, forcing arrow-key selection. Digits 0-5 now map to the six quality levels. implements DFHack/dfhack#5770 --- changelog.txt | 1 + gui/create-item.lua | 13 +++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/changelog.txt b/changelog.txt index b492b6d2ec..4feb2b385d 100644 --- a/changelog.txt +++ b/changelog.txt @@ -29,6 +29,7 @@ Template for new versions: ## New Tools ## New Features +- `gui/create-item`: quality selection prompt now has 0-5 hotkeys matching the quality levels ## Fixes - `bodyswap`: fix "invalid argument count" when the target unit has no nemesis record diff --git a/gui/create-item.lua b/gui/create-item.lua index cf5c12a25d..cc58855a7e 100644 --- a/gui/create-item.lua +++ b/gui/create-item.lua @@ -165,12 +165,13 @@ 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) }, + -- number the options 0-5 to match the item_quality enum + 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 From c24c3be29a0f9d59e5e1d7be219ea5aa3d435f70 Mon Sep 17 00:00:00 2001 From: Alistair-Afton Date: Tue, 15 Sep 2026 04:58:17 +0200 Subject: [PATCH 2/2] gui/create-item: document quality digit hotkeys --- docs/gui/create-item.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/gui/create-item.rst b/docs/gui/create-item.rst index 580dec5f1d..0d0f974bc7 100644 --- a/docs/gui/create-item.rst +++ b/docs/gui/create-item.rst @@ -7,7 +7,9 @@ gui/create-item This tool provides a graphical interface for creating items of your choice. It walks you through the creation process with a series of prompts, asking you -for the type of item, the material, the quality, and the quantity. +for the type of item, the material, the quality, and the quantity. At the +quality prompt, you can also press ``0``-``5`` to select a quality level +directly. If a unit is selected, that unit will be designated the creator of the summoned items. Any item with a "sized for" property, like armor, will be created for