[Ajuda] Box transparente
#1

Como deixar o box transparente? Esta preto...
pawn Код:
XPStats[i] = TextDrawCreate(276.000000, 437.000000, "XP: 500/600");
        TextDrawBackgroundColor(XPStats[i], 255);
        TextDrawFont(XPStats[i], 2);
        TextDrawLetterSize(XPStats[i], 0.450000, 1.200000);
        TextDrawColor(XPStats[i], -1);
        TextDrawSetOutline(XPStats[i], 1);
        TextDrawSetProportional(XPStats[i], 1);
Reply
#2

Opacity is set by the alpha intensity of colour (eg. color 0x000000FF has a solid black box opacity, whereas 0x000000AA has a semi-transparent black box opacity).


Fonte:Wiki
Reply
#3

TextDrawBoxColor й isso ? se eu adicionar essa funзгo + o 0x000000AA vai ficar semi-transparente? ou vai dar conflito?
Reply
#4

nгo funcionou:

pawn Код:
XPStats[i] = TextDrawCreate(278.000000, 437.000000, "XP: 500/600");
        TextDrawBackgroundColor(XPStats[i], 255);
        TextDrawBoxColor(XPStats[i], 0x000000AA);
        TextDrawFont(XPStats[i], 2);
        TextDrawLetterSize(XPStats[i], 0.430000, 1.199999);
        TextDrawColor(XPStats[i], -1);
        TextDrawSetOutline(XPStats[i], 1);
        TextDrawSetProportional(XPStats[i], 1);
Reply
#5

Quote:
Originally Posted by eNtinityGaming
Посмотреть сообщение
nгo funcionou:

pawn Код:
XPStats[i] = TextDrawCreate(278.000000, 437.000000, "XP: 500/600");
        TextDrawBackgroundColor(XPStats[i], 255);
        TextDrawBoxColor(XPStats[i], 0x000000AA);
        TextDrawFont(XPStats[i], 2);
        TextDrawLetterSize(XPStats[i], 0.430000, 1.199999);
        TextDrawColor(XPStats[i], -1);
        TextDrawSetOutline(XPStats[i], 1);
        TextDrawSetProportional(XPStats[i], 1);
O que eu passei й referente a opacidade do Box da textdraw.

Й necessбrio que o Box apareca, e tambйm ajustar o tamanho do box.

pawn Код:
TextDrawUseBox(XPStats[i], 1);
Nгo sei se й valido tambйm para a textdraw em si.
Reply
#6

E essa linha aqui vai dar conflito?

TextDrawBackgroundColor(XPStats[i], 255);
Reply
#7

Simplesmente usa editor de textdrawn, e altera o "Alpha" que seria claridade e vocк salva simplesmente

Clique aqui pra baixar
Reply
#8

Quote:
Originally Posted by eNtinityGaming
Посмотреть сообщение
E essa linha aqui vai dar conflito?

TextDrawBackgroundColor(XPStats[i], 255);
Esse й apenas o contorno da textdraw.
Reply
#9

Nгo funcionou!
Reply
#10

Veja: https://sampwiki.blast.hk/wiki/Colors_List
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)