PDA

View Full Version : Outlines.


Dimkata
21/08/2018, 12:48 PM
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:
https://imgur.com/WUH919n.png
This is my box>
https://imgur.com/DNMn8IN.png

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 :)

Lokii
21/08/2018, 12:59 PM
add 2 more boxes

Dimkata
21/08/2018, 01:03 PM
add 2 more boxes

how do you mean?

Lokii
21/08/2018, 01:04 PM
here i created it for u


TDEditor_TD[0] = TextDrawCreate(506.666748, 105.844413, "box");
TextDrawLetterSize(TDEditor_TD[0], 0.000000, 2.066666);
TextDrawTextSize(TDEditor_TD[0], 581.000000, 0.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.666748, 105.844413, "box");
TextDrawLetterSize(TDEditor_TD[1], 0.000000, -0.062331);
TextDrawTextSize(TDEditor_TD[1], 581.000000, 0.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.666748, 125.344413, "box");
TextDrawLetterSize(TDEditor_TD[2], 0.000000, -0.062331);
TextDrawTextSize(TDEditor_TD[2], 581.000000, 0.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.600402, 112.014808, "0/100");
TextDrawLetterSize(TDEditor_TD[3], 0.231000, 0.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:

https://s22.postimg.cc/m0nu8mq3l/image.png

Dimkata
21/08/2018, 01:19 PM
Now its working. Thank you very much <3 !