Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.
function lib.Print(...)
local output, part
for i=1, select("#", ...) do
part = select(i, ...)
part = tostring(part):gsub("{{", "|cffddeeff"):gsub("}}", "|r")
if (output) then output = output .. " " .. part
else output = part end
end
DEFAULT_CHAT_FRAME:AddMessage(output, 0.3, 0.9, 0.8)
endDEFAULT_CHAT_FRAME:AddMessage(output, 0.3, 0.9, 0.8)Interface AddOn Kit
The 2.0 Live Interface AddOn Kit is available for download found here:
http://ftp.blizzard.com/pub/WoW/other/InterfaceAddOnKit_Win.zip
http://ftp.blizzard.com/pub/WoW/other/InterfaceAddOnKit_OSX.zip
The Burning Crusade BETA Interface AddOn Kit can be found here:
http://www.worldofwarcraft.com/downloads/expansion-bc/addonkit.zip
Significant Changes
* WoW 2.0 has upgraded to Lua 5.1.1 as it provides a number of benefits (notably incremental garbage collection and efficient varargs). There ARE some incompatible changes from Lua 5.0, authors should read http://www.lua.org/manual/5.1
another number but I haven't worked out how its used. - optional API ScrollingMessageFrame AddMessage
Outputs text to a local MessageFrame, with optional color id.
MessageFrame:AddMessage(text[,r,g,b[,id]]);
Parameters
Arguments
(String text, Number red, Number green, Number blue, Number id)
text
The string message to output
r
The intensity of the red component. A number between 0.0 and 1.0
g
The intensity of the green component. A number between 0.0 and 1.0
b
The intensity of the blue component. A number between 0.0 and 1.0
id
A number that classifies the line of text, for later changing the color
Returns
nilSupported Escape Sequences
|cAARRGGBB
Sets text color. Text following this escape sequence will be drawn in this color. Each pair of digits represents a color value (plus the alpha value) as a hexadecimal number.
* |cFFFF0000 - Red text
* |cFF00FF00 - Green text
* |cFF0000FF - Blue text
* |cFFFFFF00 - Yellow text
* etc.
|r
Reset the color, all text following this sequence will be drawn in the default color of the text.
|Hlinkid|hLinktext|h
for Hyperlinks, while the only currently known links are item, enchant and player links
|Hitem:ItemID|hLinktext|h
for Item Links (ItemID must be the full Item-Id, ie. d:d:d:d:d:d:d:d style)
|Henchant:EnchantID|hLinktext|h
for Enchant Links
|Hplayer:Name|hLinktext|h
for Player Links (Click to whisper, CTRL-Click to select and Shift-Click to do a /Who Name)
|n
Possibly as newline in some cases.
||
Output "|" regardless of if whatever follows it looks like a valid escape.
A "|" followed by something that is not a valid escape sequence will be displayed as-is. Posted By: RandallStupid question, but if I created a message frame called "Auctioneer", would this turn into "Auctioneer:AddMessage(...)"?
1 to 9 of 9