HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

DialogCreate

08-16-2004, 03:28 PM#1
Sneaky-Sebbe
Can someone explain the function DialogCreate. When you create a dialog in the trigger editor the dialog is a variable that is shown with Dialog-Show/Hide.

Dialog-Show is the same as DialogDisplayBJ in JASS.

So what is the DialogCreate function doing. o_O
08-16-2004, 03:39 PM#2
LegolasArcher
That's what actually MAKE's the dialog that you can show/hide/add buttons to. For example:

Code:
 function MyFunc takes nothing returns nothing
 	local dialog MyDialog = DialogCreate( )
 
 	// Your dialog functions here.  I don't think a local dialog is a good idea, though.
 endfunction
 
08-16-2004, 03:44 PM#3
Sneaky-Sebbe
Thx, that was just what i was looking for. A way to create a local dialog. ;)