Added config option to display object ids in the description text

This commit is contained in:
Wofsauge committed 2021-09-18 17:38:55 +02:00
1 parent b60c32df85
commit cee5f1c85d
3 files changed
+38 -1

No files matched your search

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