WoWInterface SVN Buffed

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 4 to Rev 9
    Reverse comparison

Rev 4 → Rev 9

Buffed!.lua
428,6 → 428,7
f.bar.horiz = pos.bar.horiz
f.bar:SetWidth(pos.bar.width)
f.bar:SetHeight(pos.bar.height)
f.bar.tex:SetVertexColor(pos.bar,r, pos.bar.g, pos.bar.b, pos.bar.a)
BSetPoint(f.bar, pos.bar.x-pos.x, pos.bar.y-pos.y, f, "CENTER")
BSetPoint(f.durationb, pos.durationb.x-pos.x, pos.durationb.y-pos.y, f, "CENTER")
end
638,7 → 639,7
info.tooltipTitle = "Reset Size"
info.tooltipText = "Resets the size of the buff to default values"
if (ActiveButton:GetName() == "BuffedMaster1") then
info.func = ForAllFrames(function(f) f:SetWidth(30) f:SetHeight(30) end)
info.func = function() ForAllFrames(function(f) f:SetWidth(30) f:SetHeight(30) end) end
else
info.func = function() ActiveButton:SetWidth(30) ActiveButton:SetHeight(30) end
end
672,14 → 673,14
info.tooltipTitle = "Delete Filter"
info.tooltipText = "Deletes the filter, sending the buff back to the default stack"
info.func = function()
info.hasArrow = false
ActiveButton.enabled = nil
BuffedProfiles.FilterFrames[ActiveButton.Ftype]["BuffedFilter"..i] = nil
print(ActiveButton.name.." filter deleted")
ActiveButton.name = nil
ToggleLock()
ToggleLock()
BuffedUpdate("force")
info.hasArrow = false
ActiveButton.enabled = nil
BuffedProfiles.FilterFrames[ActiveButton.Ftype]["BuffedFilter"..i] = nil
print(ActiveButton.name.." filter deleted")
ActiveButton.name = nil
ToggleLock()
ToggleLock()
BuffedUpdate("force")
end
UIDropDownMenu_AddButton(info, level)
end
755,7 → 756,7
info.checked = nil
info.tooltipTitle = "Save the current position of all buffs"
info.tooltipText = "Save the current buff position as the location for buffs out of combat"
info.func = ForAllFrames(function(f, FrameName, FrameNum, i)
info.func = function() ForAllFrames(function(f, FrameName, FrameNum, i)
if not BuffedProfiles[UnitName("player")] then
BuffedProfiles[UnitName("player")] = {combat = {}, nocombat = {}}
end
763,12 → 764,13
local width, height = floor(f:GetWidth() + 0.5), floor(f:GetHeight() + 0.5)
BuffedProfiles[UnitName("player")].nocombat["Buffed"..FrameName..i] = {width = width, height = height, x = x, y = y, alpha = f.alpha,}
x, y = BGetPoint(f.bar)
local r, g, b, a = f.bar.tex:GetVertexColor()
width, height = floor(f.bar:GetWidth() + 0.5), floor(f.bar:GetHeight() + 0.5)
BuffedProfiles[UnitName("player")].nocombat["Buffed"..FrameName..i].bar = {shown = f.bar:IsShown(), horiz = f.bar.horiz, width = width, height = height, x = x, y = y}
BuffedProfiles[UnitName("player")].nocombat["Buffed"..FrameName..i].bar = {shown = f.bar:IsShown(), horiz = f.bar.horiz, width = width, height = height, x = x, y = y, r = r, g = g, b = b, a = a}
x, y = BGetPoint(f.durationb)
width, height = floor(f.durationb:GetWidth() + 0.5), floor(f.durationb:GetHeight() + 0.5)
BuffedProfiles[UnitName("player")].nocombat["Buffed"..FrameName..i].durationb = {shown = f.durationb:IsShown(), width = width, height = height, x = x, y = y}
end)
end) end
UIDropDownMenu_AddButton(info, level)
end
elseif level == 2 then
791,7 → 793,7
info.tooltipTitle = ""
info.tooltipText = ""
UIDropDownMenu_AddButton(info, level)
--[[
 
info.text = "Colour"
info.value = "Colour"
info.tooltipTitle = "Colour"
806,7 → 808,7
info.opacity = 1-a
info.swatchFunc = function() local R,G,B = ColorPickerFrame:GetColorRGB() ActiveButton.bar.tex:SetVertexColor(R,G,B) end
info.opacityFunc = function() local A = OpacitySliderFrame:GetValue() local R,G,B = ColorPickerFrame:GetColorRGB() ActiveButton.bar.tex:SetVertexColor(R,G,B, 1-A) end
UIDropDownMenu_AddButton(info, level)]]
UIDropDownMenu_AddButton(info, level)
 
end
elseif level == 3 then
817,7 → 819,7
info.tooltipText = ""
info.checked = ActiveButton.bar.horiz
if (ActiveButton:GetName() == "BuffedMaster1") then
info.func = ForAllFrames(function(f) f.bar.horiz = true end)
info.func = function() ForAllFrames(function(f) f.bar.horiz = true end) end
else
info.func = function() ActiveButton.bar.horiz = true end
end
829,7 → 831,7
info.tooltipText = ""
info.checked = not ActiveButton.bar.horiz
if (ActiveButton:GetName() == "BuffedMaster1") then
info.func = ForAllFrames(function(f) f.bar.horiz = false end)
info.func = function() ForAllFrames(function(f) f.bar.horiz = false end) end
else
info.func = function() ActiveButton.bar.horiz = false end
end