• 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!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Dialog Buttons

Status
Not open for further replies.
Level 37
Joined
Mar 6, 2006
Messages
9,243
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:
Level 9
Joined
Jun 7, 2008
Messages
440
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.
Top