PDA

Просмотр полной версии : [Прочее] Кликабельность TD



pustomerzha
02.07.2017, 15:59
Раньше кликабельности вообще не было, но я это исправил и появилась другая проблема: теперь TD выделяются только тогда, когда наводишь курсор ровно в их центр.


PTD_inventory[2][playerid] = CreatePlayerTextDraw(playerid, 250.000000, 310.000000, "GIVE");
PlayerTextDrawLetterSize(playerid, PTD_inventory[2][playerid], 0.275999, 1.062399);
PlayerTextDrawTextSize(playerid, PTD_inventory[2][playerid], 363.787963, 5.544908);
PlayerTextDrawAlignment(playerid, PTD_inventory[2][playerid], 2);
PlayerTextDrawColor(playerid, PTD_inventory[2][playerid], -1);
PlayerTextDrawUseBox(playerid, PTD_inventory[2][playerid], true);
PlayerTextDrawBoxColor(playerid, PTD_inventory[2][playerid], 0x000000);
PlayerTextDrawSetShadow(playerid, PTD_inventory[2][playerid], 0);
PlayerTextDrawSetOutline(playerid, PTD_inventory[2][playerid], 0);
PlayerTextDrawFont(playerid, PTD_inventory[2][playerid], 2);
PlayerTextDrawSetProportional(playerid, PTD_inventory[2][playerid], 1);
PlayerTextDrawSetSelectable(playerid, PTD_inventory[2][playerid], true);

PTD_inventory[3][playerid] = CreatePlayerTextDraw(playerid, 190.000000, 310.000000, "USE");
PlayerTextDrawLetterSize(playerid, PTD_inventory[3][playerid], 0.275999, 1.062399);
PlayerTextDrawTextSize(playerid, PTD_inventory[3][playerid], 363.787963, 5.544908);
PlayerTextDrawAlignment(playerid, PTD_inventory[3][playerid], 2);
PlayerTextDrawColor(playerid, PTD_inventory[3][playerid], -1);
PlayerTextDrawUseBox(playerid, PTD_inventory[3][playerid], true);
PlayerTextDrawBoxColor(playerid, PTD_inventory[3][playerid], 0x000000);
PlayerTextDrawSetShadow(playerid, PTD_inventory[3][playerid], 0);
PlayerTextDrawSetOutline(playerid, PTD_inventory[3][playerid], 0);
PlayerTextDrawBackgroundColor(playerid, PTD_inventory[3][playerid], 51);
PlayerTextDrawFont(playerid, PTD_inventory[3][playerid], 2);
PlayerTextDrawSetProportional(playerid, PTD_inventory[3][playerid], 1);
PlayerTextDrawSetSelectable(playerid, PTD_inventory[3][playerid], true);

PTD_inventory[4][playerid] = CreatePlayerTextDraw(playerid, 310.000000, 310.000000, "DESTROY");
PlayerTextDrawLetterSize(playerid, PTD_inventory[4][playerid], 0.275999, 1.062399);
PlayerTextDrawTextSize(playerid, PTD_inventory[4][playerid], 363.787963, 5.544908);
PlayerTextDrawAlignment(playerid, PTD_inventory[4][playerid], 2);
PlayerTextDrawColor(playerid, PTD_inventory[4][playerid], -1);
PlayerTextDrawUseBox(playerid, PTD_inventory[4][playerid], true);
PlayerTextDrawBoxColor(playerid, PTD_inventory[4][playerid], 0x000000);
PlayerTextDrawSetShadow(playerid, PTD_inventory[4][playerid], 0);
PlayerTextDrawSetOutline(playerid, PTD_inventory[4][playerid], 0);
PlayerTextDrawBackgroundColor(playerid, PTD_inventory[4][playerid], 51);
PlayerTextDrawFont(playerid, PTD_inventory[4][playerid], 2);
PlayerTextDrawSetProportional(playerid, PTD_inventory[4][playerid], 1);
PlayerTextDrawSetSelectable(playerid, PTD_inventory[4][playerid], true);

PTD_inventory[5][playerid] = CreatePlayerTextDraw(playerid, 370.000000, 310.000000, "DROP");
PlayerTextDrawLetterSize(playerid, PTD_inventory[5][playerid], 0.275999, 1.062399);
PlayerTextDrawTextSize(playerid, PTD_inventory[5][playerid], 363.787963, 5.544908);
PlayerTextDrawAlignment(playerid, PTD_inventory[5][playerid], 2);
PlayerTextDrawColor(playerid, PTD_inventory[5][playerid], -1);
PlayerTextDrawUseBox(playerid, PTD_inventory[5][playerid], true);
PlayerTextDrawBoxColor(playerid, PTD_inventory[5][playerid], 0x000000);
PlayerTextDrawSetShadow(playerid, PTD_inventory[5][playerid], 0);
PlayerTextDrawSetOutline(playerid, PTD_inventory[5][playerid], 0);
PlayerTextDrawBackgroundColor(playerid, PTD_inventory[5][playerid], 51);
PlayerTextDrawFont(playerid, PTD_inventory[5][playerid], 2);
PlayerTextDrawSetProportional(playerid, PTD_inventory[5][playerid], 1);
PlayerTextDrawSetSelectable(playerid, PTD_inventory[5][playerid], true);

PTD_inventory[6][playerid] = CreatePlayerTextDraw(playerid, 430.000000, 310.000000, "ATTACH");
PlayerTextDrawLetterSize(playerid, PTD_inventory[6][playerid], 0.275999, 1.062399);
PlayerTextDrawTextSize(playerid, PTD_inventory[6][playerid], 363.787963, 5.544908);
PlayerTextDrawAlignment(playerid, PTD_inventory[6][playerid], 2);
PlayerTextDrawColor(playerid, PTD_inventory[6][playerid], -1);
PlayerTextDrawUseBox(playerid, PTD_inventory[6][playerid], true);
PlayerTextDrawBoxColor(playerid, PTD_inventory[6][playerid], 0x000000);
PlayerTextDrawSetShadow(playerid, PTD_inventory[6][playerid], 0);
PlayerTextDrawSetOutline(playerid, PTD_inventory[6][playerid], 0);
PlayerTextDrawBackgroundColor(playerid, PTD_inventory[6][playerid], 51);
PlayerTextDrawFont(playerid, PTD_inventory[6][playerid], 2);
PlayerTextDrawSetProportional(playerid, PTD_inventory[6][playerid], 1);
PlayerTextDrawSetSelectable(playerid, PTD_inventory[6][playerid], true);

Geebrox
05.07.2017, 06:22
поработай над PlayerTextDrawTextSize (http://wiki.sa-mp.com/wiki/PlayerTextDrawTextSize)