diff ui/Ui.lua @ 81:0515882856f1 v38

updated for 7.0
author yellowfive
date Tue, 19 Jul 2016 10:05:32 -0700
parents 304d7ebb8e30
children 6bbe64d587b4
line wrap: on
line diff
--- a/ui/Ui.lua	Tue Apr 05 16:19:31 2016 -0700
+++ b/ui/Ui.lua	Tue Jul 19 10:05:32 2016 -0700
@@ -87,24 +87,24 @@
 -- helper to create a solid texture from a color with R,G,B properties
 function Amr.CreateTexture(parent, color, alpha, layer)
 	local t = parent:CreateTexture(nil, layer or "ARTWORK")
-	t:SetTexture(color.R, color.G, color.B, alpha or 1)
+	t:SetColorTexture(color.R, color.G, color.B, alpha or 1)
 	return t
 end
 
 -- helper to create a cheater shadow without having to create custom images
 function Amr.DropShadow(frame)
 	local shadow = frame:CreateTexture(nil, "BACKGROUND")
-	shadow:SetTexture(0, 0, 0, 0.4)
+	shadow:SetColorTexture(0, 0, 0, 0.4)
 	shadow:SetPoint("TOPLEFT", frame, "TOPLEFT", 2, -2)
 	shadow:SetPoint("BOTTOMRIGHT", frame, "BOTTOMRIGHT", 1, -1)
 	
 	shadow = frame:CreateTexture(nil, "BACKGROUND")
-	shadow:SetTexture(0, 0, 0, 0.3)
+	shadow:SetColorTexture(0, 0, 0, 0.3)
 	shadow:SetPoint("TOPLEFT", frame, "TOPLEFT", 2, -2)
 	shadow:SetPoint("BOTTOMRIGHT", frame, "BOTTOMRIGHT", 2, -2)
 	
 	shadow = frame:CreateTexture(nil, "BACKGROUND")
-	shadow:SetTexture(0, 0, 0, 0.1)
+	shadow:SetColorTexture(0, 0, 0, 0.1)
 	shadow:SetPoint("TOPLEFT", frame, "TOPLEFT", 2, -2)
 	shadow:SetPoint("BOTTOMRIGHT", frame, "BOTTOMRIGHT", 3, -3)
 end