Fixed Bag of crafting not updating when EID is in hidden mode
This commit is contained in:
1 parent
beb4cad9f6
commit
e8b1e7f70c
2 files changed
+16
-7
No files matched your search
@@ -547,6 +547,14 @@ function EID:handleBagOfCraftingRendering()
|
|||||||
trackBagHolding()
|
trackBagHolding()
|
||||||
detectBagContentShift()
|
detectBagContentShift()
|
||||||
|
|
||||||
|
if EID.isHidden then
|
||||||
|
return
|
||||||
|
elseif EID.Config["HideInBattle"] then
|
||||||
|
if Isaac.CountBosses() > 0 or Isaac.CountEnemies() > 0 then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if EID.Config["DisplayBagOfCrafting"] == "never" then
|
if EID.Config["DisplayBagOfCrafting"] == "never" then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -538,13 +538,6 @@ local function onRender(t)
|
|||||||
if Input.IsButtonTriggered(EID.Config["HideKey"], 0) then
|
if Input.IsButtonTriggered(EID.Config["HideKey"], 0) then
|
||||||
EID.isHidden = not EID.isHidden
|
EID.isHidden = not EID.isHidden
|
||||||
end
|
end
|
||||||
if EID.isHidden then
|
|
||||||
return
|
|
||||||
elseif EID.Config["HideInBattle"] then
|
|
||||||
if Isaac.CountBosses() > 0 or Isaac.CountEnemies() > 0 then
|
|
||||||
return
|
|
||||||
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
|
||||||
@@ -572,6 +565,14 @@ local function onRender(t)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if EID.isHidden then
|
||||||
|
return
|
||||||
|
elseif EID.Config["HideInBattle"] then
|
||||||
|
if Isaac.CountBosses() > 0 or Isaac.CountEnemies() > 0 then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if EID.isDisplayingPermanent and EID.permanentDisplayTextObj ~= nil then
|
if EID.isDisplayingPermanent and EID.permanentDisplayTextObj ~= nil then
|
||||||
EID:printDescription(EID.permanentDisplayTextObj)
|
EID:printDescription(EID.permanentDisplayTextObj)
|
||||||
EID.isDisplaying = true
|
EID.isDisplaying = true
|
||||||
|
|||||||
Reference in new issue
Block a user