Mercurial > wow > reagentmaker
comparison ReagentMaker.lua @ 98:b980c00affcd
Added a button to cast a campfire
I got a problem with newlines and merging with a non-Mercurial repository, I hope noting broke...
| author | contrebasse | 
|---|---|
| date | Fri, 20 May 2011 18:32:43 +0200 | 
| parents | c369a2e16ab6 | 
| children | 060f5d0f7a35 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 97:61439697f8c5 | 98:b980c00affcd | 
|---|---|
| 54 -- Show makables reagents | 54 -- Show makables reagents | 
| 55 A.updateCounts(GetTradeSkillSelectionIndex()) | 55 A.updateCounts(GetTradeSkillSelectionIndex()) | 
| 56 end | 56 end | 
| 57 end | 57 end | 
| 58 A.EventsFrame:SetScript("OnEvent", function(self, event) | 58 A.EventsFrame:SetScript("OnEvent", function(self, event) | 
| 59 A.ManageCampFireBtn() | |
| 59 if event == "TRADE_SKILL_UPDATE" then | 60 if event == "TRADE_SKILL_UPDATE" then | 
| 60 t_throttle = SCAN_DELAY | 61 t_throttle = SCAN_DELAY | 
| 61 self:SetScript("OnUpdate", throttleScan) | 62 self:SetScript("OnUpdate", throttleScan) | 
| 62 | 63 | 
| 63 elseif event == "TRADE_SKILL_SHOW" then | 64 elseif event == "TRADE_SKILL_SHOW" then | 
| 65 A.EventsFrame:UnregisterEvent("TRADE_SKILL_SHOW") | 66 A.EventsFrame:UnregisterEvent("TRADE_SKILL_SHOW") | 
| 66 end -- if | 67 end -- if | 
| 67 end) -- function | 68 end) -- function | 
| 68 A.EventsFrame:RegisterEvent("TRADE_SKILL_SHOW") | 69 A.EventsFrame:RegisterEvent("TRADE_SKILL_SHOW") | 
| 69 A.EventsFrame:RegisterEvent("TRADE_SKILL_UPDATE") | 70 A.EventsFrame:RegisterEvent("TRADE_SKILL_UPDATE") | 
| 71 A.EventsFrame:RegisterEvent("PLAYER_REGEN_ENABLED") | |
| 72 A.EventsFrame:RegisterEvent("PLAYER_REGEN_DISABLED") | |
| 70 | 73 | 
| 71 --------------------------------------------------- | 74 --------------------------------------------------- | 
| 72 -- Initialize | 75 -- Initialize | 
| 73 --------------------------------------------------- | 76 --------------------------------------------------- | 
| 74 function A:Initialize() | 77 function A:Initialize() | 
| 102 A.tooltipRecipe:SetFrameStrata("TOOLTIP") | 105 A.tooltipRecipe:SetFrameStrata("TOOLTIP") | 
| 103 A.tooltipRecipe:Hide() | 106 A.tooltipRecipe:Hide() | 
| 104 | 107 | 
| 105 -- Button for enchanting directy on a scroll | 108 -- Button for enchanting directy on a scroll | 
| 106 A.LoadEnchantOnScroll() | 109 A.LoadEnchantOnScroll() | 
| 110 | |
| 111 -- Button to cast a campfire | |
| 112 A.InitialiseCampFireBtn() | |
| 107 end -- function | 113 end -- function | 
| 108 | 114 | 
| 109 -- Function run after selecting a item in the tradeskill window | 115 -- Function run after selecting a item in the tradeskill window | 
| 110 function A.ProcessReagent(btn, ...) | 116 function A.ProcessReagent(btn, ...) | 
| 111 | 117 | 
