comparison BuffButton.lua @ 7:5301c68f28d8

TrackerBlock - use IsModifiedClick function to determine appropriate OnClick actions - handle 'CHATLINK' modifier - handle 'TOGGLEQUESTWATCH' modifier TrackerBlockObjectives - use a generic framework to manage frame creation for various criteria tracker types: - ProgressBar when Blizzard flag data indicates so - skip when Blizzard flag data indicates so - DynamicText otherwise - events related to the criteria are registered in the criteria frame, and unregistered when the frame is hidden, either by destruction of its parent or completion
author Nenue
date Fri, 01 Apr 2016 12:27:05 -0400
parents b0447b382f36
children
comparison
equal deleted inserted replaced
6:589de8ea05b9 7:5301c68f28d8
157 157
158 ----------------------------------- 158 -----------------------------------
159 -- Background decorations layer 159 -- Background decorations layer
160 if not d[i] then 160 if not d[i] then
161 d[i] = CreateFrame('Frame', buffName..i..'Decor', _G.UIParent, 'VeneerDecorTemplate') 161 d[i] = CreateFrame('Frame', buffName..i..'Decor', _G.UIParent, 'VeneerDecorTemplate')
162 --RegisterStateDriver(d[i], "visibility", "[petbattle] [vehicleui] hide") 162 -- todo: sort out a way to fix this without creating taint issues
163 RegisterStateDriver(d[i], "visibility", "[petbattle] [vehicleui] hide")
163 end 164 end
164 165
165 d[i]:SetPoint('BOTTOMLEFT', guide.icon, 'BOTTOMLEFT', -buffBorder, -buffBorder) 166 d[i]:SetPoint('BOTTOMLEFT', guide.icon, 'BOTTOMLEFT', -buffBorder, -buffBorder)
166 d[i]:SetPoint('TOPRIGHT', guide.icon, 'TOPRIGHT', buffBorder, buffBorder) 167 d[i]:SetPoint('TOPRIGHT', guide.icon, 'TOPRIGHT', buffBorder, buffBorder)
167 168