SA-MP Forums Archive
Help with Textdraw Selectable. - 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: Help with Textdraw Selectable. (/showthread.php?tid=570550)



Help with Textdraw Selectable. - Kathleen - 11.04.2015

Hello,

I am not able to get those boxes selectable.
May anyone help me with it... I guess the problem is TextSize but i don't exactly know how it works.

Code:
	Lobby2 = TextDrawCreate(146.000030, 93.174102, "Option 1");
	TextDrawLetterSize(Lobby2, 0.000000, 0.929835);
	TextDrawTextSize(Lobby2, 31.333339, 0.000000);
	TextDrawAlignment(Lobby2, 1);
	TextDrawColor(Lobby2, 0);
	TextDrawUseBox(Lobby2, true);
	TextDrawBoxColor(Lobby2, -1378294017);
	TextDrawSetShadow(Lobby2, 0);
	TextDrawSetOutline(Lobby2, 0);
	TextDrawFont(Lobby2, 0);
	TextDrawSetSelectable(Lobby2, true);

	Lobby6 = TextDrawCreate(147.000015, 122.381523, "Option 2");
	TextDrawLetterSize(Lobby6, 0.000000, 0.929835);
	TextDrawTextSize(Lobby6, 31.333339, 0.000000);
	TextDrawAlignment(Lobby6, 1);
	TextDrawColor(Lobby6, 0);
	TextDrawUseBox(Lobby6, true);
	TextDrawBoxColor(Lobby6, -5963521);
	TextDrawSetShadow(Lobby6, 0);
	TextDrawSetOutline(Lobby6, 0);
	TextDrawFont(Lobby6, 0);
	TextDrawSetSelectable(Lobby6, true);

	Lobby7 = TextDrawCreate(148.000015, 150.759292, "Option 3");
	TextDrawLetterSize(Lobby7, 0.000000, 0.929835);
	TextDrawTextSize(Lobby7, 31.333335, 0.000000);
	TextDrawAlignment(Lobby7, 1);
	TextDrawColor(Lobby7, 0);
	TextDrawUseBox(Lobby7, true);
	TextDrawBoxColor(Lobby7, 65535);
	TextDrawSetShadow(Lobby7, 0);
	TextDrawSetOutline(Lobby7, 0);
	TextDrawFont(Lobby7, 0);
	TextDrawSetSelectable(Lobby7, true);

	Lobby8 = TextDrawCreate(149.000015, 179.966674, "Option 4");
	TextDrawLetterSize(Lobby8, 0.000000, 0.929835);
	TextDrawTextSize(Lobby8, 31.333335, 0.000000);
	TextDrawAlignment(Lobby8, 1);
	TextDrawColor(Lobby8, 0);
	TextDrawUseBox(Lobby8, true);
	TextDrawBoxColor(Lobby8, 8388863);
	TextDrawSetShadow(Lobby8, 0);
	TextDrawSetOutline(Lobby8, 0);
	TextDrawFont(Lobby8, 0);
	TextDrawSetSelectable(Lobby8, true);



Re: Help with Textdraw Selectable. - De4dpOol - 11.04.2015

TextDrawTextSize(Textid, 31.333339, 0.000000); Change the 0.000000 to a higher value depending on the size of textdraw.


Re: Help with Textdraw Selectable. - Kathleen - 11.04.2015

Quote:
Originally Posted by De4dpOol
View Post
TextDrawTextSize(Textid, 31.333339, 0.000000); Change the 0.000000 to a higher value depending on the size of textdraw.
I tried it before, but it doesn't work for me.


Re: Help with Textdraw Selectable. - Kathleen - 24.04.2015

Bump. No-one really helped me out that well