Display mod name for modded items (+MCM support)

This commit is contained in:
Valentin Lampriere committed 2022-01-15 00:28:33 +01:00
1 parent 2193cb4a87
commit a783265bc8
4 files changed
+48 -5

No files matched your search

+21
View File
@@ -1206,6 +1206,27 @@ if MCMLoaded then
}
)
end
-------Mod name for modded items---------
MCM.AddSetting(
"EID",
"Visuals",
{
Type = ModConfigMenu.OptionType.BOOLEAN,
CurrentSetting = function()
return EID.Config["ShowModName"]
end,
Display = function()
local onOff = "False"
if EID.Config["ShowModName"] then
onOff = "True"
end
return "Display mod name: " .. onOff
end,
OnChange = function(currentBool)
EID.Config["ShowModName"] = currentBool
end
}
)
-------Object ID---------
MCM.AddSetting(
"EID",