TextDraw Place
#1

Hello,
Today i am trying to learn a bit textdraw code. I just wonder how do i know where the textdraw needs to be located on the screen? I mean how do real scripters know exactly what coordinates they needs to write?
For example this code
Код:
	SetPVarInt(playerid, "FuelBar", _:bar);
	new Text:speedtext = TextDrawCreate(504.000000, 354.000000, "~p~255 ~w~km/h");
	TextDrawBackgroundColor(speedtext, 0x000000FF);
	TextDrawFont(speedtext, 1);
	TextDrawLetterSize(speedtext, 0.400000, 1.000000);
	TextDrawColor(speedtext, 0xA803D0FF);
	TextDrawSetOutline(speedtext, 0);
	TextDrawSetProportional(speedtext, 1);
	TextDrawSetShadow(speedtext, 1);
	TextDrawHideForPlayer(playerid, speedtext);
	SetPVarInt(playerid, "SpeedDraw", _:speedtext);
I like to move this speedometer to another location. How do i know what coordinates i need to write?
Reply
#2

Quote:
Originally Posted by Tony$$
Посмотреть сообщение
How do i know what coordinates i need to write?
The answer is very simple, with an editor

Like this one: https://sampforum.blast.hk/showthread.php?tid=290640

Greekz
Reply
#3

Editor? Thats all i been wondering for days?
Anyways could you give me some good ones?
Reply
#4

As you create more textdraws you become familiar with the way they work. Editors are nice, but very often they include other settings which you do not really need.

If you can picture the 640x480 drawing canvas in your head you should have a very good idea of its approximate position. (0, 0) is the top left, (640, 480) is the bottom right, (320, 240) is the exact center.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)