OnPlayerClickTextDraw One Textdraw Menu?
#1

Hi,

I have a question about the OnPlayerClickTextDraw callback.
Is it possible to make only one textdraw for a menu instead of 8 textdraws for 8 options?
Example:
pawn Код:
TextDraw137[playerid]= TextDrawCreate(180.000000, 141.250000, "Click Option1~n~Click Option2~n~Click Option3~n~Click Option4~n~Click Option5~n~Click Option6~n~Click Option7~n~Click Option8");
Hope you can help me out.

Admigo
Reply
#2

No. How would you know which option they clicked? The clickable area covers the entire textdraw.
Reply
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
No. How would you know which option they clicked? The clickable area covers the entire textdraw.
Okay. Then there is one solution left. Lets make 8 textdraws:P
Reply
#4

I had the same problem unfortunately, the only way (theoretically) would be if there was a way of detecting the X,Y of the mouse and knowing the size of the textdraw.

Hmm, who knows, for now, we're stuck with this!
Reply
#5

Quote:
Originally Posted by XcorelloX
Посмотреть сообщение
I had the same problem unfortunately, the only way (theoretically) would be if there was a way of detecting the X,Y of the mouse and knowing the size of the textdraw.

Hmm, who knows, for now, we're stuck with this!
Lets hope for it:P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)