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