diff --git a/mod_config_menu.lua b/mod_config_menu.lua index 45e20eaa..1e3d5f5a 100644 --- a/mod_config_menu.lua +++ b/mod_config_menu.lua @@ -137,6 +137,7 @@ function EID:AddBooleanSetting(category, optionName, displayText, params) OnChange = params.onChangeFunc or function(currentBool) EID.Config[optionName] = currentBool EID.MCM_OptionChanged = true + EID.RefreshBagTextbox = true end, Info = params.infoText or {} } @@ -1027,6 +1028,7 @@ if MCMLoaded then end, OnChange = function(currentNum) EID.MCM_OptionChanged = true + EID.RefreshBagTextbox = true EID.Config["DisplayBagOfCrafting"] = bagDisplays[currentNum] end, Info = {"Always = Always show Results, Hold = Show when holding up bag, Never = Never show results"} @@ -1049,6 +1051,7 @@ if MCMLoaded then end, OnChange = function(currentNum) EID.MCM_OptionChanged = true + EID.RefreshBagTextbox = true EID.Config["BagOfCraftingDisplayMode"] = bagDisplayModes[currentNum] end, Info = {"Toggle showing a list of recipes, an item preview when bag is full, what item pool/quality you might get, or only the floor pickups"} @@ -1081,6 +1084,7 @@ if MCMLoaded then end, OnChange = function(currentNum) EID.MCM_OptionChanged = true + EID.RefreshBagTextbox = true EID.Config["BagOfCraftingResults"] = diceSteps[currentNum + 1] end, Info = {"Page size for the preview of items currently craftable with Bag of Crafting"} @@ -1101,6 +1105,7 @@ if MCMLoaded then AnIndexOf(combSteps, EID.Config["BagOfCraftingCombinationMax"]) - 1 .. " " .. EID.Config["BagOfCraftingCombinationMax"] end, OnChange = function(currentNum) + EID.RefreshBagTextbox = true EID.Config["BagOfCraftingCombinationMax"] = combSteps[currentNum + 1] end, Info = {"Get every recipe for the X best components; setting this high will cause lag spikes (12 = 500 combinations, 14 = 3,000, 16 = 13,000)"} @@ -1121,6 +1126,7 @@ if MCMLoaded then AnIndexOf(calcSteps, EID.Config["BagOfCraftingRandomResults"]) - 1 .. " " .. EID.Config["BagOfCraftingRandomResults"] end, OnChange = function(currentNum) + EID.RefreshBagTextbox = true EID.Config["BagOfCraftingRandomResults"] = calcSteps[currentNum + 1] end, Info = {"An additional X number of randomly chosen recipes will be checked, changing each pickup spawn/despawn or refresh"} @@ -1144,6 +1150,7 @@ if MCMLoaded then end, OnChange = function(currentBool) EID.MCM_OptionChanged = true + EID.RefreshBagTextbox = true EID.Config["BagOfCraftingDisplayNames"] = currentBool end, Info = {"If on, each result takes two lines; lower your displayed results accordingly"} @@ -1175,7 +1182,10 @@ if MCMLoaded then Type = ModConfigMenu.OptionType.BOOLEAN, CurrentSetting = function() return true end, Display = function() return "<---- Clear Bag Content ---->" end, - OnChange = function(currentBool) EID.BagItems = {} end, + OnChange = function(currentBool) + EID.RefreshBagTextbox = true + EID.BagItems = {} + end, Info = {"Press this to clear all currently detected items on the bag"} } ) @@ -1188,9 +1198,10 @@ if MCMLoaded then CurrentSetting = function() return true end, Display = function() return "<---- Clear Floor item list ---->" end, OnChange = function(currentBool) - EID.bagOfCraftingRoomQueries = {} - EID.bagOfCraftingFloorQuery = {} - EID.bagOfCraftingCurPickupCount = -1 + EID.RefreshBagTextbox = true + EID.bagOfCraftingRoomQueries = {} + EID.bagOfCraftingFloorQuery = {} + EID.bagOfCraftingCurPickupCount = -1 end, Info = {"Press this to clear all currently detected items on the floor"} }