Migrated to newest Mod Config Menu version

This commit is contained in:
Wofsauge committed 2020-11-27 23:55:54 +01:00
1 parent 45acde8d17
commit d1f651a5ed
1 file changed
+113 -109
+113 -109
View File
@@ -53,7 +53,7 @@ if MCMLoaded then
---------------------------------General----------------------------------- ---------------------------------General-----------------------------------
-- Language -- Language
local displayLanguage = {"English", "English (detailed)", "French", "Portuguese", "Russian", "Spanish", "Bulgarian (WIP)", "Polish (WIP)", "Turkish (WIP)"} local displayLanguage = {"English", "English (detailed)", "French", "Portuguese", "Russian", "Spanish", "Bulgarian (WIP)", "Polish (WIP)", "Turkish (WIP)"}
ModConfigMenu.AddSetting( MCM.AddSetting(
"EID", "EID",
"General", "General",
{ {
@@ -68,13 +68,14 @@ if MCMLoaded then
end, end,
OnChange = function(currentNum) OnChange = function(currentNum)
EID.Config["Language"] = EID.Languages[currentNum] EID.Config["Language"] = EID.Languages[currentNum]
end end,
Info = {"Changes the language.","Languages marked with (WIP) are incomplete"}
} }
) )
MCM.AddSpace("EID", "General") MCM.AddSpace("EID", "General")
-- Disable on Curse -- Disable on Curse
ModConfigMenu.AddSetting( MCM.AddSetting(
"EID", "EID",
"General", "General",
{ {
@@ -96,7 +97,7 @@ if MCMLoaded then
) )
--------ShowUnidentifiedPillDescriptions--------- --------ShowUnidentifiedPillDescriptions---------
ModConfigMenu.AddSetting( MCM.AddSetting(
"EID", "EID",
"General", "General",
{ {
@@ -116,7 +117,7 @@ if MCMLoaded then
end end
} }
) )
ModConfigMenu.AddSetting( MCM.AddSetting(
"EID", "EID",
"General", "General",
{ {
@@ -133,7 +134,8 @@ if MCMLoaded then
end, end,
OnChange = function(currentBool) OnChange = function(currentBool)
EID.Config["HideInBattle"] = currentBool EID.Config["HideInBattle"] = currentBool
end end,
Info = {"Hides the descriptions when in a fight"}
} }
) )
@@ -141,7 +143,7 @@ if MCMLoaded then
--indicator --indicator
local indicators = {"arrow", "blink", "border", "highlight", "none"} local indicators = {"arrow", "blink", "border", "highlight", "none"}
ModConfigMenu.AddSetting( MCM.AddSetting(
"EID", "EID",
"General", "General",
{ {
@@ -156,7 +158,8 @@ if MCMLoaded then
end, end,
OnChange = function(currentNum) OnChange = function(currentNum)
EID.Config["Indicator"] = indicators[currentNum] EID.Config["Indicator"] = indicators[currentNum]
end end,
Info = {"Highlights the currently described item"}
} }
) )
@@ -164,7 +167,7 @@ if MCMLoaded then
-- maxDistance -- maxDistance
local distances = {1, 1.5, 2, 3, 4, 5, 6, 7, 8, 9, 10} local distances = {1, 1.5, 2, 3, 4, 5, 6, 7, 8, 9, 10}
ModConfigMenu.AddSetting( MCM.AddSetting(
"EID", "EID",
"General", "General",
{ {
@@ -178,59 +181,17 @@ if MCMLoaded then
end, end,
OnChange = function(currentNum) OnChange = function(currentNum)
EID.Config["MaxDistance"] = distances[currentNum + 1] EID.Config["MaxDistance"] = distances[currentNum + 1]
end end,
Info = {"Distance to the object until descriptions are displayed."}
} }
) )
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
---------------------------------Display----------------------------------- ---------------------------------Display-----------------------------------
--------Sacrifice Room---------
ModConfigMenu.AddSetting(
"EID",
"Display",
{
Type = ModConfigMenuOptionType.BOOLEAN,
CurrentSetting = function()
return EID.Config["DisplaySacrificeInfo"]
end,
Display = function()
local onOff = "False"
if EID.Config["DisplaySacrificeInfo"] then
onOff = "True"
end
return "Sacrifice Room Infos: " .. onOff
end,
OnChange = function(currentBool)
EID.Config["DisplaySacrificeInfo"] = currentBool
end
}
)
--------Dice Room---------
ModConfigMenu.AddSetting(
"EID",
"Display",
{
Type = ModConfigMenuOptionType.BOOLEAN,
CurrentSetting = function()
return EID.Config["DisplayDiceInfo"]
end,
Display = function()
local onOff = "False"
if EID.Config["DisplayDiceInfo"] then
onOff = "True"
end
return "Dice Room Infos: " .. onOff
end,
OnChange = function(currentBool)
EID.Config["DisplayDiceInfo"] = currentBool
end
}
)
------------Collectibles-------------- ------------Collectibles--------------
ModConfigMenu.AddSetting( MCM.AddSetting(
"EID", "EID",
"Display", "Display",
{ {
@@ -252,7 +213,7 @@ if MCMLoaded then
) )
------------Trinkets-------------- ------------Trinkets--------------
ModConfigMenu.AddSetting( MCM.AddSetting(
"EID", "EID",
"Display", "Display",
{ {
@@ -274,7 +235,7 @@ if MCMLoaded then
) )
------------CARDS-------------- ------------CARDS--------------
ModConfigMenu.AddSetting( MCM.AddSetting(
"EID", "EID",
"Display", "Display",
{ {
@@ -296,7 +257,7 @@ if MCMLoaded then
) )
------------PILLS-------------- ------------PILLS--------------
ModConfigMenu.AddSetting( MCM.AddSetting(
"EID", "EID",
"Display", "Display",
{ {
@@ -316,12 +277,55 @@ if MCMLoaded then
end end
} }
) )
--------Sacrifice Room---------
MCM.AddSetting(
"EID",
"Display",
{
Type = ModConfigMenuOptionType.BOOLEAN,
CurrentSetting = function()
return EID.Config["DisplaySacrificeInfo"]
end,
Display = function()
local onOff = "False"
if EID.Config["DisplaySacrificeInfo"] then
onOff = "True"
end
return "Sacrifice Room Infos: " .. onOff
end,
OnChange = function(currentBool)
EID.Config["DisplaySacrificeInfo"] = currentBool
end
}
)
ModConfigMenu.AddSpace("EID", "Display") --------Dice Room---------
ModConfigMenu.AddText("EID", "Display", "Display Infos in Shops") MCM.AddSetting(
"EID",
"Display",
{
Type = ModConfigMenuOptionType.BOOLEAN,
CurrentSetting = function()
return EID.Config["DisplayDiceInfo"]
end,
Display = function()
local onOff = "False"
if EID.Config["DisplayDiceInfo"] then
onOff = "True"
end
return "Dice Room Infos: " .. onOff
end,
OnChange = function(currentBool)
EID.Config["DisplayDiceInfo"] = currentBool
end
}
)
MCM.AddSpace("EID", "Display")
MCM.AddText("EID", "Display", "Display Infos in Shops")
------------CARDS-------------- ------------CARDS--------------
ModConfigMenu.AddSetting( MCM.AddSetting(
"EID", "EID",
"Display", "Display",
{ {
@@ -343,7 +347,7 @@ if MCMLoaded then
) )
------------PILLS-------------- ------------PILLS--------------
ModConfigMenu.AddSetting( MCM.AddSetting(
"EID", "EID",
"Display", "Display",
{ {
@@ -368,7 +372,7 @@ if MCMLoaded then
---------------------------------Visuals----------------------------------- ---------------------------------Visuals-----------------------------------
-- Font Type -- Font Type
local fontTypes = {"default","borderless","inverted"} local fontTypes = {"default","borderless","inverted"}
ModConfigMenu.AddSetting( MCM.AddSetting(
"EID", "EID",
"Visuals", "Visuals",
{ {
@@ -390,7 +394,7 @@ if MCMLoaded then
) )
-- SCALE -- SCALE
local textScales = {0.5, 0.75, 1, 1.25, 1.5, 2} local textScales = {0.5, 0.75, 1, 1.25, 1.5, 2}
ModConfigMenu.AddSetting( MCM.AddSetting(
"EID", "EID",
"Visuals", "Visuals",
{ {
@@ -412,7 +416,7 @@ if MCMLoaded then
-- Transparency -- Transparency
local transparencies = {0.1, 0.175, 0.25, 0.3, 0.4, 0.5, 0.6, 0.75, 0.8, 0.9, 1} local transparencies = {0.1, 0.175, 0.25, 0.3, 0.4, 0.5, 0.6, 0.75, 0.8, 0.9, 1}
ModConfigMenu.AddSetting( MCM.AddSetting(
"EID", "EID",
"Visuals", "Visuals",
{ {
@@ -433,7 +437,7 @@ if MCMLoaded then
MCM.AddSpace("EID", "Visuals") MCM.AddSpace("EID", "Visuals")
--------ShowItemName--------- --------ShowItemName---------
ModConfigMenu.AddSetting( MCM.AddSetting(
"EID", "EID",
"Visuals", "Visuals",
{ {
@@ -454,7 +458,7 @@ if MCMLoaded then
} }
) )
--------ShowItemType--------- --------ShowItemType---------
ModConfigMenu.AddSetting( MCM.AddSetting(
"EID", "EID",
"Visuals", "Visuals",
{ {
@@ -474,49 +478,7 @@ if MCMLoaded then
end end
} }
) )
-------TRANSFORMATIONS--------- MCM.AddSetting(
ModConfigMenu.AddSetting(
"EID",
"Visuals",
{
Type = ModConfigMenuOptionType.BOOLEAN,
CurrentSetting = function()
return EID.Config["TransformationText"]
end,
Display = function()
local onOff = "False"
if EID.Config["TransformationText"] then
onOff = "True"
end
return "Display Transformation Name: " .. onOff
end,
OnChange = function(currentBool)
EID.Config["TransformationText"] = currentBool
end
}
)
ModConfigMenu.AddSetting(
"EID",
"Visuals",
{
Type = ModConfigMenuOptionType.BOOLEAN,
CurrentSetting = function()
return EID.Config["TransformationIcons"]
end,
Display = function()
local onOff = "False"
if EID.Config["TransformationIcons"] then
onOff = "True"
end
return "Display Transformation Icon: " .. onOff
end,
OnChange = function(currentBool)
EID.Config["TransformationIcons"] = currentBool
end
}
)
ModConfigMenu.AddSetting(
"EID", "EID",
"Visuals", "Visuals",
{ {
@@ -536,4 +498,46 @@ if MCMLoaded then
end end
} }
) )
-------TRANSFORMATIONS---------
MCM.AddSetting(
"EID",
"Visuals",
{
Type = ModConfigMenuOptionType.BOOLEAN,
CurrentSetting = function()
return EID.Config["TransformationText"]
end,
Display = function()
local onOff = "False"
if EID.Config["TransformationText"] then
onOff = "True"
end
return "Display Transformation Name: " .. onOff
end,
OnChange = function(currentBool)
EID.Config["TransformationText"] = currentBool
end
}
)
MCM.AddSetting(
"EID",
"Visuals",
{
Type = ModConfigMenuOptionType.BOOLEAN,
CurrentSetting = function()
return EID.Config["TransformationIcons"]
end,
Display = function()
local onOff = "False"
if EID.Config["TransformationIcons"] then
onOff = "True"
end
return "Display Transformation Icon: " .. onOff
end,
OnChange = function(currentBool)
EID.Config["TransformationIcons"] = currentBool
end
}
)
end end