WoW:Creating simple pop-up dialog boxes (source)
Revision as of 19:53, 7 January 2009
, 7 January 2009no edit summary
mNo edit summary |
|||
| Line 8: | Line 8: | ||
== Basic Setup == | == Basic Setup == | ||
In the "Hello, World" programming tradition, the example on this page will assume that you have a function, called <tt>GreetTheWorld</tt>, and that you are creating a simple dialog to ask the player whether or not to be socially outgoing. | |||
New dialogs are created by adding an entry to the global <tt>StaticPopupDialogs</tt> table, and populating the entry with required and optional information. Here is a simple two-button entry: | New dialogs are created by adding an entry to the global <tt>StaticPopupDialogs</tt> table, and populating the entry with required and optional information. Here is a simple two-button entry: | ||