Added option to hide soulstone informations in shops

This commit is contained in:
Wofsauge committed 2021-05-26 22:00:50 +02:00
1 parent 2792b764d7
commit bc5ced7f8c
3 files changed
+29 -2

No files matched your search

+4
View File
@@ -112,6 +112,9 @@ EID.UserConfig = {
-- Toggle Display of Card / Rune descriptions when its a shop item
-- Default = false
["DisplayCardInfoShop"] = false,
-- Toggle Display of Soulstone descriptions when its a shop item
-- Default = true
["DisplaySoulstoneInfoShop"] = true,
-- Toggle Display of Card / Rune descriptions when its not accessable with walking. AKA behind rock, blocks, spikes
-- Default = false
["DisplayObstructedCardInfo"] = false,
@@ -219,6 +222,7 @@ EID.DefaultConfig = {
["TransformationColor"] = "ColorEIDTransform",
["DisplayCardInfo"] = true,
["DisplayCardInfoShop"] = false,
["DisplaySoulstoneInfoShop"] = true,
["DisplayObstructedCardInfo"] = false,
["DisplayPillInfo"] = true,
["DisplayPillInfoShop"] = true,
+2 -1
View File
@@ -687,7 +687,8 @@ local function onRender(t)
-- small delay when having obstruction enabled & entering the room to prevent spoilers
return
end
if (closest:ToPickup():IsShopItem() and not EID.Config["DisplayCardInfoShop"]) or (not EID.Config["DisplayObstructedCardInfo"] and not EID.hasValidWalkingpath) or (REPENTANCE and game.Challenge == Challenge.CHALLENGE_CANTRIPPED) then
local hideinShop = closest:ToPickup():IsShopItem() and (((closest.SubType < 81 or closest.SubType > 97) and not EID.Config["DisplayCardInfoShop"]) or (closest.SubType >= 81 and not EID.Config["DisplaySoulstoneInfoShop"]))
if hideinShop or (not EID.Config["DisplayObstructedCardInfo"] and not EID.hasValidWalkingpath) or (REPENTANCE and game.Challenge == Challenge.CHALLENGE_CANTRIPPED) then
EID:renderQuestionMark()
return
end
+23 -1
View File
@@ -517,6 +517,27 @@ if MCMLoaded then
}
)
MCM.AddSetting(
"EID",
"Display",
{
Type = ModConfigMenu.OptionType.BOOLEAN,
CurrentSetting = function()
return EID.Config["DisplaySoulstoneInfoShop"]
end,
Display = function()
local onOff = "False"
if EID.Config["DisplaySoulstoneInfoShop"] then
onOff = "True"
end
return "Soulstone Infos: " .. onOff
end,
OnChange = function(currentBool)
EID.Config["DisplaySoulstoneInfoShop"] = currentBool
end
}
)
-- Spindown Dice results
local diceSteps = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
MCM.AddSetting(
@@ -623,7 +644,8 @@ if MCMLoaded then
end,
OnChange = function(currentNum)
EID.Config["Scale"] = textScales[currentNum]
end
end,
Info = {"Change text size. CAN BE HARD TO READ IN SOME SETTINGS!"}
}
)