• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

native DialogAddButton(Dialog, "Name", 'Hotkey') [b]BUGG[/b]

Status
Not open for further replies.
Level 14
Joined
Jul 1, 2008
Messages
1,314
Does Someone know, how i can save Dialogs created by the native
DialogAddButton(Dialog, "Title", 'Hotkey')?

I made the trigger below and i found out, that (Last created dialog Button) doesnt refer to the dialog buttons created by this function...

This is very bad for me as i wanted to have hotkeys for those dialogues.

Does someone know, what i should put instead of (Last created dialog Button)?

  • Aktionen
    • Dialog - Clear Dialog
    • Dialog - Change the title of Dialog to Hauptmenu
    • Custom script: call DialogAddButton(udg_Dialog, "|c0000ff00S|ratistik", 'S')
    • Set DButton_Statistik = (Last created dialog Button)
    • Custom script: call DialogAddButton(udg_Dialog, "|c0000ff00N|rachrichten", 'N')
    • Set DButton_Nachrichten = (Last created dialog Button)
    • Custom script: call DialogAddButton(udg_Dialog, "|c0000ff00B|rauen", 'B')
    • Set DButton_Bauen = (Last created dialog Button)
    • Dialog - Show Dialog for (Triggering player)

Hope u could help me fast :D

Greetings
 
Status
Not open for further replies.
Top