Add custom mod icon + custom mod name

This commit is contained in:
Valentin Lampriere committed 2022-01-15 00:28:33 +01:00
1 parent a783265bc8
commit c06348aeeb
4 files changed
+34 -18

No files matched your search

+9 -10
View File
@@ -1206,24 +1206,23 @@ if MCMLoaded then
}
)
end
-------Mod name for modded items---------
-------Mod indicator for modded items---------
local modIndicatorDisplays = {"Both","Name only","Icon only", "None"}
MCM.AddSetting(
"EID",
"Visuals",
{
Type = ModConfigMenu.OptionType.BOOLEAN,
Type = ModConfigMenu.OptionType.NUMBER,
CurrentSetting = function()
return EID.Config["ShowModName"]
return AnIndexOf(modIndicatorDisplays, EID.Config["ModIndicatorDisplay"])
end,
Minimum = 1,
Maximum = #modIndicatorDisplays,
Display = function()
local onOff = "False"
if EID.Config["ShowModName"] then
onOff = "True"
end
return "Display mod name: " .. onOff
return "Mod indicator displayed for: " .. EID.Config["ModIndicatorDisplay"]
end,
OnChange = function(currentBool)
EID.Config["ShowModName"] = currentBool
OnChange = function(currentNum)
EID.Config["ModIndicatorDisplay"] = modIndicatorDisplays[currentNum]
end
}
)