Adds hiding feature for Cards/pills spawned by Options? item
This commit is contained in:
1 parent
5e54487d62
commit
5e3c939b94
4 files changed
+57
-3
No files matched your search
@@ -124,6 +124,9 @@ EID.UserConfig = {
|
|||||||
-- Toggle Display of Soulstone descriptions when its not accessable with walking. AKA behind rock, blocks, spikes
|
-- Toggle Display of Soulstone descriptions when its not accessable with walking. AKA behind rock, blocks, spikes
|
||||||
-- Default = true
|
-- Default = true
|
||||||
["DisplayObstructedSoulstoneInfo"] = true,
|
["DisplayObstructedSoulstoneInfo"] = true,
|
||||||
|
-- Toggle Display of Card / Rune descriptions that are spawned with the Options? item
|
||||||
|
-- Default = false
|
||||||
|
["DisplayCardInfoOptions?"] = false,
|
||||||
|
|
||||||
------------PILLS--------------
|
------------PILLS--------------
|
||||||
|
|
||||||
@@ -136,6 +139,9 @@ EID.UserConfig = {
|
|||||||
-- Toggle Display of Pill descriptions when its not accessable with walking. AKA behind rock, blocks, spikes
|
-- Toggle Display of Pill descriptions when its not accessable with walking. AKA behind rock, blocks, spikes
|
||||||
-- Default = true
|
-- Default = true
|
||||||
["DisplayObstructedPillInfo"] = true,
|
["DisplayObstructedPillInfo"] = true,
|
||||||
|
-- Toggle Display of Pill descriptions that are spawned with the Options? item
|
||||||
|
-- Default = true
|
||||||
|
["DisplayPillInfoOptions?"] = true,
|
||||||
-- Toggle Display of Pill descriptions that arent known to you yet
|
-- Toggle Display of Pill descriptions that arent known to you yet
|
||||||
-- Default = false
|
-- Default = false
|
||||||
["ShowUnidentifiedPillDescriptions"] = false,
|
["ShowUnidentifiedPillDescriptions"] = false,
|
||||||
@@ -245,8 +251,10 @@ EID.DefaultConfig = {
|
|||||||
["DisplaySoulstoneInfoShop"] = true,
|
["DisplaySoulstoneInfoShop"] = true,
|
||||||
["DisplayObstructedCardInfo"] = false,
|
["DisplayObstructedCardInfo"] = false,
|
||||||
["DisplayObstructedSoulstoneInfo"] = true,
|
["DisplayObstructedSoulstoneInfo"] = true,
|
||||||
|
["DisplayCardInfoOptions?"] = false,
|
||||||
["DisplayPillInfo"] = true,
|
["DisplayPillInfo"] = true,
|
||||||
["DisplayPillInfoShop"] = true,
|
["DisplayPillInfoShop"] = true,
|
||||||
|
["DisplayPillInfoOptions?"] = true,
|
||||||
["DisplayObstructedPillInfo"] = true,
|
["DisplayObstructedPillInfo"] = true,
|
||||||
["ShowUnidentifiedPillDescriptions"] = false,
|
["ShowUnidentifiedPillDescriptions"] = false,
|
||||||
["DisplaySacrificeInfo"] = true,
|
["DisplaySacrificeInfo"] = true,
|
||||||
|
|||||||
@@ -668,8 +668,9 @@ local function onRender(t)
|
|||||||
if closest:GetData()["EID_DontHide"] ~= true then
|
if closest:GetData()["EID_DontHide"] ~= true then
|
||||||
local isSoulstone = closest.SubType >= 81 and closest.SubType <= 97
|
local isSoulstone = closest.SubType >= 81 and closest.SubType <= 97
|
||||||
local hideinShop = closest:ToPickup():IsShopItem() and ((not isSoulstone and not EID.Config["DisplayCardInfoShop"]) or (isSoulstone and not EID.Config["DisplaySoulstoneInfoShop"]))
|
local hideinShop = closest:ToPickup():IsShopItem() and ((not isSoulstone and not EID.Config["DisplayCardInfoShop"]) or (isSoulstone and not EID.Config["DisplaySoulstoneInfoShop"]))
|
||||||
|
local isOptionsSpawn = closest:ToPickup().OptionsPickupIndex > 0 and not EID.Config["DisplayCardInfoOptions?"]
|
||||||
local obstructed = ((not isSoulstone and not EID.Config["DisplayObstructedCardInfo"]) or (not EID.Config["DisplayObstructedSoulstoneInfo"] and isSoulstone)) and not EID.hasValidWalkingpath
|
local obstructed = ((not isSoulstone and not EID.Config["DisplayObstructedCardInfo"]) or (not EID.Config["DisplayObstructedSoulstoneInfo"] and isSoulstone)) and not EID.hasValidWalkingpath
|
||||||
if hideinShop or obstructed or (REPENTANCE and game.Challenge == Challenge.CHALLENGE_CANTRIPPED) then
|
if isOptionsSpawn or hideinShop or obstructed or (REPENTANCE and game.Challenge == Challenge.CHALLENGE_CANTRIPPED) then
|
||||||
EID:renderQuestionMark()
|
EID:renderQuestionMark()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
@@ -683,7 +684,8 @@ local function onRender(t)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
if closest:GetData()["EID_DontHide"] ~= true then
|
if closest:GetData()["EID_DontHide"] ~= true then
|
||||||
if (closest:ToPickup():IsShopItem() and not EID.Config["DisplayPillInfoShop"]) or (not EID.Config["DisplayObstructedPillInfo"] and not EID.hasValidWalkingpath) then
|
local isOptionsSpawn = closest:ToPickup().OptionsPickupIndex > 0 and not EID.Config["DisplayPillInfoOptions?"]
|
||||||
|
if isOptionsSpawn or (closest:ToPickup():IsShopItem() and not EID.Config["DisplayPillInfoShop"]) or (not EID.Config["DisplayObstructedPillInfo"] and not EID.hasValidWalkingpath) then
|
||||||
EID:renderQuestionMark()
|
EID:renderQuestionMark()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|||||||
+1
-1
@@ -90,7 +90,7 @@ https://moddingofisaac.com/mod/1079/external-item-descriptions
|
|||||||
- Jake for the sweet [b]German[/b] language pack
|
- Jake for the sweet [b]German[/b] language pack
|
||||||
- [url=https://steamcommunity.com/id/whytefang/]adc[/url] for creating an awesome new Languagepack and providing ideas for new functionalities
|
- [url=https://steamcommunity.com/id/whytefang/]adc[/url] for creating an awesome new Languagepack and providing ideas for new functionalities
|
||||||
</description>
|
</description>
|
||||||
<version>3.67</version>
|
<version>3.68</version>
|
||||||
<visibility>Public</visibility>
|
<visibility>Public</visibility>
|
||||||
<tag id="Lua"/>
|
<tag id="Lua"/>
|
||||||
<tag id="Items"/>
|
<tag id="Items"/>
|
||||||
|
|||||||
@@ -667,6 +667,50 @@ if MCMLoaded then
|
|||||||
Info = {"Preview of Items resulting when using the Spindown dice X times"}
|
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.AddSpace("EID", "Display")
|
||||||
MCM.AddText("EID", "Display", "Bag of Crafting")
|
MCM.AddText("EID", "Display", "Bag of Crafting")
|
||||||
|
|||||||
Reference in new issue
Block a user