Hides Mod config menu Options in AB+, that are exclusive for Repentance
This commit is contained in:
1 parent
5bcfd82347
commit
c7b8f6deab
2 files changed
+381
-358
No files matched your search
+17
-9
@@ -93,6 +93,7 @@ EID.UserConfig = {
|
|||||||
-- Default = true
|
-- Default = true
|
||||||
["DisableOnCurse"] = true,
|
["DisableOnCurse"] = true,
|
||||||
-- Disable Item informations for the second Treasure room item on alt paths
|
-- Disable Item informations for the second Treasure room item on alt paths
|
||||||
|
-- REPENTANCE ONLY!!!
|
||||||
-- Default = true
|
-- Default = true
|
||||||
["DisableOnAltPath"] = true,
|
["DisableOnAltPath"] = true,
|
||||||
-- Disable Item informations on the April fools challenge
|
-- Disable Item informations on the April fools challenge
|
||||||
@@ -119,6 +120,13 @@ EID.UserConfig = {
|
|||||||
-- Set the color-name of the Itemname description text. Color names can be found& defined in "eid_data.lua"
|
-- Set the color-name of the Itemname description text. Color names can be found& defined in "eid_data.lua"
|
||||||
-- Default = "ColorEIDObjName"
|
-- Default = "ColorEIDObjName"
|
||||||
["ItemNameColor"] = "ColorEIDObjName",
|
["ItemNameColor"] = "ColorEIDObjName",
|
||||||
|
-- Show ID of described object in the format "Type.Variant.SubType" next to the name
|
||||||
|
-- Default = false
|
||||||
|
["ShowObjectID"] = false,
|
||||||
|
-- Enables or disables item quality after item name
|
||||||
|
-- REPENTANCE ONLY!!!
|
||||||
|
-- Default = true
|
||||||
|
["ShowQuality"] = true,
|
||||||
|
|
||||||
-------TRANSFORMATIONS---------
|
-------TRANSFORMATIONS---------
|
||||||
|
|
||||||
@@ -141,15 +149,18 @@ EID.UserConfig = {
|
|||||||
-- Default = false
|
-- Default = false
|
||||||
["DisplayCardInfoShop"] = false,
|
["DisplayCardInfoShop"] = false,
|
||||||
-- Toggle Display of Soulstone descriptions when its a shop item
|
-- Toggle Display of Soulstone descriptions when its a shop item
|
||||||
|
-- REPENTANCE ONLY!!!
|
||||||
-- Default = true
|
-- Default = true
|
||||||
["DisplaySoulstoneInfoShop"] = true,
|
["DisplaySoulstoneInfoShop"] = true,
|
||||||
-- Toggle Display of Card / Rune descriptions when its not accessable with walking. AKA behind rock, blocks, spikes
|
-- Toggle Display of Card / Rune descriptions when its not accessable with walking. AKA behind rock, blocks, spikes
|
||||||
-- Default = false
|
-- Default = false
|
||||||
["DisplayObstructedCardInfo"] = false,
|
["DisplayObstructedCardInfo"] = false,
|
||||||
-- 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
|
||||||
|
-- REPENTANCE ONLY!!!
|
||||||
-- Default = true
|
-- Default = true
|
||||||
["DisplayObstructedSoulstoneInfo"] = true,
|
["DisplayObstructedSoulstoneInfo"] = true,
|
||||||
-- Toggle Display of Card / Rune descriptions that are spawned with the Options? item
|
-- Toggle Display of Card / Rune descriptions that are spawned with the Options? item
|
||||||
|
-- REPENTANCE ONLY!!!
|
||||||
-- Default = false
|
-- Default = false
|
||||||
["DisplayCardInfoOptions?"] = false,
|
["DisplayCardInfoOptions?"] = false,
|
||||||
|
|
||||||
@@ -165,6 +176,7 @@ EID.UserConfig = {
|
|||||||
-- Default = false
|
-- Default = false
|
||||||
["DisplayObstructedPillInfo"] = false,
|
["DisplayObstructedPillInfo"] = false,
|
||||||
-- Toggle Display of Pill descriptions that are spawned with the Options? item
|
-- Toggle Display of Pill descriptions that are spawned with the Options? item
|
||||||
|
-- REPENTANCE ONLY!!!
|
||||||
-- Default = true
|
-- Default = true
|
||||||
["DisplayPillInfoOptions?"] = 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
|
||||||
@@ -184,6 +196,7 @@ EID.UserConfig = {
|
|||||||
["DisplayDiceInfo"] = true,
|
["DisplayDiceInfo"] = true,
|
||||||
|
|
||||||
---------Bag of Crafting-----------
|
---------Bag of Crafting-----------
|
||||||
|
-- REPENTANCE ONLY!!!
|
||||||
|
|
||||||
-- When to show the Bag of Crafting display
|
-- When to show the Bag of Crafting display
|
||||||
-- Options: "always", "hold", "never"
|
-- Options: "always", "hold", "never"
|
||||||
@@ -255,16 +268,14 @@ EID.UserConfig = {
|
|||||||
-------------MISC---------------
|
-------------MISC---------------
|
||||||
|
|
||||||
-- Changes the number of Results shown for the additional Spindown dice description
|
-- Changes the number of Results shown for the additional Spindown dice description
|
||||||
|
-- REPENTANCE ONLY!!!
|
||||||
-- Default = 3
|
-- Default = 3
|
||||||
["SpindownDiceResults"] = 3,
|
["SpindownDiceResults"] = 3,
|
||||||
|
|
||||||
-- Spindown dice preview can skip over locked items, however the method for determining an item's locked status is not perfect
|
-- Spindown dice preview can skip over locked items, however the method for determining an item's locked status is not perfect
|
||||||
|
-- REPENTANCE ONLY!!!
|
||||||
-- Default = false
|
-- Default = false
|
||||||
["SpindownDiceSkipLocked"] = false,
|
["SpindownDiceSkipLocked"] = false,
|
||||||
|
|
||||||
-- Show ID of described object in the format "Type.Variant.SubType" next to the name
|
|
||||||
-- Default = false
|
|
||||||
["ShowObjectID"] = false,
|
|
||||||
|
|
||||||
-- Error message displayed when an error occurs
|
-- Error message displayed when an error occurs
|
||||||
-- Default = [Effect not defined]
|
-- Default = [Effect not defined]
|
||||||
@@ -278,9 +289,6 @@ EID.UserConfig = {
|
|||||||
-- Enables or disables custom Descriptions for entities
|
-- Enables or disables custom Descriptions for entities
|
||||||
-- Default = true
|
-- Default = true
|
||||||
["EnableEntityDescriptions"] = true,
|
["EnableEntityDescriptions"] = true,
|
||||||
-- Enables or disables item quality after item name
|
|
||||||
-- Default = true
|
|
||||||
["ShowQuality"] = true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
--END CONFIG--
|
--END CONFIG--
|
||||||
@@ -328,6 +336,8 @@ EID.DefaultConfig = {
|
|||||||
["DisplayItemInfo"] = true,
|
["DisplayItemInfo"] = true,
|
||||||
["DisplayTrinketInfo"] = true,
|
["DisplayTrinketInfo"] = true,
|
||||||
["ItemNameColor"] = "ColorEIDObjName",
|
["ItemNameColor"] = "ColorEIDObjName",
|
||||||
|
["ShowQuality"] = true,
|
||||||
|
["ShowObjectID"] = false,
|
||||||
["TransformationText"] = true,
|
["TransformationText"] = true,
|
||||||
["TransformationIcons"] = true,
|
["TransformationIcons"] = true,
|
||||||
["TransformationColor"] = "ColorEIDTransform",
|
["TransformationColor"] = "ColorEIDTransform",
|
||||||
@@ -365,6 +375,4 @@ EID.DefaultConfig = {
|
|||||||
["TextColor"] = "ColorEIDText",
|
["TextColor"] = "ColorEIDText",
|
||||||
["ErrorColor"] = "ColorEIDError",
|
["ErrorColor"] = "ColorEIDError",
|
||||||
["EnableEntityDescriptions"] = true,
|
["EnableEntityDescriptions"] = true,
|
||||||
["ShowQuality"] = true,
|
|
||||||
["ShowObjectID"] = false,
|
|
||||||
}
|
}
|
||||||
+364
-349
@@ -369,28 +369,31 @@ if MCMLoaded then
|
|||||||
end
|
end
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
-- Disable Alt Item option
|
|
||||||
MCM.AddSetting(
|
if REPENTANCE then
|
||||||
"EID",
|
-- Disable Alt Item option
|
||||||
"General",
|
MCM.AddSetting(
|
||||||
{
|
"EID",
|
||||||
Type = ModConfigMenu.OptionType.BOOLEAN,
|
"General",
|
||||||
CurrentSetting = function()
|
{
|
||||||
return EID.Config["DisableOnAltPath"]
|
Type = ModConfigMenu.OptionType.BOOLEAN,
|
||||||
end,
|
CurrentSetting = function()
|
||||||
Display = function()
|
return EID.Config["DisableOnAltPath"]
|
||||||
local onOff = "True"
|
end,
|
||||||
if EID.Config["DisableOnAltPath"] then
|
Display = function()
|
||||||
onOff = "False"
|
local onOff = "True"
|
||||||
|
if EID.Config["DisableOnAltPath"] then
|
||||||
|
onOff = "False"
|
||||||
|
end
|
||||||
|
return 'Show hidden alt-Path Item: ' .. onOff
|
||||||
|
end,
|
||||||
|
OnChange = function(currentBool)
|
||||||
|
EID.Config["DisableOnAltPath"] = currentBool
|
||||||
end
|
end
|
||||||
return 'Show hidden alt-Path Item: ' .. onOff
|
}
|
||||||
end,
|
)
|
||||||
OnChange = function(currentBool)
|
end
|
||||||
EID.Config["DisableOnAltPath"] = currentBool
|
|
||||||
end
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
--------ShowUnidentifiedPillDescriptions---------
|
--------ShowUnidentifiedPillDescriptions---------
|
||||||
MCM.AddSetting(
|
MCM.AddSetting(
|
||||||
"EID",
|
"EID",
|
||||||
@@ -616,52 +619,55 @@ if MCMLoaded then
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
MCM.AddSpace("EID", "Display")
|
|
||||||
|
|
||||||
-- Spindown Dice results
|
|
||||||
local diceSteps = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}
|
local diceSteps = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}
|
||||||
MCM.AddSetting(
|
if REPENTANCE then
|
||||||
"EID",
|
|
||||||
"Display",
|
|
||||||
{
|
|
||||||
Type = ModConfigMenu.OptionType.SCROLL,
|
|
||||||
CurrentSetting = function()
|
|
||||||
return AnIndexOf(diceSteps, EID.Config["SpindownDiceResults"]) - 1
|
|
||||||
end,
|
|
||||||
Display = function()
|
|
||||||
return "Spindown Dice: $scroll" ..
|
|
||||||
AnIndexOf(diceSteps, EID.Config["SpindownDiceResults"]) - 1 .. " " .. EID.Config["SpindownDiceResults"] .. " Items"
|
|
||||||
end,
|
|
||||||
OnChange = function(currentNum)
|
|
||||||
EID.Config["SpindownDiceResults"] = diceSteps[currentNum + 1]
|
|
||||||
end,
|
|
||||||
Info = {"Preview of Items resulting when using the Spindown dice X times"}
|
|
||||||
}
|
|
||||||
)
|
|
||||||
--
|
|
||||||
|
|
||||||
-- Spindown Dice skip locked items
|
MCM.AddSpace("EID", "Display")
|
||||||
MCM.AddSetting(
|
|
||||||
"EID",
|
-- Spindown Dice results
|
||||||
"Display",
|
MCM.AddSetting(
|
||||||
{
|
"EID",
|
||||||
Type = ModConfigMenu.OptionType.BOOLEAN,
|
"Display",
|
||||||
CurrentSetting = function()
|
{
|
||||||
return EID.Config["SpindownDiceSkipLocked"]
|
Type = ModConfigMenu.OptionType.SCROLL,
|
||||||
end,
|
CurrentSetting = function()
|
||||||
Display = function()
|
return AnIndexOf(diceSteps, EID.Config["SpindownDiceResults"]) - 1
|
||||||
local onOff = "False"
|
end,
|
||||||
if EID.Config["SpindownDiceSkipLocked"] then
|
Display = function()
|
||||||
onOff = "True"
|
return "Spindown Dice: $scroll" ..
|
||||||
end
|
AnIndexOf(diceSteps, EID.Config["SpindownDiceResults"]) - 1 .. " " .. EID.Config["SpindownDiceResults"] .. " Items"
|
||||||
return "Skip Locked Items: " .. onOff
|
end,
|
||||||
end,
|
OnChange = function(currentNum)
|
||||||
OnChange = function(currentBool)
|
EID.Config["SpindownDiceResults"] = diceSteps[currentNum + 1]
|
||||||
EID.Config["SpindownDiceSkipLocked"] = currentBool
|
end,
|
||||||
end,
|
Info = {"Preview of Items resulting when using the Spindown dice X times"}
|
||||||
Info = {"Skip locked items in the preview just as the dice will; the method to check for unlock status is not perfect, though"}
|
}
|
||||||
}
|
)
|
||||||
)
|
--
|
||||||
|
|
||||||
|
-- Spindown Dice skip locked items
|
||||||
|
MCM.AddSetting(
|
||||||
|
"EID",
|
||||||
|
"Display",
|
||||||
|
{
|
||||||
|
Type = ModConfigMenu.OptionType.BOOLEAN,
|
||||||
|
CurrentSetting = function()
|
||||||
|
return EID.Config["SpindownDiceSkipLocked"]
|
||||||
|
end,
|
||||||
|
Display = function()
|
||||||
|
local onOff = "False"
|
||||||
|
if EID.Config["SpindownDiceSkipLocked"] then
|
||||||
|
onOff = "True"
|
||||||
|
end
|
||||||
|
return "Skip Locked Items: " .. onOff
|
||||||
|
end,
|
||||||
|
OnChange = function(currentBool)
|
||||||
|
EID.Config["SpindownDiceSkipLocked"] = currentBool
|
||||||
|
end,
|
||||||
|
Info = {"Skip locked items in the preview just as the dice will; the method to check for unlock status is not perfect, though"}
|
||||||
|
}
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
--------Obstruction---------
|
--------Obstruction---------
|
||||||
MCM.AddSpace("EID", "Display")
|
MCM.AddSpace("EID", "Display")
|
||||||
@@ -709,27 +715,29 @@ if MCMLoaded then
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
MCM.AddSetting(
|
if REPENTANCE then
|
||||||
"EID",
|
MCM.AddSetting(
|
||||||
"Display",
|
"EID",
|
||||||
{
|
"Display",
|
||||||
Type = ModConfigMenu.OptionType.BOOLEAN,
|
{
|
||||||
CurrentSetting = function()
|
Type = ModConfigMenu.OptionType.BOOLEAN,
|
||||||
return EID.Config["DisplayObstructedSoulstoneInfo"]
|
CurrentSetting = function()
|
||||||
end,
|
return EID.Config["DisplayObstructedSoulstoneInfo"]
|
||||||
Display = function()
|
end,
|
||||||
local onOff = "False"
|
Display = function()
|
||||||
if EID.Config["DisplayObstructedSoulstoneInfo"] then
|
local onOff = "False"
|
||||||
onOff = "True"
|
if EID.Config["DisplayObstructedSoulstoneInfo"] then
|
||||||
|
onOff = "True"
|
||||||
|
end
|
||||||
|
return "Soulstone Infos: " .. onOff
|
||||||
|
end,
|
||||||
|
OnChange = function(currentBool)
|
||||||
|
EID.Config["DisplayObstructedSoulstoneInfo"] = currentBool
|
||||||
end
|
end
|
||||||
return "Soulstone Infos: " .. onOff
|
}
|
||||||
end,
|
)
|
||||||
OnChange = function(currentBool)
|
end
|
||||||
EID.Config["DisplayObstructedSoulstoneInfo"] = currentBool
|
|
||||||
end
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
MCM.AddSetting(
|
MCM.AddSetting(
|
||||||
"EID",
|
"EID",
|
||||||
"Display",
|
"Display",
|
||||||
@@ -798,71 +806,73 @@ if MCMLoaded then
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
MCM.AddSetting(
|
if REPENTANCE then
|
||||||
"EID",
|
MCM.AddSetting(
|
||||||
"Display",
|
"EID",
|
||||||
{
|
"Display",
|
||||||
Type = ModConfigMenu.OptionType.BOOLEAN,
|
{
|
||||||
CurrentSetting = function()
|
Type = ModConfigMenu.OptionType.BOOLEAN,
|
||||||
return EID.Config["DisplaySoulstoneInfoShop"]
|
CurrentSetting = function()
|
||||||
end,
|
return EID.Config["DisplaySoulstoneInfoShop"]
|
||||||
Display = function()
|
end,
|
||||||
local onOff = "False"
|
Display = function()
|
||||||
if EID.Config["DisplaySoulstoneInfoShop"] then
|
local onOff = "False"
|
||||||
onOff = "True"
|
if EID.Config["DisplaySoulstoneInfoShop"] then
|
||||||
|
onOff = "True"
|
||||||
|
end
|
||||||
|
return "Soulstone Infos: " .. onOff
|
||||||
|
end,
|
||||||
|
OnChange = function(currentBool)
|
||||||
|
EID.Config["DisplaySoulstoneInfoShop"] = currentBool
|
||||||
end
|
end
|
||||||
return "Soulstone Infos: " .. onOff
|
}
|
||||||
end,
|
)
|
||||||
OnChange = function(currentBool)
|
|
||||||
EID.Config["DisplaySoulstoneInfoShop"] = currentBool
|
|
||||||
end
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
MCM.AddSpace("EID", "Display")
|
MCM.AddSpace("EID", "Display")
|
||||||
MCM.AddText("EID", "Display", "Interaction with 'Options?'")
|
MCM.AddText("EID", "Display", "Interaction with 'Options?'")
|
||||||
|
|
||||||
MCM.AddSetting(
|
MCM.AddSetting(
|
||||||
"EID",
|
"EID",
|
||||||
"Display",
|
"Display",
|
||||||
{
|
{
|
||||||
Type = ModConfigMenu.OptionType.BOOLEAN,
|
Type = ModConfigMenu.OptionType.BOOLEAN,
|
||||||
CurrentSetting = function()
|
CurrentSetting = function()
|
||||||
return EID.Config["DisplayCardInfoOptions?"]
|
return EID.Config["DisplayCardInfoOptions?"]
|
||||||
end,
|
end,
|
||||||
Display = function()
|
Display = function()
|
||||||
local onOff = "False"
|
local onOff = "False"
|
||||||
if EID.Config["DisplayCardInfoOptions?"] then
|
if EID.Config["DisplayCardInfoOptions?"] then
|
||||||
onOff = "True"
|
onOff = "True"
|
||||||
|
end
|
||||||
|
return "Card Infos when spawned by 'Options?': " .. onOff
|
||||||
|
end,
|
||||||
|
OnChange = function(currentBool)
|
||||||
|
EID.Config["DisplayCardInfoOptions?"] = currentBool
|
||||||
end
|
end
|
||||||
return "Card Infos when spawned by 'Options?': " .. onOff
|
}
|
||||||
end,
|
)
|
||||||
OnChange = function(currentBool)
|
|
||||||
EID.Config["DisplayCardInfoOptions?"] = currentBool
|
MCM.AddSetting(
|
||||||
end
|
"EID",
|
||||||
}
|
"Display",
|
||||||
)
|
{
|
||||||
|
Type = ModConfigMenu.OptionType.BOOLEAN,
|
||||||
MCM.AddSetting(
|
CurrentSetting = function()
|
||||||
"EID",
|
return EID.Config["DisplayPillInfoOptions?"]
|
||||||
"Display",
|
end,
|
||||||
{
|
Display = function()
|
||||||
Type = ModConfigMenu.OptionType.BOOLEAN,
|
local onOff = "False"
|
||||||
CurrentSetting = function()
|
if EID.Config["DisplayPillInfoOptions?"] then
|
||||||
return EID.Config["DisplayPillInfoOptions?"]
|
onOff = "True"
|
||||||
end,
|
end
|
||||||
Display = function()
|
return "Pill Infos when spawned by 'Options?': " .. onOff
|
||||||
local onOff = "False"
|
end,
|
||||||
if EID.Config["DisplayPillInfoOptions?"] then
|
OnChange = function(currentBool)
|
||||||
onOff = "True"
|
EID.Config["DisplayPillInfoOptions?"] = currentBool
|
||||||
end
|
end
|
||||||
return "Pill Infos when spawned by 'Options?': " .. onOff
|
}
|
||||||
end,
|
)
|
||||||
OnChange = function(currentBool)
|
end
|
||||||
EID.Config["DisplayPillInfoOptions?"] = currentBool
|
|
||||||
end
|
|
||||||
}
|
|
||||||
)
|
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
---------------------------------Visuals-----------------------------------
|
---------------------------------Visuals-----------------------------------
|
||||||
-- Font Type
|
-- Font Type
|
||||||
@@ -1097,27 +1107,30 @@ if MCMLoaded then
|
|||||||
end
|
end
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
-------Quality ICON---------
|
|
||||||
MCM.AddSetting(
|
if REPENTANCE then
|
||||||
"EID",
|
-------Quality ICON---------
|
||||||
"Visuals",
|
MCM.AddSetting(
|
||||||
{
|
"EID",
|
||||||
Type = ModConfigMenu.OptionType.BOOLEAN,
|
"Visuals",
|
||||||
CurrentSetting = function()
|
{
|
||||||
return EID.Config["ShowQuality"]
|
Type = ModConfigMenu.OptionType.BOOLEAN,
|
||||||
end,
|
CurrentSetting = function()
|
||||||
Display = function()
|
return EID.Config["ShowQuality"]
|
||||||
local onOff = "False"
|
end,
|
||||||
if EID.Config["ShowQuality"] then
|
Display = function()
|
||||||
onOff = "True"
|
local onOff = "False"
|
||||||
|
if EID.Config["ShowQuality"] then
|
||||||
|
onOff = "True"
|
||||||
|
end
|
||||||
|
return "Display Quality Info: " .. onOff
|
||||||
|
end,
|
||||||
|
OnChange = function(currentBool)
|
||||||
|
EID.Config["ShowQuality"] = currentBool
|
||||||
end
|
end
|
||||||
return "Display Quality Info: " .. onOff
|
}
|
||||||
end,
|
)
|
||||||
OnChange = function(currentBool)
|
end
|
||||||
EID.Config["ShowQuality"] = currentBool
|
|
||||||
end
|
|
||||||
}
|
|
||||||
)
|
|
||||||
-------Object ID---------
|
-------Object ID---------
|
||||||
MCM.AddSetting(
|
MCM.AddSetting(
|
||||||
"EID",
|
"EID",
|
||||||
@@ -1140,192 +1153,194 @@ if MCMLoaded then
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
---------------------------------Visuals-----------------------------------
|
-----------------------------BAG OF CRAFTING-------------------------------
|
||||||
|
|
||||||
-- Bag of Crafting Display
|
if REPENTANCE then
|
||||||
local bagDisplays = {"always","hold","never"}
|
-- Bag of Crafting Display
|
||||||
MCM.AddSetting(
|
local bagDisplays = {"always","hold","never"}
|
||||||
"EID",
|
MCM.AddSetting(
|
||||||
"Crafting",
|
"EID",
|
||||||
{
|
"Crafting",
|
||||||
Type = ModConfigMenu.OptionType.NUMBER,
|
{
|
||||||
CurrentSetting = function()
|
Type = ModConfigMenu.OptionType.NUMBER,
|
||||||
return AnIndexOf(bagDisplays, EID.Config["DisplayBagOfCrafting"])
|
CurrentSetting = function()
|
||||||
end,
|
return AnIndexOf(bagDisplays, EID.Config["DisplayBagOfCrafting"])
|
||||||
Minimum = 1,
|
end,
|
||||||
Maximum = 3,
|
Minimum = 1,
|
||||||
Display = function()
|
Maximum = 3,
|
||||||
EID.MCMCompat_isDisplayingEIDTab = "Crafting"
|
Display = function()
|
||||||
return "Show Display: " .. EID.Config["DisplayBagOfCrafting"]
|
EID.MCMCompat_isDisplayingEIDTab = "Crafting"
|
||||||
end,
|
return "Show Display: " .. EID.Config["DisplayBagOfCrafting"]
|
||||||
OnChange = function(currentNum)
|
end,
|
||||||
EID.Config["DisplayBagOfCrafting"] = bagDisplays[currentNum]
|
OnChange = function(currentNum)
|
||||||
end,
|
EID.Config["DisplayBagOfCrafting"] = bagDisplays[currentNum]
|
||||||
Info = {"Always = Always show Results, Hold = Show when holding up bag, Never = Never show results"}
|
end,
|
||||||
}
|
Info = {"Always = Always show Results, Hold = Show when holding up bag, Never = Never show results"}
|
||||||
)
|
}
|
||||||
-- Bag of Crafting Display Mode
|
)
|
||||||
local bagDisplayModes = {"Recipe List","Preview Only","No Recipes"}
|
-- Bag of Crafting Display Mode
|
||||||
MCM.AddSetting(
|
local bagDisplayModes = {"Recipe List","Preview Only","No Recipes"}
|
||||||
"EID",
|
MCM.AddSetting(
|
||||||
"Crafting",
|
"EID",
|
||||||
{
|
"Crafting",
|
||||||
Type = ModConfigMenu.OptionType.NUMBER,
|
{
|
||||||
CurrentSetting = function()
|
Type = ModConfigMenu.OptionType.NUMBER,
|
||||||
return AnIndexOf(bagDisplayModes, EID.Config["BagOfCraftingDisplayMode"])
|
CurrentSetting = function()
|
||||||
end,
|
return AnIndexOf(bagDisplayModes, EID.Config["BagOfCraftingDisplayMode"])
|
||||||
Minimum = 1,
|
end,
|
||||||
Maximum = 3,
|
Minimum = 1,
|
||||||
Display = function()
|
Maximum = 3,
|
||||||
return "Display Mode: " .. EID.Config["BagOfCraftingDisplayMode"]
|
Display = function()
|
||||||
end,
|
return "Display Mode: " .. EID.Config["BagOfCraftingDisplayMode"]
|
||||||
OnChange = function(currentNum)
|
end,
|
||||||
EID.Config["BagOfCraftingDisplayMode"] = bagDisplayModes[currentNum]
|
OnChange = function(currentNum)
|
||||||
end,
|
EID.Config["BagOfCraftingDisplayMode"] = bagDisplayModes[currentNum]
|
||||||
Info = {"Toggle showing a list of calculated recipes, showing just an item preview when the bag is full, or showing percentages of what item you might get (No Recipes is recommended if using modded items)"}
|
end,
|
||||||
}
|
Info = {"Toggle showing a list of calculated recipes, showing just an item preview when the bag is full, or showing percentages of what item you might get (No Recipes is recommended if using modded items)"}
|
||||||
)
|
}
|
||||||
-- Bag of Crafting Hide in Battle
|
)
|
||||||
EID:AddBooleanSetting("Crafting",
|
-- Bag of Crafting Hide in Battle
|
||||||
"BagOfCraftingHideInBattle",
|
EID:AddBooleanSetting("Crafting",
|
||||||
"Hide in Battle", "Yes", "No",
|
"BagOfCraftingHideInBattle",
|
||||||
"Hides the recipe list when in a fight")
|
"Hide in Battle", "Yes", "No",
|
||||||
-- Bag of Crafting 8 icons toggle
|
"Hides the recipe list when in a fight")
|
||||||
EID:AddBooleanSetting("Crafting",
|
-- Bag of Crafting 8 icons toggle
|
||||||
"BagOfCraftingDisplayIcons",
|
EID:AddBooleanSetting("Crafting",
|
||||||
"Show Recipes/Best Bag as", "8 Icons", "Groups",
|
"BagOfCraftingDisplayIcons",
|
||||||
"Choose if you want recipes (and the Best Quality bag in No Recipes Mode) shown as 8 icons, or as grouped ingredients")
|
"Show Recipes/Best Bag as", "8 Icons", "Groups",
|
||||||
|
"Choose if you want recipes (and the Best Quality bag in No Recipes Mode) shown as 8 icons, or as grouped ingredients")
|
||||||
|
|
||||||
|
MCM.AddSpace("EID", "Crafting")
|
||||||
|
MCM.AddText("EID", "Crafting", function() return "Recipe List Options" end)
|
||||||
|
|
||||||
MCM.AddSpace("EID", "Crafting")
|
-- Bag of Crafting results per page
|
||||||
MCM.AddText("EID", "Crafting", function() return "Recipe List Options" end)
|
MCM.AddSetting(
|
||||||
|
"EID",
|
||||||
-- Bag of Crafting results per page
|
"Crafting",
|
||||||
MCM.AddSetting(
|
{
|
||||||
"EID",
|
Type = ModConfigMenu.OptionType.SCROLL,
|
||||||
"Crafting",
|
CurrentSetting = function()
|
||||||
{
|
return AnIndexOf(diceSteps, EID.Config["BagOfCraftingResults"]) - 1
|
||||||
Type = ModConfigMenu.OptionType.SCROLL,
|
end,
|
||||||
CurrentSetting = function()
|
Display = function()
|
||||||
return AnIndexOf(diceSteps, EID.Config["BagOfCraftingResults"]) - 1
|
return "Displayed Results: $scroll" ..
|
||||||
end,
|
AnIndexOf(diceSteps, EID.Config["BagOfCraftingResults"]) - 1 .. " " .. EID.Config["BagOfCraftingResults"]
|
||||||
Display = function()
|
end,
|
||||||
return "Displayed Results: $scroll" ..
|
OnChange = function(currentNum)
|
||||||
AnIndexOf(diceSteps, EID.Config["BagOfCraftingResults"]) - 1 .. " " .. EID.Config["BagOfCraftingResults"]
|
EID.Config["BagOfCraftingResults"] = diceSteps[currentNum + 1]
|
||||||
end,
|
end,
|
||||||
OnChange = function(currentNum)
|
Info = {"Page size for the preview of items currently craftable with Bag of Crafting"}
|
||||||
EID.Config["BagOfCraftingResults"] = diceSteps[currentNum + 1]
|
}
|
||||||
end,
|
)
|
||||||
Info = {"Page size for the preview of items currently craftable with Bag of Crafting"}
|
-- Bag of Crafting thorough recipe checks
|
||||||
}
|
local combSteps = {8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18}
|
||||||
)
|
MCM.AddSetting(
|
||||||
-- Bag of Crafting thorough recipe checks
|
"EID",
|
||||||
local combSteps = {8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18}
|
"Crafting",
|
||||||
MCM.AddSetting(
|
{
|
||||||
"EID",
|
Type = ModConfigMenu.OptionType.SCROLL,
|
||||||
"Crafting",
|
CurrentSetting = function()
|
||||||
{
|
return AnIndexOf(combSteps, EID.Config["BagOfCraftingCombinationMax"]) - 1
|
||||||
Type = ModConfigMenu.OptionType.SCROLL,
|
end,
|
||||||
CurrentSetting = function()
|
Display = function()
|
||||||
return AnIndexOf(combSteps, EID.Config["BagOfCraftingCombinationMax"]) - 1
|
return "Thorough Calculations: $scroll" ..
|
||||||
end,
|
AnIndexOf(combSteps, EID.Config["BagOfCraftingCombinationMax"]) - 1 .. " " .. EID.Config["BagOfCraftingCombinationMax"]
|
||||||
Display = function()
|
end,
|
||||||
return "Thorough Calculations: $scroll" ..
|
OnChange = function(currentNum)
|
||||||
AnIndexOf(combSteps, EID.Config["BagOfCraftingCombinationMax"]) - 1 .. " " .. EID.Config["BagOfCraftingCombinationMax"]
|
EID.Config["BagOfCraftingCombinationMax"] = combSteps[currentNum + 1]
|
||||||
end,
|
end,
|
||||||
OnChange = function(currentNum)
|
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)"}
|
||||||
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)"}
|
-- Bag of Crafting random recipe checks
|
||||||
}
|
local calcSteps = {200, 300, 400, 500, 600, 700, 800, 900, 1000, 1100, 1200}
|
||||||
)
|
MCM.AddSetting(
|
||||||
-- Bag of Crafting random recipe checks
|
"EID",
|
||||||
local calcSteps = {200, 300, 400, 500, 600, 700, 800, 900, 1000, 1100, 1200}
|
"Crafting",
|
||||||
MCM.AddSetting(
|
{
|
||||||
"EID",
|
Type = ModConfigMenu.OptionType.SCROLL,
|
||||||
"Crafting",
|
CurrentSetting = function()
|
||||||
{
|
return AnIndexOf(calcSteps, EID.Config["BagOfCraftingRandomResults"]) - 1
|
||||||
Type = ModConfigMenu.OptionType.SCROLL,
|
end,
|
||||||
CurrentSetting = function()
|
Display = function()
|
||||||
return AnIndexOf(calcSteps, EID.Config["BagOfCraftingRandomResults"]) - 1
|
return "Random Calculations: $scroll" ..
|
||||||
end,
|
AnIndexOf(calcSteps, EID.Config["BagOfCraftingRandomResults"]) - 1 .. " " .. EID.Config["BagOfCraftingRandomResults"]
|
||||||
Display = function()
|
end,
|
||||||
return "Random Calculations: $scroll" ..
|
OnChange = function(currentNum)
|
||||||
AnIndexOf(calcSteps, EID.Config["BagOfCraftingRandomResults"]) - 1 .. " " .. EID.Config["BagOfCraftingRandomResults"]
|
EID.Config["BagOfCraftingRandomResults"] = calcSteps[currentNum + 1]
|
||||||
end,
|
end,
|
||||||
OnChange = function(currentNum)
|
Info = {"An additional X number of randomly chosen recipes will be checked, changing each pickup spawn/despawn or refresh"}
|
||||||
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"}
|
-- Bag of Crafting item names
|
||||||
}
|
MCM.AddSetting(
|
||||||
)
|
"EID",
|
||||||
-- Bag of Crafting item names
|
"Crafting",
|
||||||
MCM.AddSetting(
|
{
|
||||||
"EID",
|
Type = ModConfigMenu.OptionType.BOOLEAN,
|
||||||
"Crafting",
|
CurrentSetting = function()
|
||||||
{
|
return EID.Config["BagOfCraftingDisplayNames"]
|
||||||
Type = ModConfigMenu.OptionType.BOOLEAN,
|
end,
|
||||||
CurrentSetting = function()
|
Display = function()
|
||||||
return EID.Config["BagOfCraftingDisplayNames"]
|
local onOff = "False"
|
||||||
end,
|
if EID.Config["BagOfCraftingDisplayNames"] then
|
||||||
Display = function()
|
onOff = "True"
|
||||||
local onOff = "False"
|
end
|
||||||
if EID.Config["BagOfCraftingDisplayNames"] then
|
return "Show Item Names: " .. onOff
|
||||||
onOff = "True"
|
end,
|
||||||
end
|
OnChange = function(currentBool)
|
||||||
return "Show Item Names: " .. onOff
|
EID.Config["BagOfCraftingDisplayNames"] = currentBool
|
||||||
end,
|
end,
|
||||||
OnChange = function(currentBool)
|
Info = {"If on, each result takes two lines; lower your displayed results accordingly"}
|
||||||
EID.Config["BagOfCraftingDisplayNames"] = currentBool
|
}
|
||||||
end,
|
)
|
||||||
Info = {"If on, each result takes two lines; lower your displayed results accordingly"}
|
|
||||||
}
|
MCM.AddSpace("EID", "Crafting")
|
||||||
)
|
|
||||||
|
EID:AddHotkeySetting("Crafting",
|
||||||
MCM.AddSpace("EID", "Crafting")
|
"CraftingHideKey", "Toggle (Keyboard)",
|
||||||
|
"Press this key to toggle the crafting display, allowing you to check descriptions of items/pickups on the floor", false)
|
||||||
EID:AddHotkeySetting("Crafting",
|
EID:AddHotkeySetting("Crafting",
|
||||||
"CraftingHideKey", "Toggle (Keyboard)",
|
"CraftingHideButton", "Toggle (Controller)",
|
||||||
"Press this key to toggle the crafting display, allowing you to check descriptions of items/pickups on the floor", false)
|
"Press this button to toggle the crafting display (Left Stick or Right Stick recommended; most other buttons will not work)", true)
|
||||||
EID:AddHotkeySetting("Crafting",
|
|
||||||
"CraftingHideButton", "Toggle (Controller)",
|
EID:AddHotkeySetting("Crafting",
|
||||||
"Press this button to toggle the crafting display (Left Stick or Right Stick recommended; most other buttons will not work)", true)
|
"CraftingResultKey", "Result Toggle (Keyboard)",
|
||||||
|
"Press this key to toggle the description of the item ready to be crafted in Recipe List/No Recipe Mode", false)
|
||||||
EID:AddHotkeySetting("Crafting",
|
EID:AddHotkeySetting("Crafting",
|
||||||
"CraftingResultKey", "Result Toggle (Keyboard)",
|
"CraftingResultButton", "Result Toggle (Controller)",
|
||||||
"Press this key to toggle the description of the item ready to be crafted in Recipe List/No Recipe Mode", false)
|
"Press this button to toggle the description of the item ready to be crafted (Left Stick or Right Stick recommended; most other buttons will not work)", true)
|
||||||
EID:AddHotkeySetting("Crafting",
|
|
||||||
"CraftingResultButton", "Result Toggle (Controller)",
|
MCM.AddSpace("EID", "Crafting")
|
||||||
"Press this button to toggle the description of the item ready to be crafted (Left Stick or Right Stick recommended; most other buttons will not work)", true)
|
--------Clear bag---------
|
||||||
|
MCM.AddSetting(
|
||||||
MCM.AddSpace("EID", "Crafting")
|
"EID",
|
||||||
--------Clear bag---------
|
"Crafting",
|
||||||
MCM.AddSetting(
|
{
|
||||||
"EID",
|
Type = ModConfigMenu.OptionType.BOOLEAN,
|
||||||
"Crafting",
|
CurrentSetting = function() return true end,
|
||||||
{
|
Display = function() return "<---- Clear Bag Content ---->" end,
|
||||||
Type = ModConfigMenu.OptionType.BOOLEAN,
|
OnChange = function(currentBool) EID.BagItems = {} end,
|
||||||
CurrentSetting = function() return true end,
|
Info = {"Press this to clear all currently detected items on the bag"}
|
||||||
Display = function() return "<---- Clear Bag Content ---->" end,
|
}
|
||||||
OnChange = function(currentBool) EID.BagItems = {} end,
|
)
|
||||||
Info = {"Press this to clear all currently detected items on the bag"}
|
--------Clear Floor---------
|
||||||
}
|
MCM.AddSetting(
|
||||||
)
|
"EID",
|
||||||
--------Clear Floor---------
|
"Crafting",
|
||||||
MCM.AddSetting(
|
{
|
||||||
"EID",
|
Type = ModConfigMenu.OptionType.BOOLEAN,
|
||||||
"Crafting",
|
CurrentSetting = function() return true end,
|
||||||
{
|
Display = function() return "<---- Clear Floor item list ---->" end,
|
||||||
Type = ModConfigMenu.OptionType.BOOLEAN,
|
OnChange = function(currentBool)
|
||||||
CurrentSetting = function() return true end,
|
EID.bagOfCraftingRoomQueries = {}
|
||||||
Display = function() return "<---- Clear Floor item list ---->" end,
|
EID.bagOfCraftingFloorQuery = {}
|
||||||
OnChange = function(currentBool)
|
EID.bagOfCraftingCurPickupCount = -1
|
||||||
EID.bagOfCraftingRoomQueries = {}
|
end,
|
||||||
EID.bagOfCraftingFloorQuery = {}
|
Info = {"Press this to clear all currently detected items on the floor"}
|
||||||
EID.bagOfCraftingCurPickupCount = -1
|
}
|
||||||
end,
|
)
|
||||||
Info = {"Press this to clear all currently detected items on the floor"}
|
end
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
-----------------------------Mouse Controls--------------------------------
|
-----------------------------Mouse Controls--------------------------------
|
||||||
|
|||||||
Reference in new issue
Block a user