Transparencia TEXT_DRAW_FONT_MODEL_PREVIEW
#1

Bom, ja fiz uma vez, porem agr nao me lembro mais, como deixa a Box com transparencia ? talves eu esteja errando o codigo, ou nao, agradeco desde jб :

pawn Код:
InvItem[playerid][i] = CreatePlayerTextDraw(playerid, 175.0, 140.0, "_");
        PlayerTextDrawUseBox(playerid, InvItem [playerid][i], 1);
        PlayerTextDrawBoxColor(playerid, InvItem [playerid][i], 0x00000066);
        PlayerTextDrawTextSize(playerid, InvItem [playerid][i], 60.0, 60.0);
        PlayerTextDrawFont(playerid, InvItem [playerid][i], TEXT_DRAW_FONT_MODEL_PREVIEW);
        PlayerTextDrawSetPreviewModel(playerid, InvItem [playerid][i], 23);
            PlayerTextDrawSetPreviewRot(playerid, InvItem [playerid][i], -10.0, 0.0, -20.0, 1.0);
            PlayerTextDrawSetSelectable ( playerid, InvItem [playerid][i], 1 ) ;
Reply
#2

deixa a cor do outline transparente
Reply
#3

PHP код:
PlayerTextDrawBoxColor(playeridInvItem [playerid][i], 0x00000036); 
Tente assim

@EDIT
Use essa tool para escolher bem as cores:
http://www.gtagarage.com/mods/show.php?id=18324

Se vocк achar que essa cor estб muito transparente ou pouco transparente, nessa tool coloque o Red / Grren / Blue no 0 (para ser preto) e depois escolha a transparкncia no alpha!
Reply
#4

Quote:
Originally Posted by Whoo
Посмотреть сообщение
deixa a cor do outline transparente
Vou tentar ..

Quote:
Originally Posted by Cheleber_Pausini
Посмотреть сообщение
PHP код:
PlayerTextDrawBoxColor(playeridInvItem [playerid][i], 0x00000036); 
Tente assim
Nao dб, jб ta com transparencia mais nao funfa
Reply
#5

Nгo funfa, o que?
Reply
#6

Quote:
Originally Posted by Whoo
Посмотреть сообщение
deixa a cor do outline transparente
Pegou Obg +rep

Quote:
Originally Posted by Cheleber_Pausini
Посмотреть сообщение
Nгo funfa, o que?
tipo, tinha que colocar essas duas linhas :

PlayerTextDrawBackgroundColor ( playerid, InvItem [playerid][i], 0x00000077 ) ;
PlayerTextDrawSetOutline ( playerid, InvItem [playerid][i], 0x00000077 ) ;

mais vlw por ter tentado ajudar +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)