# HG changeset patch # User Nenue # Date 1472542342 14400 # Node ID 08951972041a33cd6726570f62ae4bc81458563b # Parent 51f248dc02762adec13fa88d3f89db97334f6e9e - adjust top anchors for OrderHallCommandBar diff -r 51f248dc0276 -r 08951972041a Modules/BuffFrame.lua --- a/Modules/BuffFrame.lua Sat Aug 27 10:51:08 2016 -0400 +++ b/Modules/BuffFrame.lua Tue Aug 30 03:32:22 2016 -0400 @@ -130,6 +130,7 @@ skinnedFrames[frame] = frame frame:SetSize(BUFF_BUTTON_SIZE,BUFF_BUTTON_SIZE) + local offset = BUFF_BUTTON_ZOOM/2 icon:SetTexCoord(offset, 1 - offset, offset, 1 - offset) if border then @@ -328,6 +329,7 @@ --DebuffButton1 --todo: separate frame groups and iterate over them at appropriate times if BuffButton1 then + TempEnchant1:SetPoint('TOPRIGHT', BuffButton1, 'TOPRIGHT', BuffButton1:GetWidth()+4, 0) end @@ -340,7 +342,11 @@ buff:ClearAllPoints() if mod(numBuffs,BUFFS_PER_ROW) == 1 then if numBuffs == 1 then - buff:SetPoint('TOPRIGHT', UIParent, 'TOPRIGHT', BUFF_FRAMES_X, BUFF_FRAMES_Y) + if OrderHallCommandBar and OrderHallCommandBar:IsVisible() then + buff:SetPoint('TOPRIGHT', OrderHallCommandBar, 'BOTTOMRIGHT', BUFF_FRAMES_X, BUFF_FRAMES_Y) + else + buff:SetPoint('TOPRIGHT', UIParent, 'TOPRIGHT', BUFF_FRAMES_X, BUFF_FRAMES_Y) + end plugin.currentTop = buff:GetTop() else buff:SetPoint('TOPRIGHT', topBuff, 'BOTTOMRIGHT', 0, -BUFF_BUTTON_SPACING_V)