Mercurial > wow > reaction
comparison VehicleExitButton.lua @ 277:4e325f1ea6e1
Construct the button name in the base class
| author | Flick |
|---|---|
| date | Wed, 11 May 2011 11:27:36 -0700 |
| parents | 36a29870bf34 |
| children | 5b9c0164a491 |
comparison
equal
deleted
inserted
replaced
| 276:36a29870bf34 | 277:4e325f1ea6e1 |
|---|---|
| 27 | 27 |
| 28 ReAction.Button.VehicleExit = VExitButton | 28 ReAction.Button.VehicleExit = VExitButton |
| 29 ReAction:RegisterBarType(VExitButton) | 29 ReAction:RegisterBarType(VExitButton) |
| 30 | 30 |
| 31 function VExitButton:New( config, bar, idx ) | 31 function VExitButton:New( config, bar, idx ) |
| 32 local name = format("ReAction_%s_VehicleExit_%d",bar:GetName(),idx) | 32 self = Super.New(self, config, bar, idx, "SecureFrameTemplate, ActionButtonTemplate", "Button") |
| 33 | |
| 34 self = Super.New(self, name, config, bar, idx, "SecureFrameTemplate, ActionButtonTemplate", "Button") | |
| 35 | 33 |
| 36 -- frame setup | 34 -- frame setup |
| 37 local f = self:GetFrame() | 35 local f = self:GetFrame() |
| 38 self.frames.icon:SetTexture("Interface\\Vehicles\\UI-Vehicles-Button-Exit-Up") | 36 self.frames.icon:SetTexture("Interface\\Vehicles\\UI-Vehicles-Button-Exit-Up") |
| 39 self.frames.icon:SetTexCoord(0.140625, 0.859375, 0.140625, 0.859375) | 37 self.frames.icon:SetTexCoord(0.140625, 0.859375, 0.140625, 0.859375) |
