Mercurial > wow > reaction
comparison classes/MultiCastButton.lua @ 173:49d49063cb79
remove print statements
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Tue, 19 Oct 2010 22:07:21 +0000 |
parents | 8cc187143acd |
children | 09f7af2f53f8 |
comparison
equal
deleted
inserted
replaced
172:de594ad0e26e | 173:49d49063cb79 |
---|---|
152 local lastButton, lastPage | 152 local lastButton, lastPage |
153 for page, b in ipairs(flyoutChildren) do | 153 for page, b in ipairs(flyoutChildren) do |
154 b:Hide() | 154 b:Hide() |
155 if slot == summonSlot then | 155 if slot == summonSlot then |
156 local spellID = self:GetParent():GetAttribute("spell-page"..page) | 156 local spellID = self:GetParent():GetAttribute("spell-page"..page) |
157 print("got spell-page"..tostring(page).." = ".. tostring(spellID)) | |
158 if spellID then | 157 if spellID then |
159 b:SetAttribute("type","changePage") | 158 b:SetAttribute("type","changePage") |
160 b:SetAttribute("spell",spellID) | 159 b:SetAttribute("spell",spellID) |
161 b:Show() | 160 b:Show() |
162 lastButton = b | 161 lastButton = b |
283 f:SetAttribute("type","spell") | 282 f:SetAttribute("type","spell") |
284 local spells = (idx == bar.summonSlot) and TOTEM_MULTI_CAST_SUMMON_SPELLS or TOTEM_MULTI_CAST_RECALL_SPELLS | 283 local spells = (idx == bar.summonSlot) and TOTEM_MULTI_CAST_SUMMON_SPELLS or TOTEM_MULTI_CAST_RECALL_SPELLS |
285 f:SetAttribute("spell",spells[page]) | 284 f:SetAttribute("spell",spells[page]) |
286 for i, spell in ipairs(spells) do | 285 for i, spell in ipairs(spells) do |
287 if spell and IsSpellKnown(spell) then | 286 if spell and IsSpellKnown(spell) then |
288 print("setting attribute spell-page"..i.." to "..spell) | |
289 f:SetAttribute("spell-page"..i, spell) | 287 f:SetAttribute("spell-page"..i, spell) |
290 end | 288 end |
291 end | 289 end |
292 else | 290 else |
293 local offset = bar.summonSlot and 1 or 0 | 291 local offset = bar.summonSlot and 1 or 0 |