Textdraw Box
#1

So I have been trying to create a textdraw with the box ON, What I am currently using is a modified version of iPLEOMax's Textdraw Editor edited by adri.

The problem is whenever I try to enable the box ON, The size of the box gets wider than it's original size so I was forced to create another textdraw for boxes.


with textdrawbox ON


with textdrawbox OFF, two separated textdraw (X is a separate textdraw, the box is a separate textdraw too)

Any idea on how to solve it out?

Separated X & BOX code:
PHP код:
// The Exit Button
MDC_Text[2] = TextDrawCreate(478.125000129.916671"X");
TextDrawLetterSize(MDC_Text[2], 0.3224991.179998);
TextDrawAlignment(MDC_Text[2], 1);
TextDrawColor(MDC_Text[2], -1);
TextDrawSetShadow(MDC_Text[2], 0);
TextDrawSetOutline(MDC_Text[2], -1);
TextDrawBackgroundColor(MDC_Text[2], 255);
TextDrawFont(MDC_Text[2], 1);
TextDrawSetProportional(MDC_Text[2], 1);
TextDrawSetShadow(MDC_Text[2], 0);
// Box Shit for Close Button
MDC_Text[11] = TextDrawCreate(480.000000132.833343"box");
TextDrawLetterSize(MDC_Text[11], 0.0000000.250000);
TextDrawTextSize(MDC_Text[11], 485.0000000.000000);
TextDrawAlignment(MDC_Text[11], 1);
TextDrawColor(MDC_Text[11], -1);
TextDrawUseBox(MDC_Text[11], 1);
TextDrawBoxColor(MDC_Text[11], -16776961);
TextDrawSetShadow(MDC_Text[11], 0);
TextDrawSetOutline(MDC_Text[11], 0);
TextDrawBackgroundColor(MDC_Text[11], 255);
TextDrawFont(MDC_Text[11], 1);
TextDrawSetProportional(MDC_Text[11], 1);
TextDrawSetShadow(MDC_Text[11], 0);
TextDrawSetSelectable(MDC_Text[11], 1); 
X & BOX all in one
PHP код:
// The Exit Button
MDC_Text[12] = TextDrawCreate(478.125000129.916671"X");
TextDrawLetterSize(MDC_Text[12], 0.3224991.179998);
TextDrawTextSize(MDC_Text[12], 485.0000000.000000);
TextDrawAlignment(MDC_Text[12], 1);
TextDrawUseBox(MDC_Text[12], 1);
TextDrawBoxColor(MDC_Text[12], -16776961);
TextDrawColor(MDC_Text[12], -1);
TextDrawSetShadow(MDC_Text[12], 0);
TextDrawSetOutline(MDC_Text[12], -1);
TextDrawBackgroundColor(MDC_Text[12], 255);
TextDrawFont(MDC_Text[12], 1);
TextDrawSetProportional(MDC_Text[12], 1);
TextDrawSetShadow(MDC_Text[12], 0); 
Reply
#2

bump dis up aye
Reply
#3

What's the issue? You got it to work with 2 textdraws so just use 2 textdraws? They can be funny sometimes. I always find it better to use a seperate one for the box anyhow, as it's size is relative to the text inside. IE if you change the text in the script or whatever it will screw with the box size.
Reply
#4

Aite then, I will stick with the separate technique.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)