showing 1 TD over another?
#1

So i got 2 TD`s,one a big black box on the entire screen and another one a picture.
the problem is the black screen is over the other TD so the other TD isn`t visible,how can i make the second TD to be over the black box?
Reply
#2

It depends on what order you show them to the player, in order to get the black box in the background you have to show it before the sprite.
Reply
#3

i tried
PHP код:
YCMD:sprite(playeridparams[], help)
{
    
PlayerTextDrawShow(playeridSprite[4]);
    
PlayerTextDrawShow(playeridSprite[0]);
    
PlayerTextDrawShow(playeridSprite[1]);
    
PlayerTextDrawShow(playeridSprite[2]);
    
PlayerTextDrawShow(playeridSprite[3]);
    return 
1;

still black box over all sprites

blackbox td :
PHP код:
Sprite[4] = CreatePlayerTextDraw(playerid641.6666871.500000"usebox");
    
PlayerTextDrawLetterSize(playeridSprite[4], 0.00000049.415019);
    
PlayerTextDrawTextSize(playeridSprite[4], -2.0000000.000000);
    
PlayerTextDrawAlignment(playerid,tSprite[4], 1);
    
PlayerTextDrawColor(playeridSprite[4], 0);
    
PlayerTextDrawUseBox(playeridSprite[4], true);
    
PlayerTextDrawBoxColor(playerid,Sprite[4], 255);
    
PlayerTextDrawSetShadow(playerid,Sprite[4], 0);
    
PlayerTextDrawSetOutline(playerid,Sprite[4], 0);
    
PlayerTextDrawFont(playeridSprite[4], 0); 
Reply
#4

Its actually behind other textdraws, but it just looks like its in the front. Try changing the transparency a bit.

0xFFFFFFAA
Reply
#5

toy have to show textdraws to players by numeric.
Reply
#6

SOLVED:iplaced thecreation of the textdraws before others (forgot to do that),it works now.

thanks guys .
Reply
#7

Textdraws that you've to show in background should be created before others which are supposed to show on it. If that also doesn't helps then reshow the other Textdraws (except for the background one).
Reply
#8

Quote:
Originally Posted by Logic_
Посмотреть сообщение
Textdraws that you've to show in background should be created before others which are supposed to show on it. If that also doesn't helps then reshow the other Textdraws (except for the background one).
solved,thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)