diff Libs/DF/cooltip.lua @ 39:7944c081e5b4

- framework update. - ToC Update.
author Tercio
date Tue, 19 Jul 2016 13:23:40 -0300
parents d1963bd45219
children a960d5372b0c
line wrap: on
line diff
--- a/Libs/DF/cooltip.lua	Mon Jul 04 23:06:23 2016 -0300
+++ b/Libs/DF/cooltip.lua	Tue Jul 19 13:23:40 2016 -0300
@@ -2493,7 +2493,7 @@
 			end
 			
 			--> check data integrity
-			if (type (iconTexture) ~= "string" and (type (iconTexture) ~= "table" or not iconTexture.GetObjectType or iconTexture:GetObjectType() ~= "Texture") ) then
+			if ( (type (iconTexture) ~= "string" and type (iconTexture) ~= "number") and (type (iconTexture) ~= "table" or not iconTexture.GetObjectType or iconTexture:GetObjectType() ~= "Texture") ) then
 				return --> return error
 			end
 			
@@ -3033,10 +3033,17 @@
 	--> all done
 	CoolTip:ClearAllOptions()
 
-	local preset2_backdrop = {bgFile = [[Interface\DialogFrame\UI-DialogBox-Background-Dark]], edgeFile = DF.folder .. "border_3", tile=true,
-	edgeSize = 16, tileSize = 64, insets = {left = 3, right = 3, top = 4, bottom = 4}}
+--	local preset2_backdrop = {bgFile = [[Interface\DialogFrame\UI-DialogBox-Background-Dark]], edgeFile = DF.folder .. "border_3", tile=true,
+--	edgeSize = 16, tileSize = 64, insets = {left = 3, right = 3, top = 4, bottom = 4}}
 
+	local preset2_backdrop = {bgFile = DF.folder .. "background", edgeFile = [[Interface\Buttons\WHITE8X8]], tile = true,
+	edgeSize = 1, tileSize = 16, insets = {left = 0, right = 0, top = 0, bottom = 0}}
+	local default_backdrop_color = {0.09019, 0.09019, 0.18823, 0.8}
+	local default_backdropborder_color = {1, 1, 1, 1}
+	
+	local gray_table = {0.37, 0.37, 0.37, 0.95}
 	local white_table = {1, 1, 1, 1}
+	local black_table = {0.2, 0.2, 0.2, 1}
 	
 	function CoolTip:Preset (number)
 		self:Reset()
@@ -3058,9 +3065,11 @@
 			self:SetOption ("ButtonsYMod", -4)
 			self:SetOption ("YSpacingMod", -4)
 			self:SetOption ("IgnoreButtonAutoHeight", true)
-			self:SetColor (1, 0.5, 0.5, 0.5, 0.5)
 			
-			self:SetBackdrop (1, preset2_backdrop, nil, white_table)
+			--self:SetColor (1, 0.5, 0.5, 0.5, 0.5)
+			self:SetColor (1, 0.5, 0.5, 0.5, 0)
+			
+			self:SetBackdrop (1, preset2_backdrop, gray_table, black_table)
 		end
 	end