From 7b31c998de911fb328f75a0171ba950a6aeefab6 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Sun, 14 Aug 2022 17:41:03 +0200 Subject: [PATCH] Specify custom recipe type in UI --- src/gui.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui.lua b/src/gui.lua index db2e851..8e8b7f3 100644 --- a/src/gui.lua +++ b/src/gui.lua @@ -1104,8 +1104,9 @@ local function get_rcp_lbl(fs, data, panel, rn, is_recipe) local rcp = is_recipe and panel.rcp[data.rnum] or panel.rcp[data.unum] if rcp.custom then - hypertext(data.inv_width + 4.8, data.yoffset + 0.12, 3, 0.6, "custom_rcp", - fmt("%s", ES"Custom recipe")) + local desc = i3.craft_types[rcp.type].description + hypertext(data.inv_width + 4.8, data.yoffset + 0.12, 3, 1, "custom_rcp", + fmt("%s\n%s", ES"Custom recipe", desc)) end local lbl = ES("Usage @1 of @2", data.unum, rn)