Adds hiding feature for Cards/pills spawned by Options? item

This commit is contained in:
Wofsauge committed 2021-07-20 19:05:07 +02:00
1 parent 5e54487d62
commit 5e3c939b94
4 files changed
+57 -3

No files matched your search

+44
View File
@@ -667,6 +667,50 @@ if MCMLoaded then
Info = {"Preview of Items resulting when using the Spindown dice X times"}
}
)
MCM.AddSpace("EID", "Display")
MCM.AddText("EID", "Display", "Interaction with 'Options?'")
MCM.AddSetting(
"EID",
"Display",
{
Type = ModConfigMenu.OptionType.BOOLEAN,
CurrentSetting = function()
return EID.Config["DisplayCardInfoOptions?"]
end,
Display = function()
local onOff = "False"
if EID.Config["DisplayCardInfoOptions?"] then
onOff = "True"
end
return "Card Infos when spawned by 'Options?': " .. onOff
end,
OnChange = function(currentBool)
EID.Config["DisplayCardInfoOptions?"] = currentBool
end
}
)
MCM.AddSetting(
"EID",
"Display",
{
Type = ModConfigMenu.OptionType.BOOLEAN,
CurrentSetting = function()
return EID.Config["DisplayPillInfoOptions?"]
end,
Display = function()
local onOff = "False"
if EID.Config["DisplayPillInfoOptions?"] then
onOff = "True"
end
return "Pill Infos when spawned by 'Options?': " .. onOff
end,
OnChange = function(currentBool)
EID.Config["DisplayPillInfoOptions?"] = currentBool
end
}
)
MCM.AddSpace("EID", "Display")
MCM.AddText("EID", "Display", "Bag of Crafting")