Text Draw Problem - 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: Text Draw Problem (
/showthread.php?tid=600465)
Text Draw Problem -
Compiler - 08.02.2016
When I make a Text Draw with Background. The Background doesnt stay within the text and it becomes like this:
But I want the background to remain until the Black line. Can Anybody Help me?
Re: Text Draw Problem -
Joron - 08.02.2016
Everyguy that ask for Textdraw help i always show them this video :
https://www.youtube.com/watch?v=ARsmM0PzM38
Re: Text Draw Problem -
Compiler - 08.02.2016
No Man I dont want to use Text Draw Editor. Just tell me how to fix this problem.
Re: Text Draw Problem -
Sascha - 08.02.2016
Quote:
Originally Posted by Compiler
No Man I dont want to use Text Draw Editor. Just tell me how to fix this problem.
|
what's the code you use to create this textdraw?
Re: Text Draw Problem -
amirm3hdi - 08.02.2016
You need to learn anything about textdraws at wiki, if you can't just use a Textdraw editor then look at the exported codes...
Re: Text Draw Problem -
Compiler - 09.02.2016
This is the code I used:
Quote:
text = TextDrawCreate(295.000000,105.000000,"GodMode Enabled!");
TextDrawUseBox(text, 1);
TextDrawBackgroundColor(text,0x00000033);
TextDrawBoxColor(text,0x00000066);
TextDrawSetProportional(text,1);
TextDrawColor(text, 0x00E600FF);
TextDrawSetShadow(text, 1);
TextDrawFont(text, 2);
TextDrawLetterSize(text, 0.28, 1.42);
|
Re: Text Draw Problem -
Compiler - 09.02.2016
Sorry There was a Double Post so I edited this one.
Re: Text Draw Problem -
Sascha - 09.02.2016
Obviously it won't stay as you wanted it.
A box is not set to be a "containing box" with a standard padding for the content by default.
You need to use
TextDrawTextSize to specify the size of the box.