Implemented requested adjustements
This commit is contained in:
1 parent
5afa8009f2
commit
043da1e40d
3 files changed
+26
-5
No files matched your search
+2
-1
@@ -239,5 +239,6 @@ EID.DefaultConfig = {
|
|||||||
["ErrorMessage"] = "[Effect not defined]",
|
["ErrorMessage"] = "[Effect not defined]",
|
||||||
["TextColor"] = "ColorEIDText",
|
["TextColor"] = "ColorEIDText",
|
||||||
["ErrorColor"] = "ColorEIDError",
|
["ErrorColor"] = "ColorEIDError",
|
||||||
["EnableEntityDescriptions"] = true
|
["EnableEntityDescriptions"] = true,
|
||||||
|
["ShowQuality"] = true
|
||||||
}
|
}
|
||||||
@@ -245,7 +245,7 @@ function EID:printDescription(desc)
|
|||||||
--Display Itemname
|
--Display Itemname
|
||||||
if EID.Config["ShowItemName"] then
|
if EID.Config["ShowItemName"] then
|
||||||
local curName = desc.Name
|
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
|
if EID.Config["TranslateItemName"] ~= 2 then
|
||||||
local curLanguage = EID.Config["Language"]
|
local curLanguage = EID.Config["Language"]
|
||||||
EID.Config["Language"] = "en_us"
|
EID.Config["Language"] = "en_us"
|
||||||
@@ -257,12 +257,11 @@ function EID:printDescription(desc)
|
|||||||
curName = curName.." ("..englishName..")"
|
curName = curName.." ("..englishName..")"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
local withQual = curName
|
|
||||||
if EID.Config["ShowQuality"] then
|
if EID.Config["ShowQuality"] then
|
||||||
withQual = curName.." - "..quality
|
curName = curName.." - {{Quality"..quality.."}}"
|
||||||
end
|
end
|
||||||
EID:renderString(
|
EID:renderString(
|
||||||
withQual,
|
curName,
|
||||||
renderPos + (Vector(offsetX, -3) * EID.Config["Scale"]),
|
renderPos + (Vector(offsetX, -3) * EID.Config["Scale"]),
|
||||||
textScale,
|
textScale,
|
||||||
EID:getNameColor()
|
EID:getNameColor()
|
||||||
|
|||||||
@@ -776,6 +776,27 @@ if MCMLoaded then
|
|||||||
end
|
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-----------------------------------
|
---------------------------------Visuals-----------------------------------
|
||||||
|
|||||||
Reference in new issue
Block a user