TextDrawTextSize

From SA-MP Wiki

Jump to: navigation, search

TextDrawTextSize


When used with TextDrawUseBox it changes the size of the box.


Parameters:
(Text:text, Float:x, Float:y)
textThe TextDraw to change.
xThe x size following the same 640x480 grid as TextDrawCreate.
yThe y size following the same 640x480 grid as TextDrawCreate.


Note: When used with TextDrawAlignment of alignment 3 (right), the x and y are the coordinates of the left most corner of the box. For alignment 2 (center) the x and y values need to inverted (switch the two) and the x value is the overall width of the box. For all other alignments the x and y coordinates are for the right most corner of the box.


This function does not return a specific value.


MyTextDraw = TextDrawCreate(100.0, 33.0,"Example TextDraw");
TextDrawTextSize(MyTextDraw, 2.0, 3.6);

Related Functions

The following functions might be useful as well, as they're related to this function in one way or another.


Personal tools