This commit is contained in:
Bunny67
2018-06-07 21:44:10 +03:00
parent d34a72dd33
commit 06fa470c01
4 changed files with 10 additions and 8 deletions
@@ -24,6 +24,8 @@ local StickyFrames, oldminor = LibStub:NewLibrary(MAJOR, MINOR)
if not StickyFrames then return end
local ipairs = ipairs
--[[---------------------------------------------------------------------------------
Class declaration, along with a temporary table to hold any existing OnUpdate
scripts.
@@ -134,8 +136,7 @@ function StickyFrames:GetUpdateFunc(frame, frameList, xoffset, yoffset, left, to
frame:SetPoint("CENTER", UIParent, "BOTTOMLEFT", x+xoffset, y+yoffset)
StickyFrames.sticky[frame] = nil
for i = 1, table.getn(frameList) do
local v = frameList[i]
for i, v in ipairs(frameList) do
if frame ~= v and frame ~= v:GetParent() and not IsShiftKeyDown() and v:IsVisible() then
if self:SnapFrame(frame, v, left, top, right, bottom) then
StickyFrames.sticky[frame] = v
+2 -2
View File
@@ -154,8 +154,8 @@ local function updateIcon(element, unit, index, offset, filter, isDebuff, visibl
end
if element.forceShow then
texture = "Interface\\Icons\\Spell_Holy_DivineSpirit"
count, dispelType, duration, expiration = 5, 'Magic', 0, 60
texture = 'Interface\\Icons\\Spell_Holy_DivineSpirit'
count, dispelType = 5, 'Magic'
end
if texture then