how count TextDrawTextSize
#1

Код:

how to know that size i need..


	Vartotojo[playerid][7] = CreatePlayerTextDraw(playerid, 225.812591, 248.916610, "INFO");
	PlayerTextDrawLetterSize(playerid, Vartotojo[playerid][7], 0.400000, 1.600000);
	PlayerTextDrawAlignment(playerid, Vartotojo[playerid][7], 1);
	PlayerTextDrawColor(playerid, Vartotojo[playerid][7], -1);
	PlayerTextDrawSetShadow(playerid, Vartotojo[playerid][7], 0);
	PlayerTextDrawSetOutline(playerid, Vartotojo[playerid][7], 0);
	PlayerTextDrawBackgroundColor(playerid, Vartotojo[playerid][7], 255);
	PlayerTextDrawFont(playerid, Vartotojo[playerid][7], 2);
	PlayerTextDrawSetProportional(playerid, Vartotojo[playerid][7], 1);
	PlayerTextDrawSetShadow(playerid, Vartotojo[playerid][7], 0);
	PlayerTextDrawSetSelectable(playerid, Vartotojo[playerid][7], true);
	PlayerTextDrawTextSize(playerid, Vartotojo[playerid][7], 2.0, 3.6);
Reply
#2

Experiment. However it is usually the easiest to enable the box, with alignment center. This will define a nice clickable area. You can set the box color to transparent so it isn't visible.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)