Test Alpha

API/Test Alpha

Awesome TestAlpha.
This is an Awesome Test that does nothing, but testing!


TestAlpha:FooBar(foo, bar)

Second Function of TestAlpha.
Even more Awesome then Print!

Parameters

foo
Foooooo-tastic Parameter
bar
Whats a Foo without its Bar?

See also

  • foobar


TestAlpha:NewAddon([object ,]name[, lib, ...])

Create a new AceAddon-3.0 addon.

Parameters

object
Table to use as a base for the addon (optional)
name
Name of the addon object to create
lib
List of libraries to embed into the addon

Return value

The newly created addon object

Usage

-- Create a simple addon object
MyAddon = LibStub("AceAddon-3.0"):NewAddon("MyAddon", "AceEvent-3.0")

-- Create a Addon object based on the table of a frame
local MyFrame = CreateFrame("Frame")
local MyBetterAddon = LibStub("AceAddon-3.0"):NewAddon(MyFrame, "MyBetterAddon", "AceEvent-3.0")


TestAlpha:Print(frame, r, g, b, ...)

Print a colorized string to a ChatFrame.

Parameters

frame
The ChatFrame (or any other frame with a AddMessage method) to print to
r
Red Color Value
g
Green Color Value
b
Blue Color Value
...

Usage

thing({
    "Alpha",
    "Bravo",
    "Charlie",
})


You must login to post a comment. Don't have an account? Register to get one!