Display mod name for modded items (+MCM support)

This commit is contained in:
Valentin Lampriere committed 2022-01-14 01:33:36 +01:00
1 parent 700ec2785b
commit fc477adc4f
4 files changed
+48 -5

No files matched your search

+21
View File
@@ -1184,6 +1184,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",