Mercurial > wow > reaction
comparison classes/StanceButton.lua @ 141:0de0e64a970f
Fixed hotkey color settings
| author | Flick <flickerstreak@gmail.com> |
|---|---|
| date | Mon, 13 Apr 2009 20:42:21 +0000 |
| parents | 4c1b85ec40d2 |
| children | 8cc187143acd |
comparison
equal
deleted
inserted
replaced
| 140:497936c503a0 | 141:0de0e64a970f |
|---|---|
| 200 | 200 |
| 201 local icon = self.frames.icon | 201 local icon = self.frames.icon |
| 202 icon:SetTexture(texture) | 202 icon:SetTexture(texture) |
| 203 self:GetFrame():SetChecked( isActive and 1 or 0 ) | 203 self:GetFrame():SetChecked( isActive and 1 or 0 ) |
| 204 if isCastable then | 204 if isCastable then |
| 205 self.frames.hotkey:SetVertexColor(1.0,1.0,1.0,1.0) | |
| 206 self.frames.hotkey:Show() | 205 self.frames.hotkey:Show() |
| 207 icon:SetVertexColor(1.0, 1.0, 1.0) | 206 icon:SetVertexColor(1.0, 1.0, 1.0) |
| 208 else | 207 else |
| 209 self.frames.hotkey:SetVertexColor(0.6,0.6,0.6,1.0) | |
| 210 icon:SetVertexColor(0.4, 0.4, 0.4) | 208 icon:SetVertexColor(0.4, 0.4, 0.4) |
| 211 end | 209 end |
| 212 | 210 |
| 213 self:UpdateCooldown() | 211 self:UpdateCooldown() |
| 214 end | 212 end |
