Implemented requested adjustements

This commit is contained in:
Max Rashes committed 2021-05-29 13:48:32 -05:00
1 parent 5afa8009f2
commit 043da1e40d
3 files changed
+26 -5

No files matched your search

+2 -1
View File
@@ -239,5 +239,6 @@ EID.DefaultConfig = {
["ErrorMessage"] = "[Effect not defined]",
["TextColor"] = "ColorEIDText",
["ErrorColor"] = "ColorEIDError",
["EnableEntityDescriptions"] = true
["EnableEntityDescriptions"] = true,
["ShowQuality"] = true
}
+3 -4
View File
@@ -245,7 +245,7 @@ function EID:printDescription(desc)
--Display Itemname
if EID.Config["ShowItemName"] then
local curName = desc.Name
local quality = EID.itemWeightsLookup[tonumber(desc.ID)]
local quality = tonumber(EID.itemConfig:GetCollectible(tonumber(desc.ID)).Quality)
if EID.Config["TranslateItemName"] ~= 2 then
local curLanguage = EID.Config["Language"]
EID.Config["Language"] = "en_us"
@@ -257,12 +257,11 @@ function EID:printDescription(desc)
curName = curName.." ("..englishName..")"
end
end
local withQual = curName
if EID.Config["ShowQuality"] then
withQual = curName.." - "..quality
curName = curName.." - {{Quality"..quality.."}}"
end
EID:renderString(
withQual,
curName,
renderPos + (Vector(offsetX, -3) * EID.Config["Scale"]),
textScale,
EID:getNameColor()
+21
View File
@@ -776,6 +776,27 @@ if MCMLoaded then
end
}
)
-------Quality ICON---------
MCM.AddSetting(
"EID",
"Visuals",
{
Type = ModConfigMenu.OptionType.BOOLEAN,
CurrentSetting = function()
return EID.Config["ShowQuality"]
end,
Display = function()
local onOff = "False"
if EID.Config["ShowQuality"] then
onOff = "True"
end
return "Display Qualtiy Info: " .. onOff
end,
OnChange = function(currentBool)
EID.Config["ShowQuality"] = currentBool
end
}
)
---------------------------------------------------------------------------
---------------------------------Visuals-----------------------------------