Mercurial > wow > buffalo2
comparison Modules/BuffFrame.lua @ 110:73316951ce73
- Fix extra value text updates
author | Nick@Zahhak |
---|---|
date | Mon, 06 Mar 2017 02:31:15 -0500 |
parents | a41f6b74709a |
children | 8c94bee4fdfc |
comparison
equal
deleted
inserted
replaced
109:26938ae258b7 | 110:73316951ce73 |
---|---|
8 Known Limitations: | 8 Known Limitations: |
9 - Individual BuffButton frames are created upon use, making it difficult to do any sort of securestate priming | 9 - Individual BuffButton frames are created upon use, making it difficult to do any sort of securestate priming |
10 - TempEnchant info returns relative values only, and they don't synchronize with aura events | 10 - TempEnchant info returns relative values only, and they don't synchronize with aura events |
11 - BuffButtons can only be hidden/shown by blizzcode, so functions doing that have to be accounted for | 11 - BuffButtons can only be hidden/shown by blizzcode, so functions doing that have to be accounted for |
12 --]] | 12 --]] |
13 | |
14 | 13 |
15 local BUFFS_PER_ROW = 12 | 14 local BUFFS_PER_ROW = 12 |
16 local BUFF_BUTTON_SIZE = 48 | 15 local BUFF_BUTTON_SIZE = 48 |
17 local BUFF_BUTTON_SPACING_H = 5 | 16 local BUFF_BUTTON_SPACING_H = 5 |
18 local BUFF_BUTTON_SPACING_V = 14 | 17 local BUFF_BUTTON_SPACING_V = 14 |
422 else | 421 else |
423 self.fg:SetWidth(nw) | 422 self.fg:SetWidth(nw) |
424 end | 423 end |
425 | 424 |
426 | 425 |
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 | |
448 end) | 426 end) |
449 | 427 |
450 facade.cooldown:Show() | 428 facade.cooldown:Show() |
451 facade.cooldown:SetCooldown(startTime, duration) | 429 facade.cooldown:SetCooldown(startTime, duration) |
452 else | 430 else |
462 frame.count:ClearAllPoints() | 440 frame.count:ClearAllPoints() |
463 else | 441 else |
464 facade.count:Hide() | 442 facade.count:Hide() |
465 end | 443 end |
466 | 444 |
445 | |
446 facade.overlay.Value1:SetText(value1) | |
447 facade.overlay.Value2:SetText(value2) | |
448 facade.overlay.Value3:SetText(value3) | |
467 | 449 |
468 else | 450 else |
469 facade.progress:Hide() | 451 facade.progress:Hide() |
470 facade.cooldown:SetCooldown(0,0) | 452 facade.cooldown:SetCooldown(0,0) |
471 facade.cooldown:Hide() | 453 facade.cooldown:Hide() |
491 end | 473 end |
492 | 474 |
493 function plugin:OnAuraButton_Update (name, index, filter) | 475 function plugin:OnAuraButton_Update (name, index, filter) |
494 local bName = name..index | 476 local bName = name..index |
495 local frame = _G[bName] | 477 local frame = _G[bName] |
496 if frame and frame:IsVisible() then | 478 if frame and frame:IsShown() then |
497 -- if the name or expirationTime changed | 479 -- if the name or expirationTime changed |
498 | 480 |
499 if not skinnedFrames[bName] then | 481 if not skinnedFrames[bName] then |
500 tinsert(pendingFrames, bName) | 482 tinsert(pendingFrames, bName) |
501 end | 483 end |