changeset 78:08951972041a

- adjust top anchors for OrderHallCommandBar
author Nenue
date Tue, 30 Aug 2016 03:32:22 -0400
parents 51f248dc0276
children 0784b87f9722
files Modules/BuffFrame.lua
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)