[Ajuda] Bug efeito hover textdraw
#8

Quote:
Originally Posted by cellps
Посмотреть сообщение
Deu pra entender a sua explicaзгo mais nгo funciono '-'
quando fui testar os botoes nгo apresento nenhuma cor e eles nгo estava funcionando...

Veja o code:

Код:
    TDLogin[1] = TextDrawCreate(219.000000, 191.000000, "LOGAR");
    TextDrawBackgroundColor(TDLogin[1], 255);
    TextDrawFont(TDLogin[1], 2);
    TextDrawLetterSize(TDLogin[1], 0.270000, 1.000000);
    TextDrawColor(TDLogin[1], -1);
    TextDrawSetOutline(TDLogin[1], 0);
    TextDrawSetProportional(TDLogin[1], 1);
    TextDrawSetShadow(TDLogin[1], 1);
    TextDrawUseBox(TDLogin[1], 1);
    TextDrawBoxColor(TDLogin[1], -256);
    TextDrawTextSize(TDLogin[1], 255.000000, 0.000000);
    TextDrawSetSelectable(TDLogin[1], true);

    TDLogin[2] = TextDrawCreate(284.000000, 191.000000, "CADASTRE-SE");
    TextDrawBackgroundColor(TDLogin[2], 255);
    TextDrawFont(TDLogin[2], 2);
    TextDrawLetterSize(TDLogin[2], 0.270000, 1.000000);
    TextDrawColor(TDLogin[2], -1);
    TextDrawSetOutline(TDLogin[2], 0);
    TextDrawSetProportional(TDLogin[2], 1);
    TextDrawSetShadow(TDLogin[2], 1);
    TextDrawUseBox(TDLogin[2], 1);
    TextDrawBoxColor(TDLogin[2], -256);
    TextDrawTextSize(TDLogin[2], 358.000000, 0.000000);
    TextDrawSetSelectable(TDLogin[2], true);

    TDLogin[3] = TextDrawCreate(385.000000, 191.000000, "SAIR");
    TextDrawBackgroundColor(TDLogin[3], 255);
    TextDrawFont(TDLogin[3], 2);
    TextDrawLetterSize(TDLogin[3], 0.270000, 1.000000);
    TextDrawColor(TDLogin[3], -1);
    TextDrawSetOutline(TDLogin[3], 0);
    TextDrawSetProportional(TDLogin[3], 1);
    TextDrawSetShadow(TDLogin[3], 1);
    TextDrawUseBox(TDLogin[3], 1);
    TextDrawBoxColor(TDLogin[3], -256);
    TextDrawTextSize(TDLogin[3], 410.000000, 0.000000);
    TextDrawSetSelectable(TDLogin[3], true);
amigo olhe o seu code :
TextDrawTextSize(TDLogin[1], 255.000000, 0.000000);

o x ate q ta certo, vai setar o limite da largura da caixa pra 255, mais o y, que й a altura, esta em 0 ZEEROO, entao nao vai dar pra clicar, aumente para 5, ou 10, ou 15, e va testando em seu gm, pra ver se a area clicavel esta boa

Comente se deu certo

HAA colque isso tbm

TextDrawAlignment(TDLogin[1], 0);

TextDrawAlignment(TDLogin[2], 0);

TextDrawAlignment(TDLogin[3], 0);

й o alinhamento do texto na tela, deixe em 0, eu nunca tive problema com text clicavel, pq eu sempre deixo em 0, nunca buga rsrs
Reply


Messages In This Thread
Bug efeito hover textdraw - by cellps - 27.08.2016, 03:53
Re: Bug efeito hover textdraw - by Andinho - 27.08.2016, 08:40
Re: Bug efeito hover textdraw - by cellps - 27.08.2016, 10:44
Re: Bug efeito hover textdraw - by arakuta - 27.08.2016, 15:13
Re: Bug efeito hover textdraw - by cellps - 27.08.2016, 19:03
Respuesta: Bug efeito hover textdraw - by SammyJ - 27.08.2016, 20:08
Re: Bug efeito hover textdraw - by cellps - 27.08.2016, 20:16
Re: Bug efeito hover textdraw - by Andinho - 27.08.2016, 21:29
Re: Bug efeito hover textdraw - by HaRdiiZin - 27.08.2016, 22:36
Re: Bug efeito hover textdraw - by cellps - 28.08.2016, 01:21

Forum Jump:


Users browsing this thread: 2 Guest(s)