Show Controls option, fix bugs with bag preview

This commit is contained in:
Buurazu authored and GitHub committed 2022-09-18 02:17:12 -04:00
1 parent aedded0240
commit 1129dd071a
1 file changed
+11 -5
+11 -5
View File
@@ -40,10 +40,11 @@ end
local function renderDummyBagOfCraftingDesc() local function renderDummyBagOfCraftingDesc()
EID.bagPlayer = Isaac.GetPlayer(0) EID.bagPlayer = Isaac.GetPlayer(0)
EID.BoC.BagItemsOverride = {15,15,15,1,10} EID.BoC.BagItemsOverride = {15,15,5,1,10}
EID.BoC.RoomOverride = {8,8,8,9} EID.BoC.RoomOverride = {8,8,8,9}
EID.BoC.FloorOverride = {1,1,1,1,4,8,8,8,9} EID.BoC.FloorOverride = {1,1,1,3,4,8,8,8,9}
EID.BoC.InventoryOverride = {3,5} EID.BoC.InventoryOverride = {21,22}
EID.RefreshBagTextbox = true
local craftingSuccess = EID:handleBagOfCraftingRendering(true) local craftingSuccess = EID:handleBagOfCraftingRendering(true)
if craftingSuccess then if craftingSuccess then
EID:printDescription(EID.descriptionsToPrint[#EID.descriptionsToPrint]) EID:printDescription(EID.descriptionsToPrint[#EID.descriptionsToPrint])
@@ -88,6 +89,7 @@ local function clearRenderDummyDesc()
EID.BoC.RoomOverride = nil EID.BoC.RoomOverride = nil
EID.BoC.FloorOverride = nil EID.BoC.FloorOverride = nil
EID.BoC.InventoryOverride = nil EID.BoC.InventoryOverride = nil
EID.RefreshBagTextbox = true
end end
function EID:renderMCMDummyDescription() function EID:renderMCMDummyDescription()
@@ -606,12 +608,16 @@ if MCMLoaded then
-- Bag of Crafting Hide in Battle -- Bag of Crafting Hide in Battle
EID:AddBooleanSetting("Crafting", "BagOfCraftingHideInBattle", "Hide in Battle", {onText = "Yes", offText = "No", EID:AddBooleanSetting("Crafting", "BagOfCraftingHideInBattle", "Hide in Battle", {onText = "Yes", offText = "No",
infoText = "Hides the recipe list when in a fight"}) infoText = "Hides the Bag of Crafting info when in a fight"})
-- Bag of Crafting Show Controls
EID:AddBooleanSetting("Crafting", "BagOfCraftingShowControls", "Show Controls", {onText = "Yes", offText = "No",
infoText = "Show the text for the Hide/Preview and Recipe List hotkeys"})
-- Bag of Crafting 8 icons toggle -- Bag of Crafting 8 icons toggle
EID:AddBooleanSetting("Crafting", "BagOfCraftingDisplayIcons", "Show Recipes/Best Bag as", {onText = "8 Icons", offText = "Groups", EID:AddBooleanSetting("Crafting", "BagOfCraftingDisplayIcons", "Show Recipes/Best Bag as", {onText = "8 Icons", offText = "Groups",
infoText = "Choose if you want recipes (and the Best Quality bag in No Recipes Mode) shown as 8 icons, or as grouped ingredients"}) infoText = "Choose if you want recipes (and the Best Quality bag in No Recipes Mode) shown as 8 icons, or as grouped ingredients"})
-- Modded Recipes toggle -- Modded Recipes toggle
EID:AddBooleanSetting("Crafting", "BagOfCraftingModdedRecipes", "Load Modded Item Recipes", { EID:AddBooleanSetting("Crafting", "BagOfCraftingModdedRecipes", "Load Modded Item Recipes (WIP)", {
infoText = {"Enable or disable basic modded item support", "If you have a lot of modded items, it will slow down game launch"}}) infoText = {"Enable or disable basic modded item support", "If you have a lot of modded items, it will slow down game launch"}})
MCM.AddSpace("EID", "Crafting") MCM.AddSpace("EID", "Crafting")