Mercurial > wow > reagentmaker
comparison CampFireButton.lua @ 101:060f5d0f7a35 v1.0beta10
Manage correctly the Campfire button
author | contrebasse |
---|---|
date | Fri, 20 May 2011 22:14:31 +0200 |
parents | b980c00affcd |
children | c8d527a9fb3a |
comparison
equal
deleted
inserted
replaced
100:0fd1fd1ba2d9 | 101:060f5d0f7a35 |
---|---|
32 local GetSpellCooldown = GetSpellCooldown | 32 local GetSpellCooldown = GetSpellCooldown |
33 btn:SetScript("OnUpdate",function(self) CooldownFrame_SetTimer(self.cooldown,GetSpellCooldown(CAMPFIRE_ID)); end) | 33 btn:SetScript("OnUpdate",function(self) CooldownFrame_SetTimer(self.cooldown,GetSpellCooldown(CAMPFIRE_ID)); end) |
34 | 34 |
35 -- Save info | 35 -- Save info |
36 cookingName = GetSpellInfo(COOKING_ID) | 36 cookingName = GetSpellInfo(COOKING_ID) |
37 | 37 |
38 -- Show if needed | 38 -- Show if needed |
39 A.ManageCampFireBtn() | 39 A.ManageCampFireBtn() |
40 end | 40 end |
41 | 41 |
42 -- Hide button | 42 -- Hide button |
43 function A.HideCampFireBtn() | 43 function A.HideCampFireBtn() |
44 btn:Hide() | 44 if btn then btn:Hide() end |
45 end | 45 end |
46 | 46 |
47 -- Show button if applicable | 47 -- Show button if applicable |
48 function A.ManageCampFireBtn() | 48 function A.ManageCampFireBtn() |
49 if not btn then return end | 49 if not btn then return end |