Couple of 0.3 questions.
#1

Here are my questions:

1. I am using DIALOG_INPUT_MSGBOX, how do i detect which of the buttons player pressed ?
2. Can DIALOG_INPUT_MSGBOX have more than 2 buttons ?

Thank you for you anwers.
Reply
#2

Look @ Wiki , there you can find more
and no i think you cant have more than 2 Buttons ^^
Reply
#3

Use the 'response' parameter in the OnDialogResponse callback to determine what button they pressed. If response is 0 they pressed the first button, if it's 1 they pressed the second.

You can only have 2 buttons per dialog.
Reply
#4

Thanks Mikep.
Reply
#5

Better to say.
If they pressed the right button response == 0
If they pressed the left on repsonse == 1
Reply
#6

Quote:
Originally Posted by Mikep.
Use the 'response' parameter in the OnDialogResponse callback to determine what button they pressed. If response is 0 they pressed the first button, if it's 1 they pressed the second.

You can only have 2 buttons per dialog.
that's wrong

Quote:
Originally Posted by 8D.
Better to say.
If they pressed the right button response == 0
If they pressed the left on repsonse == 1
That's correct
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)