Mercurial > wow > reaction
comparison VehicleExitButton.lua @ 249:46b59a9ded76
Fix some errors related to re-using action IDs
author | Flick |
---|---|
date | Mon, 28 Mar 2011 14:52:35 -0700 |
parents | 65f2805957a0 |
children | c918ff9ac787 |
comparison
equal
deleted
inserted
replaced
248:9e708a155ab9 | 249:46b59a9ded76 |
---|---|
68 | 68 |
69 function VExitButton:GetActionID() | 69 function VExitButton:GetActionID() |
70 return 1 | 70 return 1 |
71 end | 71 end |
72 | 72 |
73 function VExitButton:AcquireActionID() | |
74 -- don't use pool | |
75 end | |
76 | |
77 function VExitButton:ReleaseActionID() | |
78 -- don't use pool | |
79 end | |
80 | |
73 function VExitButton:Refresh() | 81 function VExitButton:Refresh() |
74 Super.Refresh(self) | 82 Super.Refresh(self) |
75 -- it seems that setscale kills the texcoord, have to refresh it | 83 -- it seems that setscale kills the texcoord, have to refresh it |
76 self.frames.icon:SetTexCoord(0.140625, 0.859375, 0.140625, 0.859375) | 84 self.frames.icon:SetTexCoord(0.140625, 0.859375, 0.140625, 0.859375) |
77 end | 85 end |