Mercurial > wow > reaction
comparison classes/MultiCastButton.lua @ 223:c4b134512c50
Move RegisterBarType from modules to button classes
| author | Flick <flickerstreak@gmail.com> |
|---|---|
| date | Mon, 22 Nov 2010 10:25:18 -0800 |
| parents | d08a74e86c96 |
| children | 158c9299185b |
comparison
equal
deleted
inserted
replaced
| 222:d08a74e86c96 | 223:c4b134512c50 |
|---|---|
| 316 }, | 316 }, |
| 317 | 317 |
| 318 barType = L["Totem Bar"], | 318 barType = L["Totem Bar"], |
| 319 }, | 319 }, |
| 320 { __index = Action } ) | 320 { __index = Action } ) |
| 321 | |
| 321 ReAction.Button.MultiCast = MultiCast | 322 ReAction.Button.MultiCast = MultiCast |
| 323 ReAction:RegisterBarType(MultiCast) | |
| 322 | 324 |
| 323 function MultiCast:New( idx, btnConfig, bar ) | 325 function MultiCast:New( idx, btnConfig, bar ) |
| 324 local maxIndex = bar.nTotemSlots or 0 | 326 local maxIndex = bar.nTotemSlots or 0 |
| 325 if bar.summonSlot then | 327 if bar.summonSlot then |
| 326 maxIndex = maxIndex + 1 | 328 maxIndex = maxIndex + 1 |
