From aedded02409466d5275e0ec009cc761c7bc3a322 Mon Sep 17 00:00:00 2001 From: Buurazu Date: Sun, 18 Sep 2022 02:15:32 -0400 Subject: [PATCH] add option to disable BoC hotkey text --- eid_bagofcrafting.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/eid_bagofcrafting.lua b/eid_bagofcrafting.lua index 4e3ceb65..7002e245 100644 --- a/eid_bagofcrafting.lua +++ b/eid_bagofcrafting.lua @@ -733,6 +733,7 @@ local ControllerToString = { [0] = "{{ButtonDLeft}}", "{{ButtonDRight}}", "{{But "{{ButtonRB}}", "{{ButtonRT}}", "{{ButtonRStick}}", "{{ButtonSelect}}", "{{ButtonMenu}}" } local function getHotkeyString() + if (not EID.Config["BagOfCraftingShowControls"]) then return "" end local hotkeyString = "" local hideDesc = EID:getDescriptionEntry("CraftingHideKey") local previewDesc = EID:getDescriptionEntry("CraftingPreviewKey") @@ -1162,8 +1163,10 @@ function EID:handleBagOfCraftingRendering(ignoreRefreshRate) prevDesc = prevDesc .. getHotkeyString() prevDesc = prevDesc .. getFloorItemsString(true, roomItems) - local resultDesc = EID:getDescriptionEntry("CraftingResults") - prevDesc = prevDesc .. resultDesc + if (EID.Config["BagOfCraftingShowControls"]) then + local resultDesc = EID:getDescriptionEntry("CraftingResults") + prevDesc = prevDesc .. resultDesc + end local prevItem = 0