dialogs, can you add hotkeys to dialog buttons?

polo2005

Wana start playing LoL? http://tinyurl.com/369as27
Reaction score
97
as topic says, is it possilbe to add hotkeys to dialogs?
 

jackall

You can change this now in User CP.
Reaction score
37
yes, you can, but you have to add the buttons in (v)JASS and the hotkeys are "represented" by a number code which i forgot
but im sure you can find a more detailed approach on this subject on this forum or wc3c/hive

EDIT:
JASS:
native DialogAddButton              takes dialog whichDialog, string buttonText, integer hotkey returns button


thats the native that adds dialog buttons with hotkeys

Another edit:

either use this system for your dialogs or just get the integers for hotkeys from it
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
As an alternative you could create a dummy unit, force the selection via triggers and give it abilities with hotkeys.

As a player i hate dialogues because they are activated by hitting the Enter button.
If i am chatting right now and a dialogue suddenly pops up i will choose a random option when hitting enter without notice.
That was the source for much rage in the past for me.
 

polo2005

Wana start playing LoL? http://tinyurl.com/369as27
Reaction score
97
well wont be a problem for me, since you cast a spell and then the dialog pops up :p

@jackall thanks
 

polo2005

Wana start playing LoL? http://tinyurl.com/369as27
Reaction score
97
for future GUI users as myself, UMSWE in JNG pack supprots dialogs with hotkeys.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top