Mercurial > wow > reaction
comparison classes/MultiCastButton.lua @ 166:8241be11dcc0
TOTEM_PRIORITIES -> SHAMAN_TOTEM_PRIORITIES
TOC update 40000
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Sat, 16 Oct 2010 21:53:57 +0000 |
parents | ab5c37989986 |
children | eab7e7642dd6 |
comparison
equal
deleted
inserted
replaced
165:5257073138e8 | 166:8241be11dcc0 |
---|---|
25 | 25 |
26 --[[ | 26 --[[ |
27 Blizzard Constants: | 27 Blizzard Constants: |
28 - NUM_MULTI_CAST_BUTTONS_PER_PAGE = 4 | 28 - NUM_MULTI_CAST_BUTTONS_PER_PAGE = 4 |
29 - NUM_MULTI_CAST_PAGES = 3 | 29 - NUM_MULTI_CAST_PAGES = 3 |
30 - TOTEM_PRIORITIES = { } -- sets the order of the totems | 30 - SHAMAN_TOTEM_PRIORITIES = { } -- sets the order of the totems |
31 - TOTEM_MULTI_CAST_SUMMON_SPELLS = { } -- list of summon spellIDs | 31 - TOTEM_MULTI_CAST_SUMMON_SPELLS = { } -- list of summon spellIDs |
32 - TOTEM_MULTI_CAST_RECALL_SPELLS = { } -- list of recall spellIDs | 32 - TOTEM_MULTI_CAST_RECALL_SPELLS = { } -- list of recall spellIDs |
33 | 33 |
34 Blizzard Events: | 34 Blizzard Events: |
35 - UPDATE_MULTI_CAST_ACTIONBAR | 35 - UPDATE_MULTI_CAST_ACTIONBAR |
283 if spell and IsSpellKnown(spell) then | 283 if spell and IsSpellKnown(spell) then |
284 f:SetAttribute("spell-page"..i, spell) | 284 f:SetAttribute("spell-page"..i, spell) |
285 end | 285 end |
286 end | 286 end |
287 else | 287 else |
288 local baseAction = barFrame:GetAttribute("baseActionID") + TOTEM_PRIORITIES[idx-1] | 288 local baseAction = barFrame:GetAttribute("baseActionID") + SHAMAN_TOTEM_PRIORITIES[idx-1] |
289 f:SetAttribute("type","action") | 289 f:SetAttribute("type","action") |
290 f:SetAttribute("action", baseAction + (page - 1) * NUM_MULTI_CAST_BUTTONS_PER_PAGE) | 290 f:SetAttribute("action", baseAction + (page - 1) * NUM_MULTI_CAST_BUTTONS_PER_PAGE) |
291 for i = 1, NUM_MULTI_CAST_PAGES do | 291 for i = 1, NUM_MULTI_CAST_PAGES do |
292 f:SetAttribute("action-page"..i, baseAction + (i-1) * NUM_MULTI_CAST_BUTTONS_PER_PAGE) | 292 f:SetAttribute("action-page"..i, baseAction + (i-1) * NUM_MULTI_CAST_BUTTONS_PER_PAGE) |
293 end | 293 end |
547 local slots = { } | 547 local slots = { } |
548 | 548 |
549 tinsert(slots, summon) | 549 tinsert(slots, summon) |
550 | 550 |
551 for i = 1, NUM_MULTI_CAST_BUTTONS_PER_PAGE do | 551 for i = 1, NUM_MULTI_CAST_BUTTONS_PER_PAGE do |
552 local slotSpells = { 0, GetMultiCastTotemSpells(TOTEM_PRIORITIES[i]) } | 552 local slotSpells = { 0, GetMultiCastTotemSpells(SHAMAN_TOTEM_PRIORITIES[i]) } |
553 maxIdx = max(maxIdx, #slotSpells) | 553 maxIdx = max(maxIdx, #slotSpells) |
554 tinsert(slots,slotSpells) | 554 tinsert(slots,slotSpells) |
555 end | 555 end |
556 | 556 |
557 tinsert(slots, recall) | 557 tinsert(slots, recall) |
567 | 567 |
568 function barFrame:UpdateLastSummon(value) | 568 function barFrame:UpdateLastSummon(value) |
569 bar:GetConfig().lastSummon = value | 569 bar:GetConfig().lastSummon = value |
570 end | 570 end |
571 | 571 |
572 for i, p in ipairs(TOTEM_PRIORITIES) do | 572 for i, p in ipairs(SHAMAN_TOTEM_PRIORITIES) do |
573 barFrame:SetAttribute("TOTEM_PRIORITY_"..i,p) | 573 barFrame:SetAttribute("TOTEM_PRIORITY_"..i,p) |
574 end | 574 end |
575 | 575 |
576 -- create flyout container frame and close arrow | 576 -- create flyout container frame and close arrow |
577 local flyout = bar._flyoutFrame | 577 local flyout = bar._flyoutFrame |