Mercurial > wow > reagentmaker
comparison ReagentMaker.lua @ 113:c79ab5443ee5 v1.1beta1
Corrected the lua error when entering combat
| author | contrebasse |
|---|---|
| date | Fri, 03 Jun 2011 12:24:04 +0200 |
| parents | af23986010ef |
| children | 5a3fb8fea026 |
comparison
equal
deleted
inserted
replaced
| 112:69300309ac21 | 113:c79ab5443ee5 |
|---|---|
| 77 end) -- function | 77 end) -- function |
| 78 | 78 |
| 79 --@todo Unregister events when not needed | 79 --@todo Unregister events when not needed |
| 80 A.EventsFrame:RegisterEvent("TRADE_SKILL_SHOW") | 80 A.EventsFrame:RegisterEvent("TRADE_SKILL_SHOW") |
| 81 A.EventsFrame:RegisterEvent("TRADE_SKILL_UPDATE") | 81 A.EventsFrame:RegisterEvent("TRADE_SKILL_UPDATE") |
| 82 A.EventsFrame:RegisterEvent("PLAYER_REGEN_ENABLED") | |
| 83 A.EventsFrame:RegisterEvent("PLAYER_REGEN_DISABLED") | |
| 84 | 82 |
| 85 | 83 |
| 86 --------------------------------------------------- | 84 --------------------------------------------------- |
| 87 -- Initialize | 85 -- Initialize |
| 88 --------------------------------------------------- | 86 --------------------------------------------------- |
| 116 -- Secondary Tooltip | 114 -- Secondary Tooltip |
| 117 A.tooltipRecipe = CreateFrame("GameTooltip", "ReagentMaker_tooltipRecipe",UIParent, "GameTooltipTemplate") | 115 A.tooltipRecipe = CreateFrame("GameTooltip", "ReagentMaker_tooltipRecipe",UIParent, "GameTooltipTemplate") |
| 118 A.tooltipRecipe:SetFrameStrata("TOOLTIP") | 116 A.tooltipRecipe:SetFrameStrata("TOOLTIP") |
| 119 A.tooltipRecipe:Hide() | 117 A.tooltipRecipe:Hide() |
| 120 | 118 |
| 119 -- Used for the campfire button only | |
| 120 A.EventsFrame:RegisterEvent("PLAYER_REGEN_ENABLED") | |
| 121 A.EventsFrame:RegisterEvent("PLAYER_REGEN_DISABLED") | |
| 122 | |
| 121 -- Button for enchanting directy on a scroll | 123 -- Button for enchanting directy on a scroll |
| 122 A.LoadEnchantOnScroll() | 124 A.LoadEnchantOnScroll() |
| 123 end -- function | 125 end -- function |
| 124 | 126 |
| 125 --------------------------------------------------- | 127 --------------------------------------------------- |
