SA-MP Forums Archive
Outlines. - 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: Outlines. (/showthread.php?tid=658035)



Outlines. - Dimkata - 21.08.2018

Hello guys.
I was wondering if you can help me make this code a little bit better.
This is my Level System box. which is located under the money tab.
I want to have an outline above and under the box like this:

This is my box>


Here is the code.
Код:
	EXPTD20 = TextDrawCreate(612.000000, 104.000000, "_");
	TextDrawBackgroundColor(EXPTD20, 255);
	TextDrawFont(EXPTD20, 1);
	TextDrawLetterSize(EXPTD20, 0.500000, 1.799999);
	TextDrawColor(EXPTD20, 80);
	TextDrawSetOutline(EXPTD20, 0);
	TextDrawSetProportional(EXPTD20, 1);
	TextDrawSetShadow(EXPTD20, 1);
	TextDrawUseBox(EXPTD20, 1);
	TextDrawBoxColor(EXPTD20, 80);
	TextDrawTextSize(EXPTD20, 494.000000, 0.000000);
	TextDrawSetSelectable(EXPTD20, 0);
Thank you


Re: Outlines. - Lokii - 21.08.2018

add 2 more boxes


Re: Outlines. - Dimkata - 21.08.2018

Quote:
Originally Posted by Lokii
Посмотреть сообщение
add 2 more boxes
how do you mean?


Re: Outlines. - Lokii - 21.08.2018

here i created it for u

PHP код:
TDEditor_TD[0] = TextDrawCreate(506.666748105.844413"box");
TextDrawLetterSize(TDEditor_TD[0], 0.0000002.066666);
TextDrawTextSize(TDEditor_TD[0], 581.0000000.000000);
TextDrawAlignment(TDEditor_TD[0], 1);
TextDrawColor(TDEditor_TD[0], -1);
TextDrawUseBox(TDEditor_TD[0], 1);
TextDrawBoxColor(TDEditor_TD[0], 102);
TextDrawSetShadow(TDEditor_TD[0], 0);
TextDrawBackgroundColor(TDEditor_TD[0], 255);
TextDrawFont(TDEditor_TD[0], 1);
TextDrawSetProportional(TDEditor_TD[0], 1);
TDEditor_TD[1] = TextDrawCreate(506.666748105.844413"box");
TextDrawLetterSize(TDEditor_TD[1], 0.000000, -0.062331);
TextDrawTextSize(TDEditor_TD[1], 581.0000000.000000);
TextDrawAlignment(TDEditor_TD[1], 1);
TextDrawColor(TDEditor_TD[1], -1);
TextDrawUseBox(TDEditor_TD[1], 1);
TextDrawBoxColor(TDEditor_TD[1], 255);
TextDrawSetShadow(TDEditor_TD[1], 0);
TextDrawBackgroundColor(TDEditor_TD[1], 255);
TextDrawFont(TDEditor_TD[1], 1);
TextDrawSetProportional(TDEditor_TD[1], 1);
TDEditor_TD[2] = TextDrawCreate(506.666748125.344413"box");
TextDrawLetterSize(TDEditor_TD[2], 0.000000, -0.062331);
TextDrawTextSize(TDEditor_TD[2], 581.0000000.000000);
TextDrawAlignment(TDEditor_TD[2], 1);
TextDrawColor(TDEditor_TD[2], -1);
TextDrawUseBox(TDEditor_TD[2], 1);
TextDrawBoxColor(TDEditor_TD[2], 255);
TextDrawSetShadow(TDEditor_TD[2], 0);
TextDrawBackgroundColor(TDEditor_TD[2], 255);
TextDrawFont(TDEditor_TD[2], 1);
TextDrawSetProportional(TDEditor_TD[2], 1);
TDEditor_TD[3] = TextDrawCreate(544.600402112.014808"0/100");
TextDrawLetterSize(TDEditor_TD[3], 0.2310000.728889);
TextDrawAlignment(TDEditor_TD[3], 2);
TextDrawColor(TDEditor_TD[3], -1);
TextDrawSetShadow(TDEditor_TD[3], 0);
TextDrawSetOutline(TDEditor_TD[3], 1);
TextDrawBackgroundColor(TDEditor_TD[3], 255);
TextDrawFont(TDEditor_TD[3], 0);
TextDrawSetProportional(TDEditor_TD[3], 1); 
preview:




Re: Outlines. - Dimkata - 21.08.2018

Now its working. Thank you very much <3 !