Quantcast
WoWInterface: SVN - oUF_ReadyCheck - Path Comparison - / Rev 7 and / Rev 6

WoWInterface SVN oUF_ReadyCheck

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 7 to Rev 6
    Reverse comparison

Rev 7 → Rev 6

trunk/oUF_ReadyCheck/oUF_ReadyCheck.lua
3,11 → 3,10
Elements handled:
.ReadyCheck [texture]
 
Options:
Shared:
- delayTime [value] default: 10
- fadeTime [value] default: 1.5
 
Add-on originally made by Starlon
--]]
 
local GetReadyCheckStatus = GetReadyCheckStatus
18,9 → 17,9
waiting = [=[Interface\RAIDFRAME\ReadyCheck-Waiting]=],
}
 
local onUpdate
local OnUpdate
do
function onUpdate(self, elapsed)
function OnUpdate(self, elapsed)
if(self.finish) then
self.finish = self.finish - elapsed
if(self.finish <= 0) then
48,15 → 47,16
end
end
 
local function update(self)
local function Update(self)
if(not IsRaidLeader() and not IsRaidOfficer() and not IsPartyLeader()) then return end
 
self.ReadyCheck:SetTexture(statusTexture[GetReadyCheckStatus(self.unit)])
self.ReadyCheck:SetAlpha(1)
self.ReadyCheck:Show()
local texture = self.ReadyCheck
texture:SetTexture(statusTexture[GetReadyCheckStatus(self.unit)])
texture:SetAlpha(1)
texture:Show()
end
 
local function prepare(self)
local function PrepareFade(self)
local readycheck = self.ReadyCheck
local dummy = readycheck.dummy
 
64,16 → 64,15
dummy.finish = readycheck.delayTime or 10
dummy.fade = readycheck.fadeTime or 1.5
dummy.offset = readycheck.fadeTime or 1.5
 
dummy:SetScript('OnUpdate', OnUpdate)
end
 
local function enable(self)
local function Enable(self)
local readycheck = self.ReadyCheck
if(readycheck) then
self:RegisterEvent('READY_CHECK', update)
self:RegisterEvent('READY_CHECK_CONFIRM', update)
self:RegisterEvent('READY_CHECK_FINISHED', prepare)
self:RegisterEvent('READY_CHECK', Update)
self:RegisterEvent('READY_CHECK_CONFIRM', Update)
self:RegisterEvent('READY_CHECK_FINISHED', PrepareFade)
 
readycheck.dummy = CreateFrame('Frame', nil, self)
 
81,12 → 80,12
end
end
 
local function disable(self)
local function Disable(self)
if(self.ReadyCheck) then
self:UnregisterEvent('READY_CHECK', update)
self:UnregisterEvent('READY_CHECK_CONFIRM', update)
self:UnregisterEvent('READY_CHECK_FINISHED', prepare)
self:UnregisterEvent('READY_CHECK', Update)
self:UnregisterEvent('READY_CHECK_CONFIRM', Update)
self:UnregisterEvent('READY_CHECK_FINISHED', PrepareFade)
end
end
 
oUF:AddElement('ReadyCheck', update, enable, disable)
\ No newline at end of file +oUF:AddElement('ReadyCheck', Update, Enable, Disable) \ No newline at end of file
trunk/oUF_ReadyCheck/oUF_ReadyCheck.toc
1,6 → 1,6
## Interface: 30200
## Author: p3lim
## Version: 30200.wowi:revision
## Interface: 30100
## Author: p3lim, Starlon
## Version: 30100.wowi:revision
## Title: oUF ReadyCheck
## Notes: ReadyCheck support for oUF layouts.
## RequiredDeps: oUF