Skip to content

Commit

Permalink
readycheckindicator: Hardcode icon textures
Browse files Browse the repository at this point in the history
Fixes: #651
  • Loading branch information
ls- committed Jul 13, 2023
1 parent 2248262 commit bb3358d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions elements/readycheckindicator.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ local Private = oUF.Private

local unitExists = Private.unitExists

-- TODO: Replace with atlases in the next major
local READY_CHECK_READY_TEXTURE = "Interface\\RaidFrame\\ReadyCheck-Ready"
local READY_CHECK_NOT_READY_TEXTURE = "Interface\\RaidFrame\\ReadyCheck-NotReady"
local READY_CHECK_WAITING_TEXTURE = "Interface\\RaidFrame\\ReadyCheck-Waiting"

local function OnFinished(self)
local element = self:GetParent()
element:Hide()
Expand Down Expand Up @@ -127,9 +132,9 @@ local function Enable(self, unit)
element.__owner = self
element.ForceUpdate = ForceUpdate

element.readyTexture = element.readyTexture or _G.READY_CHECK_READY_TEXTURE
element.notReadyTexture = element.notReadyTexture or _G.READY_CHECK_NOT_READY_TEXTURE
element.waitingTexture = element.waitingTexture or _G.READY_CHECK_WAITING_TEXTURE
element.readyTexture = element.readyTexture or READY_CHECK_READY_TEXTURE
element.notReadyTexture = element.notReadyTexture or READY_CHECK_NOT_READY_TEXTURE
element.waitingTexture = element.waitingTexture or READY_CHECK_WAITING_TEXTURE

local AnimationGroup = element:CreateAnimationGroup()
AnimationGroup:HookScript('OnFinished', OnFinished)
Expand Down

0 comments on commit bb3358d

Please sign in to comment.