[Pedido] Mudar cor do TextLogin
#1

Bom,desculpe pelo outro post mais enfim,logo abaixo ta um Pawn Code da tela de login inicial,nela tem 2 digamos faixas verdes pequenas e compridas,queria mudar a cor dela para azul escuro mais to acostumado a mudar a cor sу com 0x0000FF por exemplo me ajudem plz:

pawn Код:
//TEXTS LOGIN
    TextDrawLogin0 = TextDrawCreate(655.000000, -12.000000, "_");
    TextDrawBackgroundColor(TextDrawLogin0, 255);
    TextDrawFont(TextDrawLogin0, 1);
    TextDrawLetterSize(TextDrawLogin0, 0.709999, 17.399990);
    TextDrawColor(TextDrawLogin0, -1);
    TextDrawSetOutline(TextDrawLogin0, 0);
    TextDrawSetProportional(TextDrawLogin0, 1);
    TextDrawSetShadow(TextDrawLogin0, 1);
    TextDrawUseBox(TextDrawLogin0, 1);
    TextDrawBoxColor(TextDrawLogin0, 255);
    TextDrawTextSize(TextDrawLogin0, -41.000000, 0.000000);

    TextDrawLogin1 = TextDrawCreate(208.000000, 10.000000, "> Brasil Revolution Life <");
    TextDrawBackgroundColor(TextDrawLogin1, 255);
    TextDrawFont(TextDrawLogin1, 2);
    TextDrawLetterSize(TextDrawLogin1, 0.409999, 2.299998);
    TextDrawColor(TextDrawLogin1, 16711935);
    TextDrawSetOutline(TextDrawLogin1, 0);
    TextDrawSetProportional(TextDrawLogin1, 1);
    TextDrawSetShadow(TextDrawLogin1, 1);

    TextDrawLogin2 = TextDrawCreate(190.000000, 26.000000, "-");
    TextDrawBackgroundColor(TextDrawLogin2, 255);
    TextDrawFont(TextDrawLogin2, 0);
    TextDrawLetterSize(TextDrawLogin2, 22.110048, 1.000000);
    TextDrawColor(TextDrawLogin2, -1);
    TextDrawSetOutline(TextDrawLogin2, 0);
    TextDrawSetProportional(TextDrawLogin2, 1);
    TextDrawSetShadow(TextDrawLogin2, 1);

    TextDrawLogin3 = TextDrawCreate(208.000000, 41.000000, "> Brasil Revolution Life <");
    TextDrawBackgroundColor(TextDrawLogin3, 255);
    TextDrawFont(TextDrawLogin3, 2);
    TextDrawLetterSize(TextDrawLogin3, 0.409999, -1.000000);
    TextDrawColor(TextDrawLogin3, 16711830);
    TextDrawSetOutline(TextDrawLogin3, 0);
    TextDrawSetProportional(TextDrawLogin3, 1);
    TextDrawSetShadow(TextDrawLogin3, 1);

    TextDrawLogin4 = TextDrawCreate(1.000000, 145.000000, "_");
    TextDrawBackgroundColor(TextDrawLogin4, 255);
    TextDrawFont(TextDrawLogin4, 1);
    TextDrawLetterSize(TextDrawLogin4, -2.739999, 0.000000);
    TextDrawColor(TextDrawLogin4, -1);
    TextDrawSetOutline(TextDrawLogin4, 0);
    TextDrawSetProportional(TextDrawLogin4, 1);
    TextDrawSetShadow(TextDrawLogin4, 1);
    TextDrawUseBox(TextDrawLogin4, 1);
    TextDrawBoxColor(TextDrawLogin4, 16711935);
    TextDrawTextSize(TextDrawLogin4, 670.000000, -50.000000);

    TextDrawLogin5 = TextDrawCreate(1.000000, 315.000000, "_");
    TextDrawBackgroundColor(TextDrawLogin5, 255);
    TextDrawFont(TextDrawLogin5, 1);
    TextDrawLetterSize(TextDrawLogin5, -2.739999, 0.000000);
    TextDrawColor(TextDrawLogin5, -1);
    TextDrawSetOutline(TextDrawLogin5, 0);
    TextDrawSetProportional(TextDrawLogin5, 1);
    TextDrawSetShadow(TextDrawLogin5, 1);
    TextDrawUseBox(TextDrawLogin5, 1);
    TextDrawBoxColor(TextDrawLogin5, 16711935);
    TextDrawTextSize(TextDrawLogin5, 670.000000, -50.000000);

    TextDrawLogin6 = TextDrawCreate(1.000000, 131.000000, "=-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-");
    TextDrawBackgroundColor(TextDrawLogin6, 255);
    TextDrawFont(TextDrawLogin6, 2);
    TextDrawLetterSize(TextDrawLogin6, 0.310000, 1.000000);
    TextDrawColor(TextDrawLogin6, -65281);
    TextDrawSetOutline(TextDrawLogin6, 0);
    TextDrawSetProportional(TextDrawLogin6, 1);
    TextDrawSetShadow(TextDrawLogin6, 1);

    TextDrawLogin7 = TextDrawCreate(0.000000, 318.000000, "=-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-");
    TextDrawBackgroundColor(TextDrawLogin7, 255);
    TextDrawFont(TextDrawLogin7, 2);
    TextDrawLetterSize(TextDrawLogin7, 0.310000, 1.000000);
    TextDrawColor(TextDrawLogin7, -65281);
    TextDrawSetOutline(TextDrawLogin7, 0);
    TextDrawSetProportional(TextDrawLogin7, 1);
    TextDrawSetShadow(TextDrawLogin7, 1);

    TextDrawLogin8 = TextDrawCreate(0.000000, 144.000000, "Brasil Revolution Life");
    TextDrawBackgroundColor(TextDrawLogin8, 255);
    TextDrawFont(TextDrawLogin8, 2);
    TextDrawLetterSize(TextDrawLogin8, 0.500000, 2.000000);
    TextDrawColor(TextDrawLogin8, -65281);
    TextDrawSetOutline(TextDrawLogin8, 0);
    TextDrawSetProportional(TextDrawLogin8, 1);
    TextDrawSetShadow(TextDrawLogin8, 1);

    TextDrawLogin9 = TextDrawCreate(603.000000, 297.000000, "v2.6");
    TextDrawBackgroundColor(TextDrawLogin9, 255);
    TextDrawFont(TextDrawLogin9, 2);
    TextDrawLetterSize(TextDrawLogin9, 0.400000, 1.599998);
    TextDrawColor(TextDrawLogin9, -65281);
    TextDrawSetOutline(TextDrawLogin9, 0);
    TextDrawSetProportional(TextDrawLogin9, 1);
    TextDrawSetShadow(TextDrawLogin9, 1);

    TextDrawLogin10 = TextDrawCreate(655.000000, 319.000000, "_");
    TextDrawBackgroundColor(TextDrawLogin10, 255);
    TextDrawFont(TextDrawLogin10, 1);
    TextDrawLetterSize(TextDrawLogin10, 0.709999, 17.399990);
    TextDrawColor(TextDrawLogin10, -1);
    TextDrawSetOutline(TextDrawLogin10, 0);
    TextDrawSetProportional(TextDrawLogin10, 1);
    TextDrawSetShadow(TextDrawLogin10, 1);
    TextDrawUseBox(TextDrawLogin10, 1);
    TextDrawBoxColor(TextDrawLogin10, 255);
    TextDrawTextSize(TextDrawLogin10, -41.000000, 0.000000);

    TextDrawLogin11 = TextDrawCreate(0.000000, 437.000000, "Passado й passado resto й resto Viva o Novo... Brasil Revolution Life");
    TextDrawBackgroundColor(TextDrawLogin11, 255);
    TextDrawFont(TextDrawLogin11, 2);
    TextDrawLetterSize(TextDrawLogin11, 0.300000, 1.000000);
    TextDrawColor(TextDrawLogin11, -65281);
    TextDrawSetOutline(TextDrawLogin11, 0);
    TextDrawSetProportional(TextDrawLogin11, 1);
    TextDrawSetShadow(TextDrawLogin11, 1);

    TextDrawLogin12 = TextDrawCreate(320.000000, 364.000000, "~>~ Sistemas exclusivos ~<~");
    TextDrawAlignment(TextDrawLogin12, 2);
    TextDrawBackgroundColor(TextDrawLogin12, 255);
    TextDrawFont(TextDrawLogin12, 2);
    TextDrawLetterSize(TextDrawLogin12, 0.300000, 1.000000);
    TextDrawColor(TextDrawLogin12, 16711935);
    TextDrawSetOutline(TextDrawLogin12, 0);
    TextDrawSetProportional(TextDrawLogin12, 1);
    TextDrawSetShadow(TextDrawLogin12, 1);
Reply
#2

TextDrawColor


Exemplo:
pawn Код:
Example = TextDrawCreate(123.0, 123.0, "Example");
TextDrawColor(Example, 0x000000FF);
Reply
#3

Eu sei disso mais o que eu quero saber й qual desses ai sгo essa faixas verdes pra eu mudar a cor
Reply
#4

Pelo visto й a TextDrawLogin6 e TextDrawLogin7.
Reply
#5

Nгo,akeles '' -=-=-= '' fica mesmo,sгo 2 faixas compridas e finas verdes que eu preciso achar
Reply
#6

Vou te dar uma dica bem bacana.
A funзгo printf й bem ъtil para casos assim, alйm disso, ela pode servir para testar os seus cуdigos e suas prуprias lуgicas!
Por exemplo, usando:
pawn Код:
printf("%h",16711935);
irб imprimir no console a cor em forma decimal
Reply
#7

Quote:
Originally Posted by Artista
Посмотреть сообщение
Vou te dar uma dica bem bacana.
A funзгo printf й bem ъtil para casos assim, alйm disso, ela pode servir para testar os seus cуdigos e suas prуprias lуgicas!
Por exemplo, usando:
Код:
printf("%h",16711935);
irб imprimir no console a cor em forma decimal
Corrigindo: %x
Reply
#8

Imprime o mesmo resultado usando %h
Mas %x й o mais correto mesmo
Reply
#9

Quote:
Originally Posted by Artista
Посмотреть сообщение
Imprime o mesmo resultado usando %h
Mas %x й o mais correto mesmo
Vocк falou 'Decimal' logo nгo й %h, e %x.

%h й para Hexadecimais...
Reply
#10

Quote:
Originally Posted by Dolpin
Посмотреть сообщение
Vocк falou 'Decimal' logo nгo й %h, e %x.

%h й para Hexadecimais...
Poxa, agora que fui ver. Mas eu estava me referindo a hexadecimal. Nem sei porque digitei decimal... Vai ver pelo fato de ter postado as 4hr da manha '-'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)