• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Get your art tools and paintbrushes ready and enter Hive's 34th Texturing Contest: Void! Click here to enter!

making a dialog menu

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 65
Joined
Jan 18, 2005
Messages
27,296
You firstly have to wait until after map initialization (it will not work therwise), this means a delay of 0 (yes 0 is a delay as long as it is not run on map init) or more (I advise a few seconds after map init atleast or anytime during gameplay).
Then you have to create the main frame with the tital text.
Then you add your buttons to the frame with the text to match what each does.
Finally you display the dialog.

Remember that you will probably have to store the fram and buttons in variables of the corrosponding type for use later. You then run a trigger with an event that fires when a button is pressed in the dialog and check if the pressed button matches the stored ones. If it does than that button was pressed so run the actions.
 
Status
Not open for further replies.
Top