TextDrawSetSelectable(Text:TDEditor_TD[4], true);
TextDrawSetSelectable(Text:TDEditor_TD[5], true);
TextDrawSetSelectable(Text:TDEditor_TD[9], true);
TDEditor_TD[0] = TextDrawCreate(218.125000, 97.250022, "1");
TextDrawLetterSize(TDEditor_TD[0], -0.033750, 26.094175);
TextDrawTextSize(TDEditor_TD[0], 423.000000, 0.000000);
TextDrawAlignment(TDEditor_TD[0], 1);
TextDrawColor(TDEditor_TD[0], -1);
TextDrawUseBox(TDEditor_TD[0], 1);
TextDrawBoxColor(TDEditor_TD[0], 103);
TextDrawSetShadow(TDEditor_TD[0], 0);
TextDrawSetOutline(TDEditor_TD[0], 0);
TextDrawBackgroundColor(TDEditor_TD[0], 255);
TextDrawFont(TDEditor_TD[0], 1);
TextDrawSetProportional(TDEditor_TD[0], 1);
TextDrawSetShadow(TDEditor_TD[0], 0);
TDEditor_TD[1] = TextDrawCreate(218.125000, 97.249984, "1");
TextDrawLetterSize(TDEditor_TD[1], 0.040625, 2.154167);
TextDrawTextSize(TDEditor_TD[1], 423.000000, 0.000000);
TextDrawAlignment(TDEditor_TD[1], 1);
TextDrawColor(TDEditor_TD[1], -1);
TextDrawUseBox(TDEditor_TD[1], 1);
TextDrawBoxColor(TDEditor_TD[1], 11242239);
TextDrawSetShadow(TDEditor_TD[1], 0);
TextDrawSetOutline(TDEditor_TD[1], 0);
TextDrawBackgroundColor(TDEditor_TD[1], 255);
TextDrawFont(TDEditor_TD[1], 0);
TextDrawSetProportional(TDEditor_TD[1], 1);
TextDrawSetShadow(TDEditor_TD[1], 0);
TDEditor_TD[2] = TextDrawCreate(268.750000, 96.083305, "Gangs_Brasil");
TextDrawLetterSize(TDEditor_TD[2], 0.600000, 2.019999);
TextDrawAlignment(TDEditor_TD[2], 1);
TextDrawColor(TDEditor_TD[2], -1);
TextDrawSetShadow(TDEditor_TD[2], 0);
TextDrawSetOutline(TDEditor_TD[2], 0);
TextDrawBackgroundColor(TDEditor_TD[2], 255);
TextDrawFont(TDEditor_TD[2], 0);
TextDrawSetProportional(TDEditor_TD[2], 1);
TextDrawSetShadow(TDEditor_TD[2], 0);
TDEditor_TD[3] = TextDrawCreate(361.875000, 94.916656, "RJ__");
TextDrawLetterSize(TDEditor_TD[3], 0.198749, 1.075000);
TextDrawAlignment(TDEditor_TD[3], 1);
TextDrawColor(TDEditor_TD[3], -1);
TextDrawSetShadow(TDEditor_TD[3], 0);
TextDrawSetOutline(TDEditor_TD[3], 0);
TextDrawBackgroundColor(TDEditor_TD[3], 255);
TextDrawFont(TDEditor_TD[3], 1);
TextDrawSetProportional(TDEditor_TD[3], 1);
TextDrawSetShadow(TDEditor_TD[3], 0);
TDEditor_TD[4] = TextDrawCreate(278.595581, 212.166610, "ACESSAR~n~__CONTA");
TextDrawLetterSize(TDEditor_TD[4], 0.390000, 1.407500);
TextDrawAlignment(TDEditor_TD[4], 1);
TextDrawColor(TDEditor_TD[4], -1);
TextDrawSetShadow(TDEditor_TD[4], 0);
TextDrawSetOutline(TDEditor_TD[4], 0);
TextDrawBackgroundColor(TDEditor_TD[4], 255);
TextDrawFont(TDEditor_TD[4], 2);
TextDrawSetProportional(TDEditor_TD[4], 1);
TextDrawSetShadow(TDEditor_TD[4], 0);
TextDrawSetSelectable(TDEditor_TD[4], true);
TDEditor_TD[5] = TextDrawCreate(274.529418, 142.749969, "REGISTRAR_~n~____CONTA");
TextDrawLetterSize(TDEditor_TD[5], 0.370000, 1.594167);
TextDrawAlignment(TDEditor_TD[5], 1);
TextDrawColor(TDEditor_TD[5], -1);
TextDrawSetShadow(TDEditor_TD[5], 0);
TextDrawSetOutline(TDEditor_TD[5], 0);
TextDrawBackgroundColor(TDEditor_TD[5], 255);
TextDrawFont(TDEditor_TD[5], 2);
TextDrawSetProportional(TDEditor_TD[5], 1);
TextDrawSetShadow(TDEditor_TD[5], 0);
TextDrawSetSelectable(TDEditor_TD[5], true);
TDEditor_TD[6] = TextDrawCreate(245.625000, 184.750030, "-");
TextDrawLetterSize(TDEditor_TD[6], 10.203124, 0.538332);
TextDrawAlignment(TDEditor_TD[6], 1);
TextDrawColor(TDEditor_TD[6], -1);
TextDrawSetShadow(TDEditor_TD[6], 0);
TextDrawSetOutline(TDEditor_TD[6], 0);
TextDrawBackgroundColor(TDEditor_TD[6], 255);
TextDrawFont(TDEditor_TD[6], 1);
TextDrawSetProportional(TDEditor_TD[6], 1);
TextDrawSetShadow(TDEditor_TD[6], 0);
TDEditor_TD[7] = TextDrawCreate(246.250000, 262.333343, "-");
TextDrawLetterSize(TDEditor_TD[7], 10.203124, 0.538332);
TextDrawAlignment(TDEditor_TD[7], 1);
TextDrawColor(TDEditor_TD[7], -1);
TextDrawSetShadow(TDEditor_TD[7], 0);
TextDrawSetOutline(TDEditor_TD[7], 0);
TextDrawBackgroundColor(TDEditor_TD[7], 255);
TextDrawFont(TDEditor_TD[7], 1);
TextDrawSetProportional(TDEditor_TD[7], 1);
TextDrawSetShadow(TDEditor_TD[7], 0);
TDEditor_TD[8] = TextDrawCreate(246.875000, 120.583366, "-");
TextDrawLetterSize(TDEditor_TD[8], 10.203124, 0.538332);
TextDrawAlignment(TDEditor_TD[8], 1);
TextDrawColor(TDEditor_TD[8], -1);
TextDrawSetShadow(TDEditor_TD[8], 0);
TextDrawSetOutline(TDEditor_TD[8], 0);
TextDrawBackgroundColor(TDEditor_TD[8], 255);
TextDrawFont(TDEditor_TD[8], 1);
TextDrawSetProportional(TDEditor_TD[8], 1);
TextDrawSetShadow(TDEditor_TD[8], 0);
TDEditor_TD[9] = TextDrawCreate(240.625000, 291.500122, "X");
TextDrawLetterSize(TDEditor_TD[9], 0.400000, 1.600000);
TextDrawTextSize(TDEditor_TD[9], 251.000000, 0.000000);
TextDrawAlignment(TDEditor_TD[9], 1);
TextDrawColor(TDEditor_TD[9], -1);
TextDrawUseBox(TDEditor_TD[9], 1);
TextDrawBoxColor(TDEditor_TD[9], -16776961);
TextDrawSetShadow(TDEditor_TD[9], 0);
TextDrawSetOutline(TDEditor_TD[9], 0);
TextDrawBackgroundColor(TDEditor_TD[9], 255);
TextDrawFont(TDEditor_TD[9], 1);
TextDrawSetProportional(TDEditor_TD[9], 1);
TextDrawSetShadow(TDEditor_TD[9], 0);
TextDrawSetSelectable(TDEditor_TD[9], true);
TDEditor_TD[10] = TextDrawCreate(256.875000, 290.333343, "SAIR_DO_SERVIDOR");
TextDrawLetterSize(TDEditor_TD[10], 0.400000, 1.600000);
TextDrawAlignment(TDEditor_TD[10], 1);
TextDrawColor(TDEditor_TD[10], -1);
TextDrawSetShadow(TDEditor_TD[10], 0);
TextDrawSetOutline(TDEditor_TD[10], 0);
TextDrawBackgroundColor(TDEditor_TD[10], 255);
TextDrawFont(TDEditor_TD[10], 2);
TextDrawSetProportional(TDEditor_TD[10], 1);
TextDrawSetShadow(TDEditor_TD[10], 0);
TextDrawSetSelectable(TDEditor_TD[10], true);
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == TDEditor_TD[5])
{
if(Player[playerid][Registrado] == true)
{
GameTextForPlayer(playerid, "~r~VOCE JA TEM UMA CONTA EM NOSSO SERVIDOR", 3000, 3);
}
else
{
new String[250];
format(String, sizeof(String), "{FFFFFF}Seja bem vindo ao Servidor pela Primeira vez\n\n\
- Seu Nick: {CD0000}%s\n\n\
{FFFFFF}Digite uma senha e cliquem em {CD0000}Continuar!", getPName(playerid));
ShowPlayerDialog(playerid, DIALOG_REGISTRO, DIALOG_STYLE_INPUT, "{FFFFFF}Registrando sua Conta", String, "Continuar", "Cancelar");
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
}
return 1;
}
if(clickedid == TDEditor_TD[4])
{
if(Player[playerid][Registrado] == false)
{
GameTextForPlayer(playerid, "~r~VOCE AINDA NAO TEM UMA CONTA EM NOSSO SERVIDOR", 3000, 3);
}
else
{
new String[250];
format(String, sizeof(String), CONTAS, getPName(playerid));
if(DOF2_FileExists(String))
format(String, sizeof(String), "{FFFFFF}Seja bem vindo novamente ao Servidor \n\n\
- Seu Nick: {CD0000}%s \n\n\
{FFFFFF}Digite sua senha e cliquem em Continuar!", getPName(playerid));
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "{FFFFFF}Acessando sua Conta", String, "Continuar", "Sair");
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
}
return 1;
}
if(clickedid == TDEditor_TD[9])
{
SCM(playerid, COR_LARANJA, " ");
SCM(playerid, COR_LARANJA, "VOLTE SEMPRE");
SCM(playerid, COR_LARANJA, "EQUIPE GANGS BRASIL - www.equipegb.net");
Kick(playerid);
}
return 1;
}
Crie uma UseBox para cada um dos clicбveis invisнvel (cor 0x00000000) e ajuste o tamanho.
A parte clicбvel da TextDraw й a regiгo que abrange a Box da TextDraw. |
1. A бrea clicбvel de uma TextDraw й a бrea de sua Box. Toda TextDraw pode possuir uma Box com a opзгo UseBox do TDEditor.
2. Para solucionar isso, crie uma Box para as 2 TextDraws clicбveis na regiгo clicбvel de cada uma das TextDraws de cor invisнvel (Box Color > 0x00000000), para nгo "sujar" a interface. Nгo sei se consigo ser mais claro que isso. |
1. A бrea clicбvel de uma TextDraw й a бrea de sua Box. Toda TextDraw pode possuir uma Box com a opзгo UseBox do TDEditor.
2. Para solucionar isso, crie uma Box para as 2 TextDraws clicбveis na regiгo clicбvel de cada uma das TextDraws de cor invisнvel (Box Color > 0x00000000), para nгo "sujar" a interface. Nгo sei se consigo ser mais claro que isso. |
TextDrawSetSelectable(Text:TDEditor_TD[4], true);
TextDrawSetSelectable(Text:TDEditor_TD[5], true);
TextDrawSetSelectable(Text:TDEditor_TD[9], true);
TDEditor_TD[0] = TextDrawCreate(218.125000, 97.250022, "1");
TextDrawLetterSize(TDEditor_TD[0], -0.033750, 26.094175);
TextDrawTextSize(TDEditor_TD[0], 423.000000, 0.000000);
TextDrawAlignment(TDEditor_TD[0], 1);
TextDrawColor(TDEditor_TD[0], -1);
TextDrawUseBox(TDEditor_TD[0], 1);
TextDrawBoxColor(TDEditor_TD[0], 103);
TextDrawSetShadow(TDEditor_TD[0], 0);
TextDrawSetOutline(TDEditor_TD[0], 0);
TextDrawBackgroundColor(TDEditor_TD[0], 255);
TextDrawFont(TDEditor_TD[0], 1);
TextDrawSetProportional(TDEditor_TD[0], 1);
TextDrawSetShadow(TDEditor_TD[0], 0);
TDEditor_TD[1] = TextDrawCreate(218.125000, 97.249984, "1");
TextDrawLetterSize(TDEditor_TD[1], 0.040624, 2.154166);
TextDrawTextSize(TDEditor_TD[1], 423.000000, 0.000000);
TextDrawAlignment(TDEditor_TD[1], 1);
TextDrawColor(TDEditor_TD[1], -1);
TextDrawUseBox(TDEditor_TD[1], 1);
TextDrawBoxColor(TDEditor_TD[1], 11242239);
TextDrawSetShadow(TDEditor_TD[1], 0);
TextDrawSetOutline(TDEditor_TD[1], 0);
TextDrawBackgroundColor(TDEditor_TD[1], 255);
TextDrawFont(TDEditor_TD[1], 0);
TextDrawSetProportional(TDEditor_TD[1], 1);
TextDrawSetShadow(TDEditor_TD[1], 0);
TDEditor_TD[2] = TextDrawCreate(268.750000, 96.083305, "Gangs_Brasil");
TextDrawLetterSize(TDEditor_TD[2], 0.600000, 2.019999);
TextDrawAlignment(TDEditor_TD[2], 1);
TextDrawColor(TDEditor_TD[2], -1);
TextDrawSetShadow(TDEditor_TD[2], 0);
TextDrawSetOutline(TDEditor_TD[2], 0);
TextDrawBackgroundColor(TDEditor_TD[2], 255);
TextDrawFont(TDEditor_TD[2], 0);
TextDrawSetProportional(TDEditor_TD[2], 1);
TextDrawSetShadow(TDEditor_TD[2], 0);
TDEditor_TD[3] = TextDrawCreate(361.875000, 94.916656, "RJ__");
TextDrawLetterSize(TDEditor_TD[3], 0.198749, 1.075000);
TextDrawAlignment(TDEditor_TD[3], 1);
TextDrawColor(TDEditor_TD[3], -1);
TextDrawSetShadow(TDEditor_TD[3], 0);
TextDrawSetOutline(TDEditor_TD[3], 0);
TextDrawBackgroundColor(TDEditor_TD[3], 255);
TextDrawFont(TDEditor_TD[3], 1);
TextDrawSetProportional(TDEditor_TD[3], 1);
TextDrawSetShadow(TDEditor_TD[3], 0);
TDEditor_TD[4] = TextDrawCreate(278.595581, 212.166610, "ACESSAR~n~__CONTA");
TextDrawLetterSize(TDEditor_TD[4], 0.389999, 1.407500);
TextDrawTextSize(TDEditor_TD[4], 353.000000, 0.000000);
TextDrawAlignment(TDEditor_TD[4], 1);
TextDrawColor(TDEditor_TD[4], -1);
TextDrawUseBox(TDEditor_TD[4], 1);
TextDrawBoxColor(TDEditor_TD[4], 0);
TextDrawSetShadow(TDEditor_TD[4], 0);
TextDrawSetOutline(TDEditor_TD[4], 0);
TextDrawBackgroundColor(TDEditor_TD[4], 255);
TextDrawFont(TDEditor_TD[4], 2);
TextDrawSetProportional(TDEditor_TD[4], 1);
TextDrawSetShadow(TDEditor_TD[4], 0);
TextDrawSetSelectable(TDEditor_TD[4], true);
TDEditor_TD[5] = TextDrawCreate(274.529418, 142.749969, "REGISTRAR_~n~____CONTA");
TextDrawLetterSize(TDEditor_TD[5], 0.370000, 1.594166);
TextDrawTextSize(TDEditor_TD[5], 356.000000, 0.000000);
TextDrawAlignment(TDEditor_TD[5], 1);
TextDrawColor(TDEditor_TD[5], -1);
TextDrawUseBox(TDEditor_TD[5], 1);
TextDrawBoxColor(TDEditor_TD[5], 0);
TextDrawSetShadow(TDEditor_TD[5], 0);
TextDrawSetOutline(TDEditor_TD[5], 0);
TextDrawBackgroundColor(TDEditor_TD[5], 255);
TextDrawFont(TDEditor_TD[5], 2);
TextDrawSetProportional(TDEditor_TD[5], 1);
TextDrawSetShadow(TDEditor_TD[5], 0);
TextDrawSetSelectable(TDEditor_TD[5], true);
TDEditor_TD[6] = TextDrawCreate(245.625000, 184.750030, "-");
TextDrawLetterSize(TDEditor_TD[6], 10.203124, 0.538331);
TextDrawAlignment(TDEditor_TD[6], 1);
TextDrawColor(TDEditor_TD[6], -1);
TextDrawSetShadow(TDEditor_TD[6], 0);
TextDrawSetOutline(TDEditor_TD[6], 0);
TextDrawBackgroundColor(TDEditor_TD[6], 255);
TextDrawFont(TDEditor_TD[6], 1);
TextDrawSetProportional(TDEditor_TD[6], 1);
TextDrawSetShadow(TDEditor_TD[6], 0);
TDEditor_TD[7] = TextDrawCreate(246.250000, 262.333343, "-");
TextDrawLetterSize(TDEditor_TD[7], 10.203124, 0.538331);
TextDrawAlignment(TDEditor_TD[7], 1);
TextDrawColor(TDEditor_TD[7], -1);
TextDrawSetShadow(TDEditor_TD[7], 0);
TextDrawSetOutline(TDEditor_TD[7], 0);
TextDrawBackgroundColor(TDEditor_TD[7], 255);
TextDrawFont(TDEditor_TD[7], 1);
TextDrawSetProportional(TDEditor_TD[7], 1);
TextDrawSetShadow(TDEditor_TD[7], 0);
TDEditor_TD[8] = TextDrawCreate(246.875000, 120.583366, "-");
TextDrawLetterSize(TDEditor_TD[8], 10.203124, 0.538331);
TextDrawAlignment(TDEditor_TD[8], 1);
TextDrawColor(TDEditor_TD[8], -1);
TextDrawSetShadow(TDEditor_TD[8], 0);
TextDrawSetOutline(TDEditor_TD[8], 0);
TextDrawBackgroundColor(TDEditor_TD[8], 255);
TextDrawFont(TDEditor_TD[8], 1);
TextDrawSetProportional(TDEditor_TD[8], 1);
TextDrawSetShadow(TDEditor_TD[8], 0);
TDEditor_TD[9] = TextDrawCreate(240.625000, 291.500122, "X");
TextDrawLetterSize(TDEditor_TD[9], 0.400000, 1.600000);
TextDrawTextSize(TDEditor_TD[9], 251.000000, 0.000000);
TextDrawAlignment(TDEditor_TD[9], 1);
TextDrawColor(TDEditor_TD[9], -1);
TextDrawUseBox(TDEditor_TD[9], 1);
TextDrawBoxColor(TDEditor_TD[9], -16776961);
TextDrawSetShadow(TDEditor_TD[9], 0);
TextDrawSetOutline(TDEditor_TD[9], 0);
TextDrawBackgroundColor(TDEditor_TD[9], 255);
TextDrawFont(TDEditor_TD[9], 1);
TextDrawSetProportional(TDEditor_TD[9], 1);
TextDrawSetShadow(TDEditor_TD[9], 0);
TextDrawSetSelectable(TDEditor_TD[9], true);
TDEditor_TD[10] = TextDrawCreate(256.875000, 290.333343, "SAIR_DO_SERVIDOR");
TextDrawLetterSize(TDEditor_TD[10], 0.400000, 1.600000);
TextDrawTextSize(TDEditor_TD[10], 407.000000, 0.000000);
TextDrawAlignment(TDEditor_TD[10], 1);
TextDrawColor(TDEditor_TD[10], -1);
TextDrawUseBox(TDEditor_TD[10], 1);
TextDrawBoxColor(TDEditor_TD[10], 0);
TextDrawSetShadow(TDEditor_TD[10], 0);
TextDrawSetOutline(TDEditor_TD[10], 0);
TextDrawBackgroundColor(TDEditor_TD[10], 255);
TextDrawFont(TDEditor_TD[10], 2);
TextDrawSetProportional(TDEditor_TD[10], 1);
TextDrawSetShadow(TDEditor_TD[10], 0);
TextDrawSetSelectable(TDEditor_TD[10], true);
Entendi cria a box em cima do tipo REGISTRAR CONTA Й BOTA A BOX Invisivel ne fiz isso mais nгo funciono Tela de login abaixo
PHP код:
|
TextDrawTextSize(TDEditor_TD[0], 423.000000, 0.000000); TextDrawTextSize(TDEditor_TD[1], 423.000000, 0.000000);