WoWInterface SVN ShinyBuffs

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 13 to Rev 14
    Reverse comparison

Rev 13 → Rev 14

trunk/ShinyBuffs/ShinyBuffs.toc
2,7 → 2,7
## Title: ShinyBuffs
## Author: Seerah
## Notes: Skin and move your buffs/debuffs!
## Version: 1.0.5
## Version: 1.1
## OptionalDeps: Ace3, LibSharedMedia-3.0, AceGUI-3.0-SharedMediaWidgets
## SavedVariables: ShinyBuffsDB
## SavedVariablesPerCharacter: ShinyBuffsPCDB
trunk/ShinyBuffs/ShinyBuffs.lua
33,6 → 33,7
border = "SB border",
borColor = {r = .5, g = .5, b = .5},
classbor = false,
debuffTypeBor = false,
sbar = "Solid",
sbarColor = {r = 0, g = 1, b = 0},
classbar = false,
60,9 → 61,6
if bor then
bor:SetParent(btn.bg)
bor:SetDrawLayer("OVERLAY", 1)
bor:ClearAllPoints()
bor:SetAllPoints(icon)
bor:SetTexture(1,1,1,1)
end
--
btn.bar = CreateFrame("StatusBar", nil, btn.bg)
80,6 → 78,16
end
if bor then
bor:SetAlpha(db.borAlpha)
bor:ClearAllPoints()
if db.debuffTypeBor then
bor:SetAllPoints(btn.bg)
bor:SetTexture("Interface\\Buttons\\UI-Debuff-Overlays")
bor:SetTexCoord(0.296875, 0.5703125, 0, 0.515625)
bor:SetAlpha(1)
else
bor:SetAllPoints(icon)
bor:SetColorTexture(1,1,1,1)
end
end
dur:SetFont(LSM:Fetch("font", db.font), db[svtable].dfsize, db.fstyle)
c:SetFont(LSM:Fetch("font", db.font), db[svtable].cfsize, db.fstyle)
159,7 → 167,7
if dur == 0 then
self:SetValue(1)
else
if dur and val then
if exps then
val = exps-GetTime()
self:SetValue(val/dur)
end
197,29 → 205,6
end
end
 
--[[local function SkinConsolidated(firstTime)
local cb = ConsolidatedBuffs
local dur = cb.duration
local c = cb.count
local icon = ConsolidatedBuffsIcon
 
SkinningMachine("buffs", cb, dur, c, icon, nil, firstTime)
 
CONSOLIDATED_BUFF_ROW_HEIGHT = db.buffs.size*.8
 
if firstTime then
icon:SetTexture("Interface\\ICONS\\ACHIEVEMENT_GUILDPERK_QUICK AND DEAD")
c:ClearAllPoints()
c:SetPoint("CENTER")
cb.bar:SetValue(1)
--fix the tooltip width
local CBTipWidth = ConsolidatedBuffsTooltip.SetWidth
hooksecurefunc(ConsolidatedBuffsTooltip, "SetWidth", function(self)
CBTipWidth(self, max(BuffFrame.numConsolidated*db.buffs.size, 100))
end)
end
end]]
 
local OLD_SetUnitAura, NEW_SetUnitAura, caster, casterName = GameTooltip.SetUnitAura
local function WhoCast()
if db.whoCast then
270,7 → 255,7
end)
end
SBmover:SetAlpha(moverShown and 1 or 0)
SBmover:EnableMouse(moverShown and 1 or 0)
SBmover:EnableMouse(moverShown)
end
 
local options = {
298,7 → 283,6
SkinDebuffs(i,false)
end
SkinTench(false)
--SkinConsolidated(false)
end,
order = 2,
},
323,7 → 307,6
SkinDebuffs(i,false)
end
SkinTench(false)
--SkinConsolidated(false)
end,
order = 3,
},
340,13 → 323,13
BUFF_DURATION_WARNING_TIME = 60
end
end,
order = 3.5,
order = 4,
},
buffFonts = {
name = "Buff Font Sizes",
type = "group",
inline = true,
order = 4,
order = 5,
args = {
durSize = {
name = "Duration",
361,7 → 344,6
SkinBuffs(i,false)
end
SkinTench(false)
--SkinConsolidated(false)
end,
order = 1,
},
378,7 → 360,6
SkinBuffs(i,false)
end
SkinTench(false)
--SkinConsolidated(false)
end,
order = 2,
},
396,7 → 377,7
name = "Debuff Font Sizes",
type = "group",
inline = true,
order = 5,
order = 6,
args = {
durSize = {
name = "Duration",
463,7 → 444,6
SkinDebuffs(i,false)
end
SkinTench(false)
--SkinConsolidated(false)
end,
order = 1,
},
483,7 → 463,6
SkinDebuffs(i,false)
end
SkinTench(false)
--SkinConsolidated(false)
end,
order = 2,
},
501,10 → 480,23
SkinDebuffs(i,false)
end
SkinTench(false)
--SkinConsolidated(false)
end,
order = 3,
},
debuffTypeBor = {
name = "By Debuff Type",
desc = "Display debuff dispel type as border instead of icon overlay.",
type = "toggle",
width = "half",
get = function() return db.debuffTypeBor end,
set = function()
db.debuffTypeBor = not db.debuffTypeBor
for i=1,numDebuffsSkinned do
SkinDebuffs(i,false)
end
end,
order = 4,
},
},
},
sbar = {
529,7 → 521,6
SkinDebuffs(i,false)
end
SkinTench(false)
--SkinConsolidated(false)
end,
order = 1,
},
549,7 → 540,6
SkinDebuffs(i,false)
end
SkinTench(false)
--SkinConsolidated(false)
end,
order = 2,
},
567,7 → 557,6
SkinDebuffs(i,false)
end
SkinTench(false)
--SkinConsolidated(false)
end,
order = 3,
},
595,7 → 584,6
SkinDebuffs(i,false)
end
SkinTench(false)
--SkinConsolidated(false)
end,
order = 1,
},
615,7 → 603,6
SkinDebuffs(i,false)
end
SkinTench(false)
--SkinConsolidated(false)
end,
order = 2,
},
633,7 → 620,6
SkinDebuffs(i,false)
end
SkinTench(false)
--SkinConsolidated(false)
end,
order = 3,
},
718,7 → 704,6
SkinBuffs(i,false)
end
SkinTench(false)
SkinConsolidated(false)
end,
order = 1,
},
835,14 → 820,16
SkinDebuffs(i,false)
end
SkinTench(false)
--SkinConsolidated(false)
end
end)
end
 
LibStub("AceConfig-3.0"):RegisterOptionsTable("ShinyBuffs", options)
SB.optionsFrame = LibStub("AceConfigDialog-3.0"):AddToBlizOptions("ShinyBuffs", "ShinyBuffs")
SlashCmdList["SHINYBUFFS"] = function() InterfaceOptionsFrame_OpenToCategory("ShinyBuffs") end
SlashCmdList["SHINYBUFFS"] = function()
InterfaceOptionsFrame_OpenToCategory("ShinyBuffs")
InterfaceOptionsFrame_OpenToCategory("ShinyBuffs")
end
SLASH_SHINYBUFFS1 = "/shinybuffs"
SLASH_SHINYBUFFS2 = "/sb"
 
859,7 → 846,6
SkinDebuffs(i, true)
end
SkinTench(true)
--SkinConsolidated(true)
 
--keep other stuff (like ticket frame) from moving buffs
BuffFrame.NewSetPoint = BuffFrame.SetPoint
869,25 → 855,23
WhoCast()
 
SB:UnregisterEvent("PLAYER_ENTERING_WORLD")
SB:RegisterEvent("UNIT_AURA")
SB:RegisterUnitEvent("UNIT_AURA", "player")
SB:SetScript("OnEvent", function(s,e,unit)
if unit == "player" then
if BUFF_ACTUAL_DISPLAY > numBuffsSkinned then
for i = numBuffsSkinned+1, BUFF_ACTUAL_DISPLAY do
SkinBuffs(i, true)
end
if BUFF_ACTUAL_DISPLAY > numBuffsSkinned then
for i = numBuffsSkinned+1, BUFF_ACTUAL_DISPLAY do
SkinBuffs(i, true)
end
if DEBUFF_ACTUAL_DISPLAY > numDebuffsSkinned then
for i = numDebuffsSkinned+1, DEBUFF_ACTUAL_DISPLAY do
SkinDebuffs(i, true)
end
end
if DEBUFF_ACTUAL_DISPLAY > numDebuffsSkinned then
for i = numDebuffsSkinned+1, DEBUFF_ACTUAL_DISPLAY do
SkinDebuffs(i, true)
end
--don't bother checking if they're all skinned
if numBuffsSkinned == BUFF_MAX_DISPLAY and numDebuffsSkinned == DEBUFF_MAX_DISPLAY then
SB:UnregisterEvent("UNIT_AURA")
SB:SetScript("OnEvent", nil)
end
end
--don't bother checking if they're all skinned
if numBuffsSkinned == BUFF_MAX_DISPLAY and numDebuffsSkinned == DEBUFF_MAX_DISPLAY then
SB:UnregisterEvent("UNIT_AURA")
SB:SetScript("OnEvent", nil)
end
end)
PEW = nil
end