• 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.

What's the hidden/JASS features of dialog?

Status
Not open for further replies.
Here is the native:
JASS:
native DialogAddButton              takes dialog whichDialog, string buttonText, integer hotkey returns button

You can specify an integer hotkey for that particular button, e.g. 'A' or 'B' (ASCII representations). There are also some additional hotkeys (although, I don't recommend using the ones that aren't supported on some laptops, e.g. "home"/"end"/"numpad" etc.). I made a list of a lot of them here (check the globals block):
http://www.hiveworkshop.com/forums/jass-resources-412/snippet-dialog-wrapper-240003/
Here is an example:
JASS:
call DialogAddButton(dg, "hello", 'A')
That will allow you to press "A" to press that button (shift doesn't matter).

As for the page thing--you don't actually increase the size directly. Instead, you just set a really long title (or maybe you use "\n", a linebreak, to take up multiple lines with your message. I forget). DialogSetMessage(dialog, string)
 
Status
Not open for further replies.
Top