Quantcast

Added a .staticIcon for LDB displays that don't use the dynamic icon

James Whitehead II [11-04-10 - 16:06]
Added a .staticIcon for LDB displays that don't use the dynamic icon
Filename
Images/StaticArrow.tga
TomTom_CrazyArrow.lua
diff --git a/Images/StaticArrow.tga b/Images/StaticArrow.tga
new file mode 100644
index 0000000..b91e5d5
Binary files /dev/null and b/Images/StaticArrow.tga differ
diff --git a/TomTom_CrazyArrow.lua b/TomTom_CrazyArrow.lua
index b667254..42c6c21 100644
--- a/TomTom_CrazyArrow.lua
+++ b/TomTom_CrazyArrow.lua
@@ -380,11 +380,12 @@ local function wayframe_OnEvent(self, event, arg1, ...)
 			local feed_crazy = ldb:NewDataObject("TomTom_CrazyArrow", {
 				type = "data source",
 				icon = "Interface\\Addons\\TomTom\\Images\\Arrow",
+				staticIcon = "Interface\\Addons\\TomTom\\Images\\StaticArrow",
 				text = "Crazy",
-				iconR = 1,
-				iconG = 1,
-				iconB = 1,
-				iconCoords = {0, 1, 0, 1},
+				iconR = 0.2,
+				iconG = 1.0,
+				iconB = 0.2,
+				iconCoords = texcoords["1:1"],
 				OnTooltipShow = function(tooltip)
 					local dist = TomTom:GetDistanceToWaypoint(active_point)
 					if dist then