OnPlayerClickTextDraw One Textdraw Menu? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnPlayerClickTextDraw One Textdraw Menu? (
/showthread.php?tid=449890)
OnPlayerClickTextDraw One Textdraw Menu? -
Admigo - 10.07.2013
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
Re: OnPlayerClickTextDraw One Textdraw Menu? -
Vince - 10.07.2013
No. How would you know which option they clicked? The clickable area covers the entire textdraw.
Re: OnPlayerClickTextDraw One Textdraw Menu? -
Admigo - 10.07.2013
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
Re: OnPlayerClickTextDraw One Textdraw Menu? -
XcorelloX - 10.07.2013
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!
Re: OnPlayerClickTextDraw One Textdraw Menu? -
Admigo - 11.07.2013
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