Mercurial > wow > askmrrobot
comparison ui/AmrUiTextButton.lua @ 81:0515882856f1 v38
updated for 7.0
author | yellowfive |
---|---|
date | Tue, 19 Jul 2016 10:05:32 -0700 |
parents | 01b63b8ed811 |
children | 57c6cac5143c |
comparison
equal
deleted
inserted
replaced
80:8f235b016212 | 81:0515882856f1 |
---|---|
76 ["OnHeightSet"] = function(self, height) | 76 ["OnHeightSet"] = function(self, height) |
77 self.frame:GetFontString():SetHeight(height) | 77 self.frame:GetFontString():SetHeight(height) |
78 end, | 78 end, |
79 | 79 |
80 ["SetBackgroundColor"] = function(self, color, alpha) | 80 ["SetBackgroundColor"] = function(self, color, alpha) |
81 self.bg:SetTexture(color.R, color.G, color.B, alpha) | 81 self.bg:SetColorTexture(color.R, color.G, color.B, alpha) |
82 end, | 82 end, |
83 | 83 |
84 ["SetBackgroundImage"] = function(self, image) | 84 ["SetBackgroundImage"] = function(self, image) |
85 self.bg:SetTexture(image) | 85 self.bg:SetTexture(image) |
86 self.bg:SetDesaturated(false) | 86 self.bg:SetDesaturated(false) |
87 end, | 87 end, |
88 | 88 |
89 ["SetHoverBackgroundColor"] = function(self, color, alpha) | 89 ["SetHoverBackgroundColor"] = function(self, color, alpha) |
90 self.hover:SetTexture(color.R, color.G, color.B, alpha) | 90 self.hover:SetColorTexture(color.R, color.G, color.B, alpha) |
91 end, | 91 end, |
92 | 92 |
93 ["SetHoverBackgroundImage"] = function(self, image) | 93 ["SetHoverBackgroundImage"] = function(self, image) |
94 self.hover:SetTexture(image) | 94 self.hover:SetTexture(image) |
95 end, | 95 end, |