SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 04/01/2016, 02:29 PM   #1
shift3r
Little Clucker
 
Join Date: Dec 2015
Posts: 21
Reputation: 0
Default Dumb question

How to make the enter key be equal to pressing a button in a dialog?
shift3r is offline   Reply With Quote
Old 04/01/2016, 02:32 PM   #2
justinnater
Huge Clucker
 
justinnater's Avatar
 
Join Date: Jan 2011
Posts: 248
Reputation: 85
Default Re: Dumb question

Enter equals selecting a dialog button already. (Atleast for DIALOG_STYLE_LIST)
justinnater is offline   Reply With Quote
Old 04/01/2016, 05:38 PM   #3
shift3r
Little Clucker
 
Join Date: Dec 2015
Posts: 21
Reputation: 0
Default Re: Dumb question

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).
shift3r is offline   Reply With Quote
Old 04/01/2016, 07:23 PM   #4
AmigaBlizzard
Huge Clucker
 
Join Date: Jul 2012
Posts: 319
Reputation: 60
Default Re: Dumb question

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".
AmigaBlizzard is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Probably a dumb question. Trevor19012 Scripting Help 2 03/08/2015 02:17 AM
LoL Dumb people gonna be dumb... Heffernan Everything and Nothing 2 19/10/2011 06:48 PM
Very dumb question anumaz Help Archive 7 17/03/2011 09:58 PM
Dumb question !Pumpkin Help Archive 0 09/01/2011 11:53 AM
I am dumb, i know, but i still need help Moustafa Help Archive 9 03/09/2009 03:19 PM


All times are GMT. The time now is 10:58 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.