Mercurial > wow > reaction
comparison classes/PetActionButton.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 |
|---|---|
| 71 }, | 71 }, |
| 72 | 72 |
| 73 barType = L["Pet Action Bar"], | 73 barType = L["Pet Action Bar"], |
| 74 }, | 74 }, |
| 75 { __index = Super } ) | 75 { __index = Super } ) |
| 76 | |
| 76 ReAction.Button.PetAction = Pet | 77 ReAction.Button.PetAction = Pet |
| 78 ReAction:RegisterBarType(Pet) | |
| 77 | 79 |
| 78 function Pet:New( idx, config, bar, idHint ) | 80 function Pet:New( idx, config, bar, idHint ) |
| 79 local name = format("ReAction_%s_PetAction_%d",bar:GetName(),idx) | 81 local name = format("ReAction_%s_PetAction_%d",bar:GetName(),idx) |
| 80 | 82 |
| 81 self = Super.New(self, name, config, bar, idx, "SecureActionButtonTemplate, ActionButtonTemplate" ) | 83 self = Super.New(self, name, config, bar, idx, "SecureActionButtonTemplate, ActionButtonTemplate" ) |
