Download
(1 Kb)
Download
Updated: 12/17/21 03:35 PM
Compatibility:
Deadlands (7.2.5)
Updated:12/17/21 03:35 PM
Created:12/17/21 03:35 PM
Monthly downloads:1,088
Total downloads:39,715
Favorites:6
MD5:
LibMultiIcon  Popular! (More than 5000 hits)
Version: 1.00
by: olegbl [More]
LibMultiIcon

https://github.com/olegbl/eso-mods/t...n/LibMultiIcon

Description

Adds additional methods to instances of ZO_MultiIcon to allow different icons to have different colors instead of sharing a single color.

API
Code:
-- multiIcon is instance of ZO_MultiIcon
multiIcon:SetTexture(texture) -- sets the current texture on the multiIcon
multiIcon:SetIconColor(texture, r, g, b, a) -- sets a custom color for the given texture
multiIcon:RemoveIconColor(texture) -- removes custom color from the given texture
multiIcon:RemoveIcon(texture) -- removes the given icon from list of icons
multiIcon:SetTextureWithoutColor(texture) -- the same as vanilla multiIcon:SetTexture(texture)

-- example
local multiIcon = control:GetNamedChild("TestMultiIcon")
if not multiIcon:HasIcon(subIcon) then
  -- animation will not kick in if MultiIcon is already shown when second icon is added
  multiIcon:Hide()
  multiIcon:AddIcon(subIcon)
  multiIcon:Show()
end
multiIcon:SetIconColor(subIcon, COLOR_OF_SUB_ICON:UnpackRGBA())
Support

This addon is provided as is, without warranty or support of any kind, express or implied.
Optional Files (0)


There have been no comments posted to this file.
Be the first to add one.



Category Jump: