SA-MP Forums Archive
TextDraw box color - 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 box color (/showthread.php?tid=561060)



TextDraw box color - gilhrpenner - 31.01.2015

Hi there, by any chance I can change the TextDraw Box Color?
I would like it to be transparent but it seems I'm doing something wrong or it's just not possible.

Thanks anyways.

here's my code
PHP код:
    Textdraw6 TextDrawCreate(170.000000170.000000"character");
    
TextDrawBackgroundColor(Textdraw6255);
    
TextDrawFont(Textdraw65);
    
TextDrawLetterSize(Textdraw60.5000001.000000);
    
TextDrawColor(Textdraw6, -1);//I tried changing here
    
TextDrawSetOutline(Textdraw60);
    
TextDrawSetProportional(Textdraw61);
    
TextDrawSetShadow(Textdraw60);
    
TextDrawUseBox(Textdraw61);
    
TextDrawBoxColor(Textdraw60);//And here
    
TextDrawTextSize(Textdraw690.000000120.000000);
    
TextDrawSetSelectable(Textdraw61); 
What I would like it to be transparent is the black box around CJ.

Link to the img


Re: TextDraw box color - 1fret - 31.01.2015

Quote:
Originally Posted by gilhrpenner
Посмотреть сообщение
Hi there, by any chance I can change the TextDraw Box Color?
I would like it to be transparent but it seems I'm doing something wrong or it's just not possible.

Thanks anyways.

here's my code
PHP код:
    Textdraw6 TextDrawCreate(170.000000170.000000"character");
    
TextDrawBackgroundColor(Textdraw6255);
    
TextDrawFont(Textdraw65);
    
TextDrawLetterSize(Textdraw60.5000001.000000);
    
TextDrawColor(Textdraw6, -1);//I tried changing here
    
TextDrawSetOutline(Textdraw60);
    
TextDrawSetProportional(Textdraw61);
    
TextDrawSetShadow(Textdraw60);
    
TextDrawUseBox(Textdraw61);
    
TextDrawBoxColor(Textdraw60);//And here
    
TextDrawTextSize(Textdraw690.000000120.000000);
    
TextDrawSetSelectable(Textdraw61); 
What I would like it to be transparent is the black box around CJ.

Link to the img
try changing this line
pawn Код:
TextDrawBackgroundColor(Textdraw6, /*the color here\*);



Re: TextDraw box color - gilhrpenner - 31.01.2015

Thank you, I don't know hoe vome I didn't think about it before lol