Textdraw problem - 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: Textdraw problem (
/showthread.php?tid=565735)
Textdraw problem -
Nabster - 01.03.2015
Whole text is getting hightlighted when i hover my mouse for example
USA
TALIBAN
i am hovering my mouse on USA but taliban will also get hightlighted i tried creating Invisible box around USA and TALIBAN but no sucess
Re: Textdraw problem -
M4D - 01.03.2015
you have to change textdraw selection area with: TextDrawTextSize
Re: Textdraw problem -
Nabster - 01.03.2015
Quote:
Originally Posted by M4D
you have to change textdraw selection area with: TextDrawTextSize
|
Can you show me an example
Код:
Sniper = TextDrawCreate(283.923889, 265.416595, "Sniper");
TextDrawLetterSize(Sniper, 0.449999, 1.600000);
TextDrawAlignment(Sniper, 1);
TextDrawColor(Sniper, -1523963137);
TextDrawSetShadow(Sniper, 0);
TextDrawSetOutline(Sniper, 1);
TextDrawBackgroundColor(Sniper, 51);
TextDrawFont(Sniper, 2);
TextDrawSetProportional(Sniper, 1);
TextDrawSetSelectable(Sniper, true);
Re: Textdraw problem -
De4dpOol - 01.03.2015
Quote:
Originally Posted by Nabster
Can you show me an example
Код:
Sniper = TextDrawCreate(283.923889, 265.416595, "Sniper");
TextDrawLetterSize(Sniper, 0.449999, 1.600000);
TextDrawAlignment(Sniper, 1);
TextDrawColor(Sniper, -1523963137);
TextDrawSetShadow(Sniper, 0);
TextDrawSetOutline(Sniper, 1);
TextDrawBackgroundColor(Sniper, 51);
TextDrawFont(Sniper, 2);
TextDrawSetProportional(Sniper, 1);
TextDrawSetSelectable(Sniper, true);
|
Depends on how large the text "Sniper" is.
Example: TextDrawTextSize(Sniper, 3.0, 3.0); //Add it under TextDrawSetSelectable....