Quantcast

Add a new line "Fail" for displaying information from LibFail-2.0. What's shown is the number count of total fails since the UI loaded.

Scott Sibley [02-19-11 - 11:44]
Add a new line "Fail" for displaying information from LibFail-2.0. What's shown is the number count of total fails since the UI loaded.
Filename
Modules/UnitTooltip/UnitTooltip.lua
diff --git a/Modules/UnitTooltip/UnitTooltip.lua b/Modules/UnitTooltip/UnitTooltip.lua
index 0579c25..b6129a0 100644
--- a/Modules/UnitTooltip/UnitTooltip.lua
+++ b/Modules/UnitTooltip/UnitTooltip.lua
@@ -643,6 +643,16 @@ do return "" end
 		cols = 100,
 		rightUpdating = true,
 		update = 500
+	},
+	[33] = {
+		name = "Fails",
+		left = [[
+local fails = NumFails(unit)
+if fails and fails > 0 then
+  return "Fails: " .. fails
+end
+]],
+		enabled = true
 	}
 }