• Check out the results of the Techtree Contest #19!
  • 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 void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Dialog Buttons

Status
Not open for further replies.
Yes, with DialogAddButton().

I'm assuming you're using GUI.

Let's also assume that there is a dialog variable called Dialog and a dialog button variable called buttons, and that variable is an array.

  • Custom script: set udg_buttons[1] = DialogAddButton( udg_Dialog , "Text - [Q]" , 'Q' )
This would make the buttons[1] to say

Text - [Q]

and it would be selected when you press Q.

You can make it work with enter I believe.
 
Last edited:
I seen this function in Jass. Though, What I was really wanting was to make it so no keys would be attached. Would I be able to use "null" in that instance?
JASS:
    set buttons[1] = DialogAddButton(dialog, "start", null)

Would this work?
 
Status
Not open for further replies.
Back
Top