Added feature to display Item icon next to name and a demo icon when in MCM

This commit is contained in:
Wofsauge committed 2020-11-19 23:03:41 +01:00
1 parent 924bbafca6
commit 7df94cd5d5
5 files changed
+130 -53

No files matched your search

+21
View File
@@ -267,6 +267,7 @@ if ModConfigMenu then
Minimum = 1,
Maximum = 6,
Display = function()
EID.MCMCompat_isDisplayingEIDTab = true;
return "Text Size: " .. EIDConfig["Scale"]
end,
OnChange = function(currentNum)
@@ -397,4 +398,24 @@ if ModConfigMenu then
end
}
)
ModConfigMenu.AddSetting(
"EID",
"Display",
{
Type = ModConfigMenuOptionType.BOOLEAN,
CurrentSetting = function()
return EIDConfig["ShowItemIcon"]
end,
Display = function()
local onOff = "False"
if EIDConfig["ShowItemIcon"] then
onOff = "True"
end
return "Display Item Icon: " .. onOff
end,
OnChange = function(currentBool)
EIDConfig["ShowItemIcon"] = currentBool
end
}
)
end