Mazzilla
12.07.2014, 15:40
Доброе время суток. Пытаюсь научиться использовать текстдравы, возникает такая проблема:
Текстдравы "<<<", "SELECT", ">>>", "X" - 4 отдельных текстдрава, но когда использую функцию SelectTextDraw(playerid, 0x0099FFff);
при наведении на один текстдрав, к примеру, "<<<", выделяются все три. Если курсор переведу ниже, то выделяется и "X".
Ранее видел урок в интернете, как настроить, чтобы выделялся один текстдрав, но сейчас подключен низкоскоростной тариф, поэтому, проблематично найти что-либо в интернете, надежда на ваш портал. :smile: Знатоки, объясните, пожалуйста, как настроить текстдравы.
textdraw_automarket[playerid][7] = CreatePlayerTextDraw(playerid, 447.000000, 246.166687, "<<<");
PlayerTextDrawLetterSize(playerid, textdraw_automarket[playerid][7], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, textdraw_automarket[playerid][7], 2);
PlayerTextDrawColor(playerid, textdraw_automarket[playerid][7], -1);
PlayerTextDrawSetShadow(playerid, textdraw_automarket[playerid][7], 0);
PlayerTextDrawSetOutline(playerid, textdraw_automarket[playerid][7], 1);
PlayerTextDrawBackgroundColor(playerid, textdraw_automarket[playerid][7], 51);
PlayerTextDrawFont(playerid, textdraw_automarket[playerid][7], 0);
PlayerTextDrawSetProportional(playerid, textdraw_automarket[playerid][7], 1);
PlayerTextDrawSetSelectable(playerid, textdraw_automarket[playerid][7], true);
textdraw_automarket[playerid][8] = CreatePlayerTextDraw(playerid, 589.000000, 246.166656, ">>>");
PlayerTextDrawLetterSize(playerid, textdraw_automarket[playerid][8], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, textdraw_automarket[playerid][8], 2);
PlayerTextDrawColor(playerid, textdraw_automarket[playerid][8], -1);
PlayerTextDrawSetShadow(playerid, textdraw_automarket[playerid][8], 0);
PlayerTextDrawSetOutline(playerid, textdraw_automarket[playerid][8], 1);
PlayerTextDrawBackgroundColor(playerid, textdraw_automarket[playerid][8], 51);
PlayerTextDrawFont(playerid, textdraw_automarket[playerid][8], 0);
PlayerTextDrawSetProportional(playerid, textdraw_automarket[playerid][8], 1);
PlayerTextDrawSetSelectable(playerid, textdraw_automarket[playerid][8], true);
textdraw_automarket[playerid][9] = CreatePlayerTextDraw(playerid, 516.500000, 245.583343, "SELECT");
PlayerTextDrawLetterSize(playerid, textdraw_automarket[playerid][9], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, textdraw_automarket[playerid][9], 2);
PlayerTextDrawColor(playerid, textdraw_automarket[playerid][9], -1);
PlayerTextDrawSetShadow(playerid, textdraw_automarket[playerid][9], 0);
PlayerTextDrawSetOutline(playerid, textdraw_automarket[playerid][9], 1);
PlayerTextDrawBackgroundColor(playerid, textdraw_automarket[playerid][9], 51);
PlayerTextDrawFont(playerid, textdraw_automarket[playerid][9], 1);
PlayerTextDrawSetProportional(playerid, textdraw_automarket[playerid][9], 1);
PlayerTextDrawSetSelectable(playerid, textdraw_automarket[playerid][9], true);
textdraw_automarket[playerid][10] = CreatePlayerTextDraw(playerid, 610.000000, 268.333282, "X");
PlayerTextDrawLetterSize(playerid, textdraw_automarket[playerid][10], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, textdraw_automarket[playerid][10], 2);
PlayerTextDrawColor(playerid, textdraw_automarket[playerid][10], -16776961);
PlayerTextDrawSetShadow(playerid, textdraw_automarket[playerid][10], 0);
PlayerTextDrawSetOutline(playerid, textdraw_automarket[playerid][10], 1);
PlayerTextDrawBackgroundColor(playerid, textdraw_automarket[playerid][10], 51);
PlayerTextDrawFont(playerid, textdraw_automarket[playerid][10], 1);
PlayerTextDrawSetProportional(playerid, textdraw_automarket[playerid][10], 1);
PlayerTextDrawSetSelectable(playerid, textdraw_automarket[playerid][10], true);
http://imgdepo.ru/id/i6986254
Текстдравы "<<<", "SELECT", ">>>", "X" - 4 отдельных текстдрава, но когда использую функцию SelectTextDraw(playerid, 0x0099FFff);
при наведении на один текстдрав, к примеру, "<<<", выделяются все три. Если курсор переведу ниже, то выделяется и "X".
Ранее видел урок в интернете, как настроить, чтобы выделялся один текстдрав, но сейчас подключен низкоскоростной тариф, поэтому, проблематично найти что-либо в интернете, надежда на ваш портал. :smile: Знатоки, объясните, пожалуйста, как настроить текстдравы.
textdraw_automarket[playerid][7] = CreatePlayerTextDraw(playerid, 447.000000, 246.166687, "<<<");
PlayerTextDrawLetterSize(playerid, textdraw_automarket[playerid][7], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, textdraw_automarket[playerid][7], 2);
PlayerTextDrawColor(playerid, textdraw_automarket[playerid][7], -1);
PlayerTextDrawSetShadow(playerid, textdraw_automarket[playerid][7], 0);
PlayerTextDrawSetOutline(playerid, textdraw_automarket[playerid][7], 1);
PlayerTextDrawBackgroundColor(playerid, textdraw_automarket[playerid][7], 51);
PlayerTextDrawFont(playerid, textdraw_automarket[playerid][7], 0);
PlayerTextDrawSetProportional(playerid, textdraw_automarket[playerid][7], 1);
PlayerTextDrawSetSelectable(playerid, textdraw_automarket[playerid][7], true);
textdraw_automarket[playerid][8] = CreatePlayerTextDraw(playerid, 589.000000, 246.166656, ">>>");
PlayerTextDrawLetterSize(playerid, textdraw_automarket[playerid][8], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, textdraw_automarket[playerid][8], 2);
PlayerTextDrawColor(playerid, textdraw_automarket[playerid][8], -1);
PlayerTextDrawSetShadow(playerid, textdraw_automarket[playerid][8], 0);
PlayerTextDrawSetOutline(playerid, textdraw_automarket[playerid][8], 1);
PlayerTextDrawBackgroundColor(playerid, textdraw_automarket[playerid][8], 51);
PlayerTextDrawFont(playerid, textdraw_automarket[playerid][8], 0);
PlayerTextDrawSetProportional(playerid, textdraw_automarket[playerid][8], 1);
PlayerTextDrawSetSelectable(playerid, textdraw_automarket[playerid][8], true);
textdraw_automarket[playerid][9] = CreatePlayerTextDraw(playerid, 516.500000, 245.583343, "SELECT");
PlayerTextDrawLetterSize(playerid, textdraw_automarket[playerid][9], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, textdraw_automarket[playerid][9], 2);
PlayerTextDrawColor(playerid, textdraw_automarket[playerid][9], -1);
PlayerTextDrawSetShadow(playerid, textdraw_automarket[playerid][9], 0);
PlayerTextDrawSetOutline(playerid, textdraw_automarket[playerid][9], 1);
PlayerTextDrawBackgroundColor(playerid, textdraw_automarket[playerid][9], 51);
PlayerTextDrawFont(playerid, textdraw_automarket[playerid][9], 1);
PlayerTextDrawSetProportional(playerid, textdraw_automarket[playerid][9], 1);
PlayerTextDrawSetSelectable(playerid, textdraw_automarket[playerid][9], true);
textdraw_automarket[playerid][10] = CreatePlayerTextDraw(playerid, 610.000000, 268.333282, "X");
PlayerTextDrawLetterSize(playerid, textdraw_automarket[playerid][10], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, textdraw_automarket[playerid][10], 2);
PlayerTextDrawColor(playerid, textdraw_automarket[playerid][10], -16776961);
PlayerTextDrawSetShadow(playerid, textdraw_automarket[playerid][10], 0);
PlayerTextDrawSetOutline(playerid, textdraw_automarket[playerid][10], 1);
PlayerTextDrawBackgroundColor(playerid, textdraw_automarket[playerid][10], 51);
PlayerTextDrawFont(playerid, textdraw_automarket[playerid][10], 1);
PlayerTextDrawSetProportional(playerid, textdraw_automarket[playerid][10], 1);
PlayerTextDrawSetSelectable(playerid, textdraw_automarket[playerid][10], true);
http://imgdepo.ru/id/i6986254