Textdraw not width of screen.
#1

G'day,
I only just started playing around with textdraws in this perspective and I am having an issue with my text draw not covering the entire screen.

Example:

As the image tags aren't working here is a Alternative, Direct link to the image.

and this is my code.
pawn Code:
//Defines
#define TDx     660.000000
#define TDy     350.000000




// public OnGameModeInit
    LoginDraw2 = TextDrawCreate(TDx, TDy, "                            ");
    TextDrawBackgroundColor(LoginDraw2, 255);
    TextDrawFont(LoginDraw2, 1);
    TextDrawLetterSize(LoginDraw2, 0.500000, 1.000000);
    TextDrawColor(LoginDraw2, -1);
    TextDrawSetOutline(LoginDraw2, 1);
    TextDrawSetProportional(LoginDraw2, 1);
    TextDrawSetShadow(LoginDraw2, 1);
    TextDrawUseBox(LoginDraw2, 1);
    TextDrawBoxColor(LoginDraw2, 255);
    TextDrawTextSize(LoginDraw2, 2.000000, 73.000000);
Cheers.
Reply
#2

Added picture
Still no suggestions other than to create another textdraw?
Reply
#3

Use the textdraw editor.

If a textdraw is aligned CENTER, you can increase the width by changing the box size.
If the textdraw is aligned LEFT or RIGHT you can increase the LEFT or RIGHT margin/width whatever by moving it's position - the opposite side will stay fixed.

To increase a textdraw's height, use ~N~ as an empty line or if it has no text in set the text to an underscore (_) and change the font size to massive values.
Reply
#4

This will work
pawn Code:
LoginDraw2 = TextDrawCreate(660.000000, 350.000000, "                                                                                                            ");
TextDrawBackgroundColor(LoginDraw2, 255);
TextDrawFont(LoginDraw2, 1);
TextDrawLetterSize(LoginDraw2, 0.500000, 1.000000);
TextDrawColor(LoginDraw2, -1);
TextDrawSetOutline(LoginDraw2, 0);
TextDrawSetProportional(LoginDraw2, 1);
TextDrawSetShadow(LoginDraw2, 1);
TextDrawUseBox(LoginDraw2, 1);
TextDrawBoxColor(LoginDraw2, 255);
TextDrawTextSize(LoginDraw2, -19.000000, 87.000000);
Reply
#5

Thanks heaps, Both worked.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)