Added function to add custom Entity Icons
This commit is contained in:
1 parent
034b9e453d
commit
8678c6beab
2 files changed
+12
No files matched your search
+11
@@ -1578,7 +1578,13 @@ function EID:getObjectQuality(descObj)
|
||||
end
|
||||
|
||||
-- Returns the Inline Icon definition object for a given object.
|
||||
EID.ObjectIcon = {}
|
||||
function EID:getObjectIcon(descObj)
|
||||
-- custom object icon
|
||||
if EID.ObjectIcon[descObj.ObjType.."."..descObj.ObjVariant.."."..descObj.ObjSubType] then
|
||||
return EID.ObjectIcon[descObj.ObjType.."."..descObj.ObjVariant.."."..descObj.ObjSubType]
|
||||
end
|
||||
|
||||
if descObj.ObjType == 5 then
|
||||
if descObj.ObjVariant == 100 then
|
||||
return EID:createItemIconObject("Collectible" .. descObj.ObjSubType)
|
||||
@@ -1594,3 +1600,8 @@ function EID:getObjectIcon(descObj)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- Adds an EID Icon to an Object
|
||||
function EID:AddIconToObject(eType, eVariant, eSubType, iconName)
|
||||
EID.ObjectIcon[eType.."."..eVariant.."."..eSubType] = EID.InlineIcons[iconName]
|
||||
end
|
||||
Reference in new issue
Block a user