Mercurial > wow > cyborg-mmo7
comparison WowObjects.lua @ 47:1a29be548897
Removed all .tga extensions in texture names. They are not needed, and they won't need to be changed if we switch to blp files.
| author | madcatzinc@35b17cf1-18cd-47ff-9ca3-31d6b526ef09 |
|---|---|
| date | Mon, 29 Apr 2013 17:45:04 +0000 |
| parents | ce4ddefb68c2 |
| children | 7cbd32de1fdd |
comparison
equal
deleted
inserted
replaced
| 46:3a3dc5e4405a | 47:1a29be548897 |
|---|---|
| 61 | 61 |
| 62 local function WowCallback(callbackName) | 62 local function WowCallback(callbackName) |
| 63 local self = WowObject("callback", callbackName, "") | 63 local self = WowObject("callback", callbackName, "") |
| 64 | 64 |
| 65 self.callbackName = callbackName | 65 self.callbackName = callbackName |
| 66 self.texture = "Interface\\AddOns\\CyborgMMO7\\Graphics\\"..callbackName.."Unselected.tga" | 66 self.texture = "Interface\\AddOns\\CyborgMMO7\\Graphics\\"..callbackName.."Unselected" |
| 67 | 67 |
| 68 setmetatable(self, WowCallback_mt) | 68 setmetatable(self, WowCallback_mt) |
| 69 | 69 |
| 70 return self | 70 return self |
| 71 end | 71 end |
| 72 | 72 |
| 73 function WowCallback_methods:SetTextures(buttonFrame) | 73 function WowCallback_methods:SetTextures(buttonFrame) |
| 74 buttonFrame:SetNormalTexture("Interface\\AddOns\\CyborgMMO7\\Graphics\\"..self.callbackName.."Unselected.tga") | 74 buttonFrame:SetNormalTexture("Interface\\AddOns\\CyborgMMO7\\Graphics\\"..self.callbackName.."Unselected") |
| 75 buttonFrame:SetPushedTexture("Interface\\AddOns\\CyborgMMO7\\Graphics\\"..self.callbackName.."Down.tga") | 75 buttonFrame:SetPushedTexture("Interface\\AddOns\\CyborgMMO7\\Graphics\\"..self.callbackName.."Down") |
| 76 buttonFrame:SetHighlightTexture("Interface\\AddOns\\CyborgMMO7\\Graphics\\"..self.callbackName.."Over.tga") | 76 buttonFrame:SetHighlightTexture("Interface\\AddOns\\CyborgMMO7\\Graphics\\"..self.callbackName.."Over") |
| 77 end | 77 end |
| 78 | 78 |
| 79 function WowCallback_methods:DoAction() | 79 function WowCallback_methods:DoAction() |
| 80 local action = CyborgMMO_CallbackFactory:GetCallback(self.callbackName) | 80 local action = CyborgMMO_CallbackFactory:GetCallback(self.callbackName) |
| 81 action() | 81 action() |
