Language:
Lua     Change language:
Pastebin: 116049
Author: Anonymous
Subject: Untitled
Created: 2009-06-15 05:14:44
Download and save
Toggle line numbers
1local L = LibStub("AceLocale-3.0"):GetLocale("Broker_MrPlow",true
2 
3    LibStub:GetLibrary("LibDataBroker-1.1"):NewDataObject("Broker_MrPlow", { 
4        type = "launcher"
5        text = "Mr. Plow"
6        OnClick = function(self, button) 
7                    DEFAULT_CHAT_FRAME:AddMessage(button.." was pushed!"
8            if (button == "RightButton") then 
9                MrPlow:Works() 
10            elseif (button == "MiddleButton") then 
11                       DEFAULT_CHAT_FRAME:AddMessage("This is a middle click !"
12                MrPlow:Works("Bank"
13            else ToggleBackpack() 
14        end 
15    end
16 
17        icon = "Interface\\AddOns\\MrPlow\\icon.tga"
18        OnTooltipShow = function(tooltip) 
19            if not tooltip or not tooltip.AddLine then return end 
20            tooltip:AddLine("Mr. Plow"
21            tooltip:AddLine("|cffffff00" .. L["Left-Click|r to open all bags"]) 
22            tooltip:AddLine("|cffffff00" .. L["Right-Click|r to run Mr. Plow Works (Bag)"]) 
23            tooltip:AddLine("|cffffff00" .. L["Middle-Click|r to run Mr. Plow Works (Bank)"]) 
24        end
25    }
Thread:
[116049] Untitled by Anonymous at 2009-06-15 05:14:44
Tip: Click the line numbers to toggle highliting on that line.

Paste followup:

Language:
Author:
Subject:


    Tabstop:     bigger biggest
Note: You can prefix a line with "@@@" to highlight it.