/
rf.bar:SetAlpha(1) |
else |
local start, duration, runeReady = GetRuneCooldown(rune) |
rf.elapsed = 1 |
rf.start = start |
rf.duration = 1 / duration |
rf:SetScript("OnUpdate", RuneOnUpdate) |
if not duration or duration == 0 then |
rf:SetScript("OnUpdate", nil) |
rf.bar:SetValue(1, rf.bvalue) |
rf.bar:SetAlpha(1) |
else |
rf.elapsed = 1 |
rf.start = start |
rf.duration = 1 / duration |
rf:SetScript("OnUpdate", RuneOnUpdate) |
end |
end |
end |
UpdateRuneType = function(rune) |
local c = dbg.runecolor[ runeMapping[runeType] ] |
rf.bar:SetVertexColor(c.r, c.g, c.b) |
rf:Show() |
UpdateRuneBar(rune, select(3, GetRuneCooldown(rune))) |
else |
rf:Hide() |
do -- Aura Icons ----------------------------------------------------------------------------------------------------- |
local lbf = LibStub("LibButtonFacade", true) |
local lbf = nil |
local GetWeaponEnchantInfo = GetWeaponEnchantInfo |
local function BuffOnEnter(this) -- buff tooltip |
GameTooltip:SetOwner(this, "ANCHOR_BOTTOMRIGHT", 8, -16) |
## Title: Stuf Unit Frames |
## Author: TotalPackage |
## Notes: Main unitframes replacement. Assembly optional. |
## Version: 6.2.001 |
## Version: 6.2.002 |
## SavedVariables: StufDB |
## SavedVariablesPerCharacter: StufCharDB |