HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Hotkeys to Dialog Boxes

04-18-2008, 09:59 PM#1
MysticGeneral
Is there anyway to put hotkeys into dialog boxes? I know you could do it before...
04-18-2008, 10:13 PM#2
Captain Griffen
Collapse JASS:
native DialogAddButton              takes dialog whichDialog, string buttonText, integer hotkey returns button

Integer is ASCII. Please extract the common.j and use that as your first port of call. Actually, you should have newgen, and that has a function list in it which you can use.
04-18-2008, 10:38 PM#3
MysticGeneral
Thank you. I remember in one of the patches, it stopped working for some reason. Glad that it works again.