WoW:Creating simple pop-up dialog boxes: Difference between revisions

m
no edit summary
mNo edit summary
Line 8: Line 8:
== Basic Setup ==
== Basic Setup ==


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.
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:
Anonymous user