SA-MP Forums Archive
Transparencia TEXT_DRAW_FONT_MODEL_PREVIEW - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: Transparencia TEXT_DRAW_FONT_MODEL_PREVIEW (/showthread.php?tid=629232)



Transparencia TEXT_DRAW_FONT_MODEL_PREVIEW - Andinho - 22.02.2017

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 ) ;



Re: Transparencia TEXT_DRAW_FONT_MODEL_PREVIEW - Whoo - 22.02.2017

deixa a cor do outline transparente


Re: Transparencia TEXT_DRAW_FONT_MODEL_PREVIEW - Cheleber_Pausini - 22.02.2017

PHP код:
PlayerTextDrawBoxColor(playerid, InvItem [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!


Re: Transparencia TEXT_DRAW_FONT_MODEL_PREVIEW - Andinho - 22.02.2017

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

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


Re: Transparencia TEXT_DRAW_FONT_MODEL_PREVIEW - Cheleber_Pausini - 22.02.2017

Nгo funfa, o que?


Re: Transparencia TEXT_DRAW_FONT_MODEL_PREVIEW - Andinho - 22.02.2017

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