LibCargoShip-2.1 is a project mainly written in Lua, it's free.
WoW AddOn: LibDataBroker display library
A library for creating and updating blocks of LibDataBroker objects. It currently supports the following attributes:
Licensed under the open-source GPL 2
Fetch the library
Creates a new block from the DataObject of the same name. The name can either be delivered as arg #1, making the options-table optional, or defined in options.name, where options is passed as arg #1
Returns a table of all current blocks using the defined dataObject
Convenience function, returns the first blocks using the defined dataObject
Returns a table of all unused dataObjects
Embeds the library functions in your own frame/table
parent (default: UIParent)
width (default: 70)
height (default: 12)
scale (default: 1)
alpha (default: 1)
fontObject (default: nil)
font ( default: "FontsFRIZQT__.TTF")
fontSize (default: 10)
fontStyle (default: nil)
textColor (default: { 1, 1, 1, 1 } = white)
noShadow (default: nil)
shadowX (default: 1)
shadowY (default: -1)
noIcon (default: nil)
noText (default: nil)
Sets the prototype's displayed dataObject
Update one or all attributes from the dataobject
Callback to initialize and style the block
local LCS = LibStub("LibCargoShip-2.1")
local friends = LCS{
name = "picoFriends",
noIcon = true,
scale = 1.5,
}
friends:SetPoint("BOTTOM", 0, 10)
Creates a block of picoFriends at the bottom of the screen, scaled 1.5 with no icon
local LCS = LibStub("LibCargoShip-2.1")
local friends = LCS:CreateBlock("picoFriends", {
noIcon = true,
scale = 1.5,
})
friends:SetPoint("BOTTOM", 0, 10)
Same example with a more clear form of spelling
local LCS = LibStub("LibCargoShip-2.1")
local block = LCS:CreateBlock{
noIcon = true,
scale = 1.5,
}
block:SetDataObject("picoFriends")
block:SetPoint("BOTTOM", 0, 10)
Another one. You can change the dataObject even after the block was created. Carousel anyone?