From 6a89a7ca11131ae4669de911260c3135c2f1be3e Mon Sep 17 00:00:00 2001 From: parnic Date: Tue, 21 Sep 2010 03:49:35 +0000 Subject: [PATCH] - added a tooltip to the LDB launcher --- Breakables.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Breakables.lua b/Breakables.lua index d3e81d2..5f3fcff 100644 --- a/Breakables.lua +++ b/Breakables.lua @@ -65,10 +65,17 @@ function Breakables:InitLDB() type = "launcher", text = "Breakables", icon = "Interface\\Icons\\ability_warrior_sunder", - OnClick = function(_, msg) + OnClick = function(button, msg) self:OnSlashCommand() end, }) + + if ldbButton then + function ldbButton:OnTooltipShow() + self:AddLine("Breakables @project-version@") + self:AddLine("Click to open Breakables options.", 1, 1, 1) + end + end end end