diff SkeletonKey/BindingsUI.lua @ 15:32d64e42ec9b

- resolve pet bar actions for binding slots - detect type of petaction (can be spell, stance, or 'PETACTION') - keep track of displayed pet ability slots and update them alongside pet cache refreshes
author Nenue
date Fri, 29 Jul 2016 03:27:15 -0400
parents 82170735e67c
children cdd387d39137
line wrap: on
line diff
--- a/SkeletonKey/BindingsUI.lua	Thu Jul 28 23:58:53 2016 -0400
+++ b/SkeletonKey/BindingsUI.lua	Fri Jul 29 03:27:15 2016 -0400
@@ -226,7 +226,6 @@
 --- Retrieves button at index; creates said button and instates any stored parameters
 do
   local leftSlot, upSlot
-  local buttonsDepth = 0
   kb.GetSlot = function(index)
 
     local slot  = index + kb.scrollOffset
@@ -245,11 +244,9 @@
       if index == 1 then
         button:SetPoint('TOPLEFT', kb.bg, 'TOPLEFT', BUTTON_PADDING, - BUTTON_PADDING)
         upSlot = button
-        buttonsDepth = KEY_BUTTON_SIZE + BUTTON_PADDING * 2
       elseif newRow then
         button:SetPoint('TOPLEFT', upSlot, 'BOTTOMLEFT', 0, -BUTTON_SPACING)
         upSlot = button
-        buttonsDepth = buttonsDepth + KEY_BUTTON_SIZE + BUTTON_SPACING
       else
         button:SetPoint('TOPLEFT', leftSlot, 'TOPRIGHT', BUTTON_HSPACING, 0)
       end