Textdraw not width of screen. - 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: Textdraw not width of screen. (
/showthread.php?tid=356929)
Textdraw not covering width of screen. -
Deal-or-die - 05.07.2012
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.
Re: Textdraw not width of screen. -
Deal-or-die - 07.07.2012
Added picture
Still no suggestions other than to create another textdraw?
Re: Textdraw not width of screen. -
MP2 - 07.07.2012
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.
Re: Textdraw not width of screen. -
[MM]RoXoR[FS] - 07.07.2012
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);
Re: Textdraw not width of screen. -
Deal-or-die - 11.07.2012
Thanks heaps, Both worked.