Mercurial > wow > buffalo2
comparison Modules/BuffFrame.lua @ 108:a41f6b74709a
- Handler number and boolean cluster arguments as positioning priority layer and "always top" respectively
- Use SetShown and IsShown instead of IsVisible in doing full re-anchor checks
author | Nick@Zahhak |
---|---|
date | Sat, 25 Feb 2017 11:42:07 -0500 |
parents | 6fa74abd83fd |
children | 73316951ce73 |
comparison
equal
deleted
inserted
replaced
107:ff00679a7817 | 108:a41f6b74709a |
---|---|
387 --[[ | 387 --[[ |
388 if frame.count then | 388 if frame.count then |
389 frame.count:SetText('test') | 389 frame.count:SetText('test') |
390 frame.count:Show() | 390 frame.count:Show() |
391 end | 391 end |
392 --]] | 392 --]] |
393 local name, rank, icon, count, _, duration, expires = UnitAura(frame.unit, frame:GetID(), frame.filter) | 393 |
394 local name, rank, icon, count, dispelType, duration, expires, caster, isStealable, nameplateShowPersonal, spellID, canApplyAura, isBossDebuff, _, nameplateShowAll, timeMod, value1, value2, value3 = UnitAura(frame.unit, frame:GetID(), frame.filter) | |
395 | |
394 | 396 |
395 | 397 |
396 if expires and duration then | 398 if expires and duration then |
397 if duration ~= 0 then | 399 if duration ~= 0 then |
398 local startTime = (expires - duration) | 400 local startTime = (expires - duration) |
418 self:Hide() | 420 self:Hide() |
419 self:SetScript('OnUpdate', nil) | 421 self:SetScript('OnUpdate', nil) |
420 else | 422 else |
421 self.fg:SetWidth(nw) | 423 self.fg:SetWidth(nw) |
422 end | 424 end |
425 | |
426 | |
427 if value1 then | |
428 facade.overlay.Value1:Show() | |
429 facade.overlay.Value1:SetText(value1) | |
430 else | |
431 facade.overlay.Value1:Hide() | |
432 end | |
433 | |
434 if value2 then | |
435 facade.overlay.Value2:Show() | |
436 facade.overlay.Value2:SetText(value2) | |
437 else | |
438 facade.overlay.Value2:Hide() | |
439 end | |
440 | |
441 if value3 then | |
442 facade.overlay.Value3:Show() | |
443 facade.overlay.Value3:SetText(value3) | |
444 else | |
445 facade.overlay.Value3:Hide() | |
446 end | |
447 | |
423 end) | 448 end) |
424 | 449 |
425 facade.cooldown:Show() | 450 facade.cooldown:Show() |
426 facade.cooldown:SetCooldown(startTime, duration) | 451 facade.cooldown:SetCooldown(startTime, duration) |
427 else | 452 else |