Sea.IO
From WoWWiki
This article is a part of the documentation of the Sea function library
A child of Sea, Sea.IO is a collection of functions for printing output in World of Warcraft.
The Sea.IO library is organized in a simple format, there a three basic output types: print, banner and error.
Contents |
Modifiers
- d - the first parameter of the function is a debug key that will be checked before printing. (e.g. dprint("MY_KEY", "Hi!"); will only print the message if getglobal("MY_KEY") is true. )
- f - will make the next parameter the frame you want to contain the print message. (e.g. printf (ChatFrame2, "Hi!"); will print "Hi!" in the combat window. )
- c - the next parameter is a table with 'r', 'g' and 'b' values to specify the color of the printed text.
- All of these can be used together:
dprintfc ("MY_KEY", ChatFrame3, {r=1.0,g=.5,b=.2}, "Hello", " ", "Welcome to my colorful world!" );
Functions in Sea.IO
Basic Functions
- print - prints to the default chat box
- banner - prints a message to a large banner
- error - prints to the default error pipe
Prints
- print - prints to the default chat box
- printf - prints to the specified frame
- printc - prints a message in the specified color
- printfc - prints a message to the specified frame in the specified color
- dprint - prints if the debug key is true
- dprintf - prints to the specified frame if the debug key is true
- dprintc - prints if the debug key is true in the color specified
- dprintfc - prints to the specified frame in the specified color if the debug key is true
Error
- error - prints to the default error pipe
- errorf - prints an error message to the specified frame
- errorc - prints an error message in the specified color
- errorfc - prints an error message to the specified frame in the specifed color
- derror - errors if the debug key is true
- derrorf - errors if the debug key is true in the specified frame
- derrorc - errors if the debug key is true in the specified color
- derrorfc - errors if the debug key is true in the specified frame in the specified color
Banner
- banner - prints a message to a large banner
- bannerc - banners in the specified color
- dbanner - banners if the debug key is true
- dbannerc - banners with the specified color if the debug key is true
Banners do not have a frame option
Extended Functions
- printComma - prints the arguments separated by commas
- printTable - prints an entire table to the default message frame
