LUA / World Of Warcraft
WOW Crib Sheet
(Last updated: Oct 1st 2006)

Console
Frames
Message Boxes
GameTooltip
Hooking Functions
Mailbox Internals
Other Items of Interest

Console

Frames

<Anchor point="LEFT" relativePoint="TOPLEFT">
o point = text alignment
o relativePoint = X,Y position

DEFAULT_CHAT_FRAME:AddMessage(text)

 

Message Boxes

  1. Register the dialog (typically during the add-in's OnLoad event):
    StaticPopupDialogs["SIMPLEBANKER_RESET"] = {

        text = "Are you sure you want to reset the Simple Banker data? Data for all bankers (not just the current character) will be lost!",

        button1 = "Yes",

        button2 = "No",

        OnAccept = SimpleBanker_Reset,

        timeout = 0,

        whileDead = 1,

        hideOnEscape = 1

    };


  2. Display the dialog:

    StaticPopup_Show("SIMPLEBANKER_RESET")

GameTooltip

 

Hooking Functions

 

MailBox Internals

Other Items of interest