comparison PetActionButton.lua @ 297:f7a5676c9517

5.04 updates: - refresh button checked state and cooldown in C-code - display count for actions with charges - update action button events - pet action buttons - filter UNIT_AURA events by 'pet' type
author Flick
date Wed, 14 Nov 2012 16:34:14 -0800
parents 276165a0e860
children
comparison
equal deleted inserted replaced
296:08a1fbc9ee9b 297:f7a5676c9517
45 "PLAYER_CONTROL_LOST", 45 "PLAYER_CONTROL_LOST",
46 "PLAYER_CONTROL_GAINED", 46 "PLAYER_CONTROL_GAINED",
47 "PLAYER_FARSIGHT_FOCUS_CHANGED", 47 "PLAYER_FARSIGHT_FOCUS_CHANGED",
48 "UNIT_PET", 48 "UNIT_PET",
49 "UNIT_FLAGS", 49 "UNIT_FLAGS",
50 "UNIT_AURA",
51 "PET_BAR_UPDATE", 50 "PET_BAR_UPDATE",
52 "PET_BAR_UPDATE_COOLDOWN", 51 "PET_BAR_UPDATE_COOLDOWN",
53 "PET_BAR_UPDATE_USABLE", 52 "PET_BAR_UPDATE_USABLE",
54 "UPDATE_BINDINGS", 53 "UPDATE_BINDINGS",
55 } 54 }
143 -- event registration 142 -- event registration
144 f:RegisterForDrag("LeftButton", "RightButton") 143 f:RegisterForDrag("LeftButton", "RightButton")
145 for _, evt in pairs(eventList) do 144 for _, evt in pairs(eventList) do
146 f:RegisterEvent(evt) 145 f:RegisterEvent(evt)
147 end 146 end
147 f:RegisterUnitEvent("UNIT_AURA","pet")
148 148
149 -- attach to skinner 149 -- attach to skinner
150 bar:SkinButton(self, 150 bar:SkinButton(self,
151 { 151 {
152 AutoCast = f.autoCastShine, 152 AutoCast = f.autoCastShine,