add option to disable BoC hotkey text
This commit is contained in:
1 parent
b59953dbbd
commit
aedded0240
1 file changed
+5
-2
@@ -733,6 +733,7 @@ local ControllerToString = { [0] = "{{ButtonDLeft}}", "{{ButtonDRight}}", "{{But
|
|||||||
"{{ButtonRB}}", "{{ButtonRT}}", "{{ButtonRStick}}", "{{ButtonSelect}}", "{{ButtonMenu}}" }
|
"{{ButtonRB}}", "{{ButtonRT}}", "{{ButtonRStick}}", "{{ButtonSelect}}", "{{ButtonMenu}}" }
|
||||||
|
|
||||||
local function getHotkeyString()
|
local function getHotkeyString()
|
||||||
|
if (not EID.Config["BagOfCraftingShowControls"]) then return "" end
|
||||||
local hotkeyString = ""
|
local hotkeyString = ""
|
||||||
local hideDesc = EID:getDescriptionEntry("CraftingHideKey")
|
local hideDesc = EID:getDescriptionEntry("CraftingHideKey")
|
||||||
local previewDesc = EID:getDescriptionEntry("CraftingPreviewKey")
|
local previewDesc = EID:getDescriptionEntry("CraftingPreviewKey")
|
||||||
@@ -1162,8 +1163,10 @@ function EID:handleBagOfCraftingRendering(ignoreRefreshRate)
|
|||||||
|
|
||||||
prevDesc = prevDesc .. getHotkeyString()
|
prevDesc = prevDesc .. getHotkeyString()
|
||||||
prevDesc = prevDesc .. getFloorItemsString(true, roomItems)
|
prevDesc = prevDesc .. getFloorItemsString(true, roomItems)
|
||||||
local resultDesc = EID:getDescriptionEntry("CraftingResults")
|
if (EID.Config["BagOfCraftingShowControls"]) then
|
||||||
prevDesc = prevDesc .. resultDesc
|
local resultDesc = EID:getDescriptionEntry("CraftingResults")
|
||||||
|
prevDesc = prevDesc .. resultDesc
|
||||||
|
end
|
||||||
|
|
||||||
local prevItem = 0
|
local prevItem = 0
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user