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
@@ -57,6 +57,14 @@ local hudBBSprite = Sprite()
|
||||
hudBBSprite:Load("gfx/eid_transform_icons.anm2", true)
|
||||
hudBBSprite:Play("boundingBox")
|
||||
|
||||
EID._currentMod = ""
|
||||
|
||||
local OldRegisterMod = RegisterMod
|
||||
RegisterMod = function (modName, apiVersion)
|
||||
EID._currentMod = modName
|
||||
return OldRegisterMod(modName, apiVersion)
|
||||
end
|
||||
|
||||
------- Load all modules and other stuff ------
|
||||
|
||||
--transformation infos
|
||||
@@ -367,6 +375,11 @@ function EID:printDescription(desc)
|
||||
local quality = tonumber(EID.itemConfig:GetCollectible(tonumber(desc.ObjSubType)).Quality)
|
||||
curName = curName.." - {{Quality"..quality.."}}"
|
||||
end
|
||||
|
||||
if EID.Config["ShowModName"] and desc.ModName then
|
||||
curName = curName .. " {{ColorWhite}}" .. desc.ModName
|
||||
end
|
||||
|
||||
EID:renderString(
|
||||
curName,
|
||||
renderPos + (Vector(offsetX, -3) * EID.Scale),
|
||||
@@ -404,6 +417,7 @@ function EID:printDescription(desc)
|
||||
end
|
||||
end
|
||||
EID:printBulletPoints(desc.Description, renderPos)
|
||||
|
||||
end
|
||||
|
||||
function EID:printBulletPoints(description, renderPos)
|
||||
@@ -1099,4 +1113,4 @@ end
|
||||
|
||||
if enableDebug then
|
||||
require("eid_debugging")
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user