Display mod name for modded items (+MCM support)
This commit is contained in:
1 parent
2193cb4a87
commit
a783265bc8
4 files changed
+48
-5
No files matched your search
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user