SA-MP Forums Archive
LD_SPAC:white transparency ? - 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: LD_SPAC:white transparency ? (/showthread.php?tid=658538)



LD_SPAC:white transparency ? - djoudjou - 06.09.2018

Hello, how can I have "LD_SPAC:white" with 100% transparency ?

Код HTML:
	MENU_RACEDM[5] =
	TextDrawCreate				(321.966491, 163.555541, "LD_SPAC:white"); // race dm
	TextDrawAlignment			(MENU_RACEDM[5], 1);
	TextDrawColor				(MENU_RACEDM[5], -1);
	TextDrawSetShadow			(MENU_RACEDM[5], 0);
	TextDrawSetOutline			(MENU_RACEDM[5], 0);
	TextDrawBackgroundColor		(MENU_RACEDM[5], 0);
	TextDrawFont				(MENU_RACEDM[5], 4);
	TextDrawSetProportional		(MENU_RACEDM[5], 0);
	TextDrawSetSelectable		(MENU_RACEDM[5], true);



Re: LD_SPAC:white transparency ? - Lokii - 06.09.2018

you cant use box instead!


Re: LD_SPAC:white transparency ? - djoudjou - 06.09.2018

No it's for SelectTextdraw for highlighted a box.


Re: LD_SPAC:white transparency ? - Gammix - 06.09.2018

PHP код:
TextDrawColor                (MENU_RACEDM[5], 0); 



Re: LD_SPAC:white transparency ? - djoudjou - 06.09.2018

Black boxwith Color 0

PHP код:
    MENU_RACEDM[5] =
    
TextDrawCreate                (321.966491163.555541"LD_SPAC:white"); // race dm
    
TextDrawTextSize            (MENU_RACEDM[5], 87.00000086.000000);
    
TextDrawAlignment            (MENU_RACEDM[5], 1);
    
TextDrawColor                (MENU_RACEDM[5], 0);
    
TextDrawSetShadow            (MENU_RACEDM[5], 0);
    
TextDrawSetOutline            (MENU_RACEDM[5], 0);
    
TextDrawBackgroundColor        (MENU_RACEDM[5], 0);
    
TextDrawFont                (MENU_RACEDM[5], 4);
    
TextDrawSetProportional        (MENU_RACEDM[5], 0);
    
TextDrawSetSelectable        (MENU_RACEDM[5], true); 



Re: LD_SPAC:white transparency ? - Shinja - 06.09.2018

TextDrawColor(MENU_RACEDM[5], #FFFFFF00);


Re: LD_SPAC:white transparency ? - Gammix - 06.09.2018

Its a known bug sometimes LD_SPAC:WHITE or LD_SPAC:BLACK sprites doesn't support transparency.

But 0 is equivalent to no color.


Re: LD_SPAC:white transparency ? - djoudjou - 06.09.2018

Quote:
Originally Posted by Gammix
Посмотреть сообщение
Its a known bug sometimes LD_SPAC:WHITE or LD_SPAC:BLACK sprites doesn't support transparency.

But 0 is equivalent to no color.
When I set color to 0, it's appears a black box


Re: LD_SPAC:white transparency ? - Undef1ned - 06.09.2018

PHP код:
TextDrawColor (MENU_RACEDM [5], 0xFFFFFF00); 
Currently tested!

sa-mp-226.jpg

sa-mp-227.jpg

sa-mp-228.jpg

sa-mp-229.jpg


Re: LD_SPAC:white transparency ? - djoudjou - 06.09.2018

Quote:
Originally Posted by Undef1ned
Посмотреть сообщение
PHP код:
TextDrawColor (MENU_RACEDM [5], 0xFFFFFF00); 
Currently tested!

Вложение 11846

Вложение 11847

Вложение 11848

Вложение 11849
It was a box or a sprite ? Because with a box, it's don't work. Please show me your code.


Re: LD_SPAC:white transparency ? - Undef1ned - 06.09.2018

PHP код:
TDEditor_TD[0] = TextDrawCreate(265.000000155.000000"LD_SPAC:white");
TextDrawLetterSize(TDEditor_TD[0], 0.0000000.000000);
TextDrawTextSize(TDEditor_TD[0], 90.00000090.000000);
TextDrawAlignment(TDEditor_TD[0], 1);
TextDrawColor(TDEditor_TD[0], -256);
TextDrawSetShadow(TDEditor_TD[0], 0);
TextDrawSetOutline(TDEditor_TD[0], 0);
TextDrawBackgroundColor(TDEditor_TD[0], 255);
TextDrawFont(TDEditor_TD[0], 4);
TextDrawSetProportional(TDEditor_TD[0], 0);
TextDrawSetShadow(TDEditor_TD[0], 0);
TextDrawSetSelectable(TDEditor_TD[0], true); 



Re: LD_SPAC:white transparency ? - Lokii - 06.09.2018

Quote:
Originally Posted by djoudjou
Посмотреть сообщение
It was a box or a sprite ? Because with a box, it's don't work. Please show me your code.
By the pics i see its a sprite.

But for me it's not working either if i do 0xFFFFFF00 its still white with no transparency

Quote:
Originally Posted by Undef1ned
Посмотреть сообщение
PHP код:
TDEditor_TD[0] = TextDrawCreate(265.000000155.000000"LD_SPAC:white");
TextDrawLetterSize(TDEditor_TD[0], 0.0000000.000000);
TextDrawTextSize(TDEditor_TD[0], 90.00000090.000000);
TextDrawAlignment(TDEditor_TD[0], 1);
TextDrawColor(TDEditor_TD[0], -256);
TextDrawSetShadow(TDEditor_TD[0], 0);
TextDrawSetOutline(TDEditor_TD[0], 0);
TextDrawBackgroundColor(TDEditor_TD[0], 255);
TextDrawFont(TDEditor_TD[0], 4);
TextDrawSetProportional(TDEditor_TD[0], 0);
TextDrawSetShadow(TDEditor_TD[0], 0);
TextDrawSetSelectable(TDEditor_TD[0], true); 
just tested it solid white!


Re: LD_SPAC:white transparency ? - djoudjou - 06.09.2018

PHP код:

    MENU_RACEDM
[5] =
    
TextDrawCreate                (321.966491163.555541"LD_SPAC:white"); // race dm
    
TextDrawLetterSize            (MENU_RACEDM[5], 0.0000000.000000);
    
TextDrawTextSize            (MENU_RACEDM[5], 87.00000086.000000);
    
TextDrawAlignment            (MENU_RACEDM[5], 1);
    
TextDrawColor                (MENU_RACEDM[5], -256);
    
TextDrawSetShadow            (MENU_RACEDM[5], 0);
    
TextDrawSetOutline            (MENU_RACEDM[5], 0);
    
TextDrawBackgroundColor        (MENU_RACEDM[5], 255);
    
TextDrawFont                (MENU_RACEDM[5], 4);
    
TextDrawSetProportional        (MENU_RACEDM[5], 0);
    
TextDrawSetShadow            (MENU_RACEDM[5], 0);
    
TextDrawSetSelectable        (MENU_RACEDM[5], true); 
It was a blank box...



Re: LD_SPAC:white transparency ? - Gammix - 06.09.2018

Quote:
Originally Posted by Gammix
Посмотреть сообщение
Its a known bug sometimes LD_SPAC:WHITE or LD_SPAC:BLACK sprites doesn't support transparency.
^ This is why its not working, try any other sprite model and it may work.


Re: LD_SPAC:white transparency ? - djoudjou - 06.09.2018

Quote:
Originally Posted by Gammix
Посмотреть сообщение
^ This is why its not working, try any other sprite model and it may work.
Can you give me the name of an other sprite model ?


Re: LD_SPAC:white transparency ? - NaS - 06.09.2018

Quote:
Originally Posted by djoudjou
Посмотреть сообщение
Can you give me the name of an other sprite model ?
You can browse them yourself. Get TXD Workshop or another tool and open the TXD files in "GTA SA/models/txd/".

However all the white/black sprites are basically the same, all without alpha channel so I doubt it will make a difference.


Re: LD_SPAC:white transparency ? - Lokii - 06.09.2018

Quote:
Originally Posted by djoudjou
Посмотреть сообщение
Can you give me the name of an other sprite model ?
i found one: particle:wincrack_32

Preview:




Re: LD_SPAC:white transparency ? - djoudjou - 06.09.2018

Thank's you ! Fixed.