diff ObjectiveUI.lua @ 6:589de8ea05b9

- validate tracked objects' existence by use of those handler.Info tables we made - apply collision checking to action buttons when their corresponding entry has scrolled out
author Nenue
date Fri, 01 Apr 2016 01:30:42 -0400
parents e9b61fd5f607
children 5301c68f28d8
line wrap: on
line diff
--- a/ObjectiveUI.lua	Thu Mar 31 15:58:08 2016 -0400
+++ b/ObjectiveUI.lua	Fri Apr 01 01:30:42 2016 -0400
@@ -7,6 +7,7 @@
 local mod = B:RegisterModule("ObjectiveTracker", _G.VeneerObjectiveWrapper, 'BuffFrame')
 local print = B.print('Objectives')
 local Tracker, AutoQuest, Quest, Cheevs = mod.Tracker, mod.AutoQuest, mod.Quest, mod.Cheevs
+local itemButtonSize, itemButtonSpacing =  36, 1
 
 --------------------------------------------------------------------
 --- Tracker-specific widgets and their handlers
@@ -113,8 +114,8 @@
       local buttonIndex = mod.Quest.numButtons + #freeButtons + 1
       itemButton = CreateFrame('Button', 'VeneerQuestItemButton' .. buttonIndex, UIParent, 'VeneerItemButtonTemplate')
       itemButton.buttonIndex = buttonIndex
-      itemButton:SetSize(48, 48)
-      itemButton:GetNormalTexture():SetSize(80,80)
+      itemButton:SetSize(itemButtonSize, itemButtonSize)
+      itemButton:GetNormalTexture():SetSize(itemButtonSize * (5/3), itemButtonSize * (5/3))
       print('    |cFFFF4400starting new button', itemButton:GetName())
     end
     mod.Quest.numButtons = mod.Quest.numButtons + 1