add a separate HideButton hotkey

This commit is contained in:
Buurazu authored and GitHub committed 2021-11-19 02:09:19 -05:00
1 parent 02a313692d
commit 8b86b57cf2
1 file changed
+4 -5
+4 -5
View File
@@ -598,12 +598,12 @@ local function onRender(t)
EID.isDisplaying = false EID.isDisplaying = false
EID:setPlayer() EID:setPlayer()
--Controller hide keys are 0 through 26, keyboard hide keys are 32+ --Keyboard hide keys are 32+, controller hide keys have their own option now so don't allow controller inputs in it
local hidekeyType = 0 if EID.Config["HideKey"] < 32 then EID.Config["HideKey"] = -1 end
if EID.Config["HideKey"] < 32 then hidekeyType = EID.player.ControllerIndex end if Input.IsButtonTriggered(EID.Config["HideKey"], 0) or Input.IsButtonTriggered(EID.Config["HideButton"], EID.player.ControllerIndex) then
if Input.IsButtonTriggered(EID.Config["HideKey"], hidekeyType) then
EID.isHidden = not EID.isHidden EID.isHidden = not EID.isHidden
end end
if ModConfigMenu and ModConfigMenu.IsVisible and ModConfigMenu.Config["Mod Config Menu"].HideHudInMenu and EID.MCMCompat_isDisplayingEIDTab ~= "Visuals" then --if if the mod config menu exists, is opened and Hide Hud is enabled, and ModConfigMenu is currently in the "Visuals" tab of EID if ModConfigMenu and ModConfigMenu.IsVisible and ModConfigMenu.Config["Mod Config Menu"].HideHudInMenu and EID.MCMCompat_isDisplayingEIDTab ~= "Visuals" then --if if the mod config menu exists, is opened and Hide Hud is enabled, and ModConfigMenu is currently in the "Visuals" tab of EID
return return
end end
@@ -624,7 +624,6 @@ local function onRender(t)
else else
EID:removeTextPosModifier("Tained HUD") EID:removeTextPosModifier("Tained HUD")
end end
-- Disabling Bag of Crafting for now, since it doesnt work after patch
if EID.player:HasCollectible(710) then if EID.player:HasCollectible(710) then
local success = EID:handleBagOfCraftingRendering() local success = EID:handleBagOfCraftingRendering()
if success then if success then