LD_SPAC:white transparency ?
#1

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);
Reply
#2

you cant use box instead!
Reply
#3

No it's for SelectTextdraw for highlighted a box.
Reply
#4

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

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); 
Reply
#6

TextDrawColor(MENU_RACEDM[5], #FFFFFF00);
Reply
#7

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

But 0 is equivalent to no color.
Reply
#8

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
Reply
#9

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

sa-mp-226.jpg

sa-mp-227.jpg

sa-mp-228.jpg

sa-mp-229.jpg
Reply
#10

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.
Reply
#11

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); 
Reply
#12

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!
Reply
#13

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...
Reply
#14

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.
Reply
#15

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 ?
Reply
#16

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.
Reply
#17

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

Preview:

Reply
#18

Thank's you ! Fixed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)