Adds feature to hide the descriptions when in battle
This commit is contained in:
1 parent
d3decba7be
commit
b2dff9ef7e
3 files changed
+32
-3
No files matched your search
@@ -42,6 +42,12 @@ EID.DefaultConfig = {
|
||||
-- look into the AB+ documentation for the key names
|
||||
-- Default = Keyboard.KEY_F2
|
||||
["HideKey"] = Keyboard.KEY_F2,
|
||||
-- Initial displaystate. Can be used to change the toggle behavior of the "Hide Key" event
|
||||
-- Default = false
|
||||
["Hidden"] = false,
|
||||
-- Hide the descriptions when in battle
|
||||
-- Default = false
|
||||
["HideInBattle"] = false,
|
||||
-------------CURSE-------------
|
||||
|
||||
-- Display informations when the floor has curse of the blind ( ? - Items)
|
||||
|
||||
@@ -263,12 +263,15 @@ local function onRender(t)
|
||||
end
|
||||
if EID.isHidden then
|
||||
return
|
||||
elseif EID.Config["HideInBattle"] then
|
||||
if Isaac.CountBosses() > 0 or Isaac.CountEnemies() > 0 then
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
local player = Isaac.GetPlayer(0)
|
||||
|
||||
|
||||
EID:renderMCMDummyDescription()
|
||||
|
||||
local player = Isaac.GetPlayer(0)
|
||||
if player:HasCollectible(CollectibleType.COLLECTIBLE_SCHOOLBAG) then
|
||||
EID:addTextPosModifier("Schoolbag", Vector(0,30))
|
||||
end
|
||||
|
||||
@@ -167,6 +167,26 @@ if MCMLoaded then
|
||||
end
|
||||
}
|
||||
)
|
||||
ModConfigMenu.AddSetting(
|
||||
"EID",
|
||||
"Rooms",
|
||||
{
|
||||
Type = ModConfigMenuOptionType.BOOLEAN,
|
||||
CurrentSetting = function()
|
||||
return EID.Config["HideInBattle"]
|
||||
end,
|
||||
Display = function()
|
||||
local onOff = "False"
|
||||
if EID.Config["HideInBattle"] then
|
||||
onOff = "True"
|
||||
end
|
||||
return "Hide in Battle: " .. onOff
|
||||
end,
|
||||
OnChange = function(currentBool)
|
||||
EID.Config["HideInBattle"] = currentBool
|
||||
end
|
||||
}
|
||||
)
|
||||
|
||||
------------Collectibles--------------
|
||||
|
||||
|
||||
Reference in new issue
Block a user