SA-MP Forums Archive
What do you think about this? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: General (https://sampforum.blast.hk/forumdisplay.php?fid=13)
+--- Thread: What do you think about this? (/showthread.php?tid=497634)



What do you think about this? - Midzi - 27.02.2014

Hello

What do you think about multi buttons in dialogs? Something like that:




Creating dialog (max 8 buttons):

Код:
ShowPlayerDialog(playerid, dialogid, dialogtype, header[], text[], button1[], button2[], button3[], ...);
OnDialogReponse:

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
     if(response == 0)
     {
     }
     else if(response == 1)
     {
     }
     else if(response == 2)
     {
     }

     // etc
}
If we have more than 4 buttons, next buttons ( 5 .. 8 ) will show in new line.

What do you think?


Re: What do you think about this? - Vince - 27.02.2014

A third button would be nice, but you really don't need any more than that (Back, Next, Cancel or Abort, Retry, Ignore). Use textdraws for extensive UI.

PS: How I love vague topic titles ...


Re: What do you think about this? - Midzi - 27.02.2014

It will be very useful.

"Area 1" "Area 2" "Area 3" "Area 4" "Los Santos" "Las Venturas" "San Fierro" "Home"

"Register" "Login" "Play" "Exit"


For votes:

"Thing 1" "Thing 2" "Thing 3" "Thing 4" "Thing 5"


For object places:

"Stunt 1" "Stunt 2" "Stunt 3" "Stunt 4" "Stunt 5"


I know DIALOG_STYLE_LIST is for that, but buttons are better i think


Player/Admin panels:
"Kick" "Ban" "Warn" "Mute" "Jail"


Re: What do you think about this? - Vince - 27.02.2014

As I said, use clickable textdraw for UI. I'm not really in favor of this DirectX stuff and prefer the original feel of the game.


Re: What do you think about this? - Midzi - 27.02.2014

And i have next question.

Can we designate clickable area for fifth font?

For example if we have skin in preview and we set textdraw clickable, we can designate this?

Sorry for my english