• World of Warcraft Addons
  • World of Warcraft
  • Average Rating:

  • Your Rating

  • Share
  • Report Abuse

LibSink-2.0

 

Project Updated:
Files Updated: Tue, Apr 14 2009
Supports Game Version: 3.1.0
Category: Libraries
Tags:

[Edit Tags]

Project Manager: Rabbit
Additional Authors: No additional authors
Current Version: r64
License: GNU General Public License version 2 (GPLv2)
Development Site: WowAce.com
Avg Daily DL (last 30 days): 84
Downloads Total: 50,930
Favorites: 25
Comments: 0
  • About LibSink-2.0
  •  

LibSink-2.0 is a small library that you can throw in to easily get configuration options for your addon on where it should output any kind of messages.

By default, LibSink-2.0 supports several addons as output "sinks"; Blizzard floating combat text, MSBT, SCT, Parrot, BCF. And if that's not enough it can also route your output to any ingame channel, like raid warning, party chat, say. Or just to a local chatframe, UIErrorsFrame, etc.

In order to use LibSink-2.0 in your addon, you simply need to embed it into the addon object;

local addon = LibStub("AceAddon-3.0"):NewAddon("Bunnies!", "LibSink-2.0")

Then you get a few new methods on your addon object, most notably :Pour(...):

self:Pour(text, r, g, b, font, size, outline, sticky, location, icon)

The only ones you need to concern yourself with are usually text, r, g and b. These arguments say what text you want to output in and what color. RGB should be passed as decimal values ranging from 0.0 to 1.0.

The next thing you should note is that LibSink-2.0 provides a method on your addon object that you can invoke to produce options for configuring where, exactly, :Pour requests should be poured from your addon;

self:GetSinkAce3OptionsDataTable()
self:GetSinkAce2OptionsDataTable()

So obviously you use the one appropriate for your addon (probably Ace3 nowadays). If you already have an option table for your addon (which is very likely), you just insert the return value from this function into its own section in your config;

local options = {
    type = "group",
    name = "Bunny options!",
    args = {}
}
options.args.output = self:GetSinkAce3OptionsDataTable()

And, of course, LibSink-2.0 will need somewhere to store the users preferences about your addon, and since libraries can not have SavedVariables, you need to supply it;

self:SetSinkStorage(self.db.profile)

LibSink can potentially store a few different keys in your database, including sink20OutputSink, sink20Sticky and sink20ScrollArea.

  • Downloads (5)
  •  
File Name Release Type Game Version Downloads Date
Addon Curse.com Beta 2.3.3 0 9/29/2008
  File Name Release Type Game Version Downloads Date  
  LibSink-2.0 r64 Release 3.1.0 26,406 4/14/2009
  LibSink-2.0 3.0-beta2 Beta 2.4.3 4,327 3/3/2009
  LibSink-2.0 3.0-beta Beta 3.0.2 18,838 10/14/2008
  LibSink-2.0 r58 Beta 2.4.3 1,264 10/12/2008
  LibSink-2.0-r82052 Beta 2.4.3 47 9/26/2008
  • 1 page(s)
  • Comments

Add Comment  

Add

You need to login or register to post.

Benefits of Registration

  • Interact with hundreds of thousands of other gamers on an open social network.
  • Post your stories, news, images, videos, and other content to share.
  • Create a network with your fellow gamers or join an existing one.
  • Gain reputation for everything you do.
  • Similar Addons
  •  

Average downloads per day

  1. 2,760 Addon Control Panel Libraries, Development Tools...
  2. 1,084 Ace3 Libraries
  3. 814 LibRock-1.0 Libraries
  4. 549 Ace2 Libraries
  5. 451 LibHealComm-4.0 Libraries