WoWInterface SVN Broker_TinyPad

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 10 to Rev 11
    Reverse comparison

Rev 10 → Rev 11

trunk/Broker_TinyPad/Broker_TinyPad.lua
3,16 → 3,18
]]--
local BTP = CreateFrame("Frame", "Broker_TinyPad")
 
local function PageName(page)
local page = strsplit("\n", page)
return strsub(page,1,25)
end
 
BTP.obj = LibStub:GetLibrary("LibDataBroker-1.1"):NewDataObject("Broker_TinyPad", {
type = "launcher",
label = "Broker_TinyPad",
icon = "Interface\\Icons\\INV_Misc_Note_01",
})
OnClick = function() TinyPad:Toggle() end,
})
 
function BTP.obj:OnClick()
TinyPad:Toggle()
end
 
function BTP.obj.OnTooltipShow(tt)
tt:AddLine("Broker_TinyPad",1,1,1)
tt:AddLine("Click to toggle the TinyPad frame.")
26,7 → 28,3
tt:Show()
end
 
function PageName(page)
local page = strsplit("\n", page)
return strsub(page,1,25)
end
trunk/Broker_TinyPad/Broker_TinyPad.toc
1,8 → 1,8
## Interface: 40200
## Interface: 60100
## Name: Broker_TinyPad
## Notes: An LDB launcher for TinyPad. Also displays an index of all pages.
## Author: Seerah (credit to TinyPadFu author, Tristan)
## Version: 1.0.5
## Version: 1.0.6
## Dependencies: TinyPad
 
LibStub\LibStub.lua