SA-MP Forums Archive
Dumb question - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dumb question (/showthread.php?tid=597746)



Dumb question - shift3r - 04.01.2016

How to make the enter key be equal to pressing a button in a dialog?


Re: Dumb question - justinnater - 04.01.2016

Enter equals selecting a dialog button already. (Atleast for DIALOG_STYLE_LIST)


Re: Dumb question - shift3r - 04.01.2016

Can I set it to be that specific dialog button? Because there's other buttons that preceed the dialog button where my dialog shows up (the spawn button).


Re: Dumb question - AmigaBlizzard - 04.01.2016

Dialogs can have up to 2 buttons, where the left one is linked to the ENTER key and the right one is linked to the ESCAPE key, you can't change that.
Whatever text you put onto those buttons is up to you however.
Usually the left button has "SELECT", "OK", "YES" or something like that and the right usually has something like "CANCEL", "BACK", "EXIT" or "NO".