NeilAvgust
Новичок
Как настроить кликабельность текста, он как то херово работает, слева нажимает обе кнопки, внизу самом нажимает первую кнопку
C++:
TDEditor_TD[0] = TextDrawCreate(161.2380, 116.6131, "Box"); // �����
TextDrawLetterSize(TDEditor_TD[0], 0.0000, 18.6856);
TextDrawTextSize(TDEditor_TD[0], 456.0000, 0.0000);
TextDrawAlignment(TDEditor_TD[0], 1);
TextDrawColor(TDEditor_TD[0], -1);
TextDrawUseBox(TDEditor_TD[0], 1);
TextDrawBoxColor(TDEditor_TD[0], 16843063);
TextDrawBackgroundColor(TDEditor_TD[0], 255);
TextDrawFont(TDEditor_TD[0], 1);
TextDrawSetProportional(TDEditor_TD[0], 1);
TextDrawSetShadow(TDEditor_TD[0], 0);
TDEditor_TD[1] = TextDrawCreate(164.0476, 118.7332, ""); // �����
TextDrawTextSize(TDEditor_TD[1], 70.0000, 70.0000);
TextDrawAlignment(TDEditor_TD[1], 1);
TextDrawColor(TDEditor_TD[1], -1);
TextDrawBackgroundColor(TDEditor_TD[1], 75);
TextDrawFont(TDEditor_TD[1], 5);
TextDrawSetProportional(TDEditor_TD[1], 0);
TextDrawSetShadow(TDEditor_TD[1], 0);
TextDrawSetSelectable(TDEditor_TD[1], true);
TextDrawSetPreviewModel(TDEditor_TD[1], 411);
TextDrawSetPreviewRot(TDEditor_TD[1], 0.0000, 0.0000, 25.0000, 1.0000);
TextDrawSetPreviewVehCol(TDEditor_TD[1], 23, 25);
TDEditor_TD[2] = TextDrawCreate(237.0000, 118.7332, ""); // �����
TextDrawTextSize(TDEditor_TD[2], 70.0000, 70.0000);
TextDrawAlignment(TDEditor_TD[2], 1);
TextDrawColor(TDEditor_TD[2], -1);
TextDrawBackgroundColor(TDEditor_TD[2], 75);
TextDrawFont(TDEditor_TD[2], 5);
TextDrawSetProportional(TDEditor_TD[2], 0);
TextDrawSetShadow(TDEditor_TD[2], 0);
TextDrawSetSelectable(TDEditor_TD[2], true);
TextDrawSetPreviewModel(TDEditor_TD[2], 541);
TextDrawSetPreviewRot(TDEditor_TD[2], 0.0000, 0.0000, 25.0000, 1.0000);
TextDrawSetPreviewVehCol(TDEditor_TD[2], 1, 1);
TDEditor_TD[3] = TextDrawCreate(310.0000, 118.7332, ""); // �����
TextDrawTextSize(TDEditor_TD[3], 70.0000, 70.0000);
TextDrawAlignment(TDEditor_TD[3], 1);
TextDrawColor(TDEditor_TD[3], -1);
TextDrawBackgroundColor(TDEditor_TD[3], 75);
TextDrawFont(TDEditor_TD[3], 5);
TextDrawSetProportional(TDEditor_TD[3], 0);
TextDrawSetShadow(TDEditor_TD[3], 0);
TextDrawSetSelectable(TDEditor_TD[3], true);
TextDrawSetPreviewModel(TDEditor_TD[3], 502);
TextDrawSetPreviewRot(TDEditor_TD[3], 0.0000, 0.0000, 25.0000, 1.0000);
TextDrawSetPreviewVehCol(TDEditor_TD[3], 1, 1);
TDEditor_TD[4] = TextDrawCreate(383.0000, 118.7332, ""); // �����
TextDrawTextSize(TDEditor_TD[4], 70.0000, 70.0000);
TextDrawAlignment(TDEditor_TD[4], 1);
TextDrawColor(TDEditor_TD[4], -1);
TextDrawBackgroundColor(TDEditor_TD[4], 75);
TextDrawFont(TDEditor_TD[4], 5);
TextDrawSetProportional(TDEditor_TD[4], 0);
TextDrawSetShadow(TDEditor_TD[4], 0);
TextDrawSetSelectable(TDEditor_TD[4], true);
TextDrawSetPreviewModel(TDEditor_TD[4], 415);
TextDrawSetPreviewRot(TDEditor_TD[4], 0.0000, 0.0000, 25.0000, 1.0000);
TextDrawSetPreviewVehCol(TDEditor_TD[4], 1, 1);
TDEditor_TD[5] = TextDrawCreate(163.5713, 192.1199, ""); // �����
TextDrawTextSize(TDEditor_TD[5], 70.0000, 70.0000);
TextDrawAlignment(TDEditor_TD[5], 1);
TextDrawColor(TDEditor_TD[5], -1);
TextDrawBackgroundColor(TDEditor_TD[5], 75);
TextDrawFont(TDEditor_TD[5], 5);
TextDrawSetProportional(TDEditor_TD[5], 0);
TextDrawSetShadow(TDEditor_TD[5], 0);
TextDrawSetSelectable(TDEditor_TD[5], true);
TextDrawSetPreviewModel(TDEditor_TD[5], 451);
TextDrawSetPreviewRot(TDEditor_TD[5], 0.0000, 0.0000, 25.0000, 1.0000);
TextDrawSetPreviewVehCol(TDEditor_TD[5], 1, 1);
TDEditor_TD[6] = TextDrawCreate(237.0000, 192.1199, ""); // �����
TextDrawTextSize(TDEditor_TD[6], 70.0000, 70.0000);
TextDrawAlignment(TDEditor_TD[6], 1);
TextDrawColor(TDEditor_TD[6], -1);
TextDrawBackgroundColor(TDEditor_TD[6], 75);
TextDrawFont(TDEditor_TD[6], 5);
TextDrawSetProportional(TDEditor_TD[6], 0);
TextDrawSetShadow(TDEditor_TD[6], 0);
TextDrawSetSelectable(TDEditor_TD[6], true);
TextDrawSetPreviewModel(TDEditor_TD[6], 506);
TextDrawSetPreviewRot(TDEditor_TD[6], 0.0000, 0.0000, 25.0000, 1.0000);
TextDrawSetPreviewVehCol(TDEditor_TD[6], 1, 1);
TDEditor_TD[7] = TextDrawCreate(310.0000, 192.1199, ""); // �����
TextDrawTextSize(TDEditor_TD[7], 70.0000, 70.0000);
TextDrawAlignment(TDEditor_TD[7], 1);
TextDrawColor(TDEditor_TD[7], -1);
TextDrawBackgroundColor(TDEditor_TD[7], 75);
TextDrawFont(TDEditor_TD[7], 5);
TextDrawSetProportional(TDEditor_TD[7], 0);
TextDrawSetShadow(TDEditor_TD[7], 0);
TextDrawSetSelectable(TDEditor_TD[7], true);
TextDrawSetPreviewModel(TDEditor_TD[7], 559);
TextDrawSetPreviewRot(TDEditor_TD[7], 0.0000, 0.0000, 25.0000, 1.0000);
TextDrawSetPreviewVehCol(TDEditor_TD[7], 1, 1);
TDEditor_TD[8] = TextDrawCreate(383.0000, 192.1199, ""); // ЭТО РАБОТАЕТ НЕ ПОНЯТНО
TextDrawTextSize(TDEditor_TD[8], 70.0000, 70.0000);
TextDrawAlignment(TDEditor_TD[8], 1);
TextDrawColor(TDEditor_TD[8], -1);
TextDrawBackgroundColor(TDEditor_TD[8], 75);
TextDrawFont(TDEditor_TD[8], 5);
TextDrawSetProportional(TDEditor_TD[8], 0);
TextDrawSetShadow(TDEditor_TD[8], 0);
TextDrawSetSelectable(TDEditor_TD[8], true);
TextDrawSetPreviewModel(TDEditor_TD[8], 560);
TextDrawSetPreviewRot(TDEditor_TD[8], 0.0000, 0.0000, 25.0000, 1.0000);
TextDrawSetPreviewVehCol(TDEditor_TD[8], 1, 1);
TDEditor_TD[9] = TextDrawCreate(166.9523, 265.9465, "CLOSE"); // ЭТО РАБОТАЕТ НЕ ПОНЯТНО
TextDrawLetterSize(TDEditor_TD[9], 0.4000, 1.6000);
TextDrawAlignment(TDEditor_TD[9], 1);
TextDrawColor(TDEditor_TD[9], -1);
TextDrawBackgroundColor(TDEditor_TD[9], 255);
TextDrawFont(TDEditor_TD[9], 1);
TextDrawSetProportional(TDEditor_TD[9], 1);
TextDrawSetShadow(TDEditor_TD[9], 0);
TextDrawSetSelectable(TDEditor_TD[11], true);
TDEditor_TD[10] = TextDrawCreate(419.9045, 265.9465, "NEXT"); // И ЭТО
TextDrawLetterSize(TDEditor_TD[10], 0.4000, 1.6000);
TextDrawAlignment(TDEditor_TD[10], 1);
TextDrawColor(TDEditor_TD[10], -1);
TextDrawBackgroundColor(TDEditor_TD[10], 255);
TextDrawFont(TDEditor_TD[10], 1);
TextDrawSetProportional(TDEditor_TD[10], 1);
TextDrawSetShadow(TDEditor_TD[10], 0);
TextDrawSetSelectable(TDEditor_TD[11], true);
