forked from wow/OmicronFrames
Add IconIndicator
Similar functionality to a SquareIndicator but uses an icon instead of a solid color.
This commit is contained in:
1 parent
dc62b031a9
commit
c56b847710
4 files changed
+200
-6
No files matched your search
+14
-4
@@ -26,6 +26,9 @@ local AuraList = types.AuraList
|
||||
---@class SquareIndicator
|
||||
local SquareIndicator = types.SquareIndicator
|
||||
|
||||
---@class IconIndicator
|
||||
local IconIndicator = types.IconIndicator
|
||||
|
||||
---@class SquareIndicator
|
||||
local BorderIndicator = types.BorderIndicator
|
||||
|
||||
@@ -148,12 +151,19 @@ function UnitFrame:CreateIndicator(indicator)
|
||||
indicator.fadeTime,
|
||||
indicator.flashTime
|
||||
)
|
||||
elseif kind == "BorderIndicator" then
|
||||
return BorderIndicator:new(
|
||||
elseif kind == "IconIndicator" then
|
||||
return IconIndicator:new(
|
||||
self,
|
||||
indicator.thickness,
|
||||
indicator.color
|
||||
indicator.size,
|
||||
indicator.point,
|
||||
indicator.x,
|
||||
indicator.y,
|
||||
indicator.showStacks,
|
||||
indicator.fadeTime,
|
||||
indicator.flashTime
|
||||
)
|
||||
elseif kind == "BorderIndicator" then
|
||||
return BorderIndicator:new(self, indicator.thickness, indicator.color)
|
||||
else
|
||||
error(string.format("Invalid Indicator kind `%s` requested", indicator.kind))
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user