Mercurial > wow > reaction
comparison classes/ReAction_PetActionType.lua @ 15:0ea4c8ab1991
Removed redundant setting of config.id in PetActionType
| author | Flick <flickerstreak@gmail.com> |
|---|---|
| date | Thu, 22 Mar 2007 21:07:53 +0000 |
| parents | f920db5fc6b1 |
| children |
comparison
equal
deleted
inserted
replaced
| 14:e27e4204bf5e | 15:0ea4c8ab1991 |
|---|---|
| 60 -- ReAction.IActionType interface implementation | 60 -- ReAction.IActionType interface implementation |
| 61 --------------------------------------- | 61 --------------------------------------- |
| 62 function RAPAT:SetID( id ) -- paging not supported | 62 function RAPAT:SetID( id ) -- paging not supported |
| 63 id = tonumber(id) -- force data integrity | 63 id = tonumber(id) -- force data integrity |
| 64 if id then | 64 if id then |
| 65 self.config.ids[self.barIdx] = { id } | |
| 66 local f = self:GetActionFrame() | 65 local f = self:GetActionFrame() |
| 67 f:SetAttribute("action",id) | 66 f:SetAttribute("action",id) |
| 68 -- the following is the goofy hack to work around Blizzard not exporting the pet functions securely | 67 -- the following is the goofy hack to work around Blizzard not exporting the pet functions securely |
| 69 f:SetAttribute("clickbutton2",getglobal("PetActionButton"..id)) | 68 f:SetAttribute("clickbutton2",getglobal("PetActionButton"..id)) |
| 70 end | 69 end |
