Selecting textdraws with keys
#8

Quote:
Originally Posted by shadowdog
Посмотреть сообщение
You could show the player the textdraws, and set a variable if he's in the selection.

Then under OnPlayerKeyStateChange, you check if is the player is in the selection. If they press the arrow keys for example, you give them the illusion that they are scrolling through the selection, using different colors for the 'currently selected' and the other.

If the player presses the next keys, you make the next button the other color and set the other back. With the same method you can keep track of which button he is at, so that when he presses the confirm key, the righ function pops up.
We have a problem there, OnPlayerKeyStateChange isn't called for directional keys.

But that's the idea, yes.
Reply


Messages In This Thread
Selecting textdraws with keys - by PeterJane - 28.06.2015, 14:58
Re: Selecting textdraws with keys - by Bomber07 - 28.06.2015, 15:01
Re: Selecting textdraws with keys - by !damo!spiderman - 28.06.2015, 15:05
Respuesta: Selecting textdraws with keys - by [DOG]irinel1996 - 28.06.2015, 15:11
Re: Respuesta: Selecting textdraws with keys - by PeterJane - 28.06.2015, 16:02
Respuesta: Selecting textdraws with keys - by [DOG]irinel1996 - 28.06.2015, 16:29
Re: Selecting textdraws with keys - by shadowdog - 28.06.2015, 17:08
Respuesta: Re: Selecting textdraws with keys - by [DOG]irinel1996 - 28.06.2015, 17:15
Re: Selecting textdraws with keys - by Ritzy2K - 28.06.2015, 18:07
Re: Selecting textdraws with keys - by hamzajaved780 - 28.06.2015, 18:13

Forum Jump:


Users browsing this thread: 1 Guest(s)