Mercurial > wow > askmrrobot
diff ui/AmrUiButton.lua @ 81:0515882856f1 v38
updated for 7.0
author | yellowfive |
---|---|
date | Tue, 19 Jul 2016 10:05:32 -0700 |
parents | 01b63b8ed811 |
children | 57c6cac5143c |
line wrap: on
line diff
--- a/ui/AmrUiButton.lua Tue Apr 05 16:19:31 2016 -0700 +++ b/ui/AmrUiButton.lua Tue Jul 19 10:05:32 2016 -0700 @@ -50,8 +50,8 @@ -- color is an object with R, G, B ["SetBackgroundColor"] = function(self, color) - self.texNormal:SetTexture(color.R, color.G, color.B, 1) - self.texPush:SetTexture(color.R, color.G, color.B, 1) + self.texNormal:SetColorTexture(color.R, color.G, color.B, 1) + self.texPush:SetColorTexture(color.R, color.G, color.B, 1) end, ["SetDisabled"] = function(self, disabled) @@ -100,7 +100,7 @@ -- not perfect, but more or less achieves the effect of lightening the bg color slightly on hover local texHigh = frame:CreateTexture(nil, "BORDER") - texHigh:SetTexture(1, 1, 1, 0.1) + texHigh:SetColorTexture(1, 1, 1, 0.1) texHigh:SetAllPoints(true) frame:SetHighlightTexture(texHigh)