Mercurial > wow > buffalo2
comparison 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 |
comparison
equal
deleted
inserted
replaced
5:e9b61fd5f607 | 6:589de8ea05b9 |
---|---|
5 -- Created: 3/29/2016 7:07 PM | 5 -- Created: 3/29/2016 7:07 PM |
6 local B = select(2,...).frame | 6 local B = select(2,...).frame |
7 local mod = B:RegisterModule("ObjectiveTracker", _G.VeneerObjectiveWrapper, 'BuffFrame') | 7 local mod = B:RegisterModule("ObjectiveTracker", _G.VeneerObjectiveWrapper, 'BuffFrame') |
8 local print = B.print('Objectives') | 8 local print = B.print('Objectives') |
9 local Tracker, AutoQuest, Quest, Cheevs = mod.Tracker, mod.AutoQuest, mod.Quest, mod.Cheevs | 9 local Tracker, AutoQuest, Quest, Cheevs = mod.Tracker, mod.AutoQuest, mod.Quest, mod.Cheevs |
10 local itemButtonSize, itemButtonSpacing = 36, 1 | |
10 | 11 |
11 -------------------------------------------------------------------- | 12 -------------------------------------------------------------------- |
12 --- Tracker-specific widgets and their handlers | 13 --- Tracker-specific widgets and their handlers |
13 -------------------------------------------------------------------- | 14 -------------------------------------------------------------------- |
14 | 15 |
111 end | 112 end |
112 else | 113 else |
113 local buttonIndex = mod.Quest.numButtons + #freeButtons + 1 | 114 local buttonIndex = mod.Quest.numButtons + #freeButtons + 1 |
114 itemButton = CreateFrame('Button', 'VeneerQuestItemButton' .. buttonIndex, UIParent, 'VeneerItemButtonTemplate') | 115 itemButton = CreateFrame('Button', 'VeneerQuestItemButton' .. buttonIndex, UIParent, 'VeneerItemButtonTemplate') |
115 itemButton.buttonIndex = buttonIndex | 116 itemButton.buttonIndex = buttonIndex |
116 itemButton:SetSize(48, 48) | 117 itemButton:SetSize(itemButtonSize, itemButtonSize) |
117 itemButton:GetNormalTexture():SetSize(80,80) | 118 itemButton:GetNormalTexture():SetSize(itemButtonSize * (5/3), itemButtonSize * (5/3)) |
118 print(' |cFFFF4400starting new button', itemButton:GetName()) | 119 print(' |cFFFF4400starting new button', itemButton:GetName()) |
119 end | 120 end |
120 mod.Quest.numButtons = mod.Quest.numButtons + 1 | 121 mod.Quest.numButtons = mod.Quest.numButtons + 1 |
121 else | 122 else |
122 itemButton = info.itemButton | 123 itemButton = info.itemButton |