Перейти к содержанию
Авторизация  
ArtDes17

TextDraw - Спидометр

Рекомендуемые сообщения

ArtDes17

Сделал спидометр, может кому понадобится или понравится.

Если вы будете сливать на другие сайты или группы просьба указать автора.

P.S. Только учусь рисовать текстдравы, буду рад тем кто поможет.

[spoiler=Скрин]https://imgur.com/a/ahIgj

 

[spoiler=Код]

//Global TextDraws: 


new Text:TDEditor_TD[19];

TDEditor_TD[0] = TextDrawCreate(477.876892, 356.250061, "box");
TextDrawLetterSize(TDEditor_TD[0], 0.000000, 9.344070);
TextDrawTextSize(TDEditor_TD[0], 634.000000, 0.000000);
TextDrawAlignment(TDEditor_TD[0], 1);
TextDrawColor(TDEditor_TD[0], -1);
TextDrawUseBox(TDEditor_TD[0], 1);
TextDrawBoxColor(TDEditor_TD[0], -1);
TextDrawSetShadow(TDEditor_TD[0], 0);
TextDrawSetOutline(TDEditor_TD[0], 0);
TextDrawBackgroundColor(TDEditor_TD[0], 255);
TextDrawFont(TDEditor_TD[0], 2);
TextDrawSetProportional(TDEditor_TD[0], 1);
TextDrawSetShadow(TDEditor_TD[0], 0);

TDEditor_TD[1] = TextDrawCreate(477.876892, 356.250061, "box");
TextDrawLetterSize(TDEditor_TD[1], 0.000000, 9.344070);
TextDrawTextSize(TDEditor_TD[1], 634.000000, 0.000000);
TextDrawAlignment(TDEditor_TD[1], 1);
TextDrawColor(TDEditor_TD[1], -1);
TextDrawUseBox(TDEditor_TD[1], 1);
TextDrawBoxColor(TDEditor_TD[1], -1);
TextDrawSetShadow(TDEditor_TD[1], 0);
TextDrawSetOutline(TDEditor_TD[1], 0);
TextDrawBackgroundColor(TDEditor_TD[1], 255);
TextDrawFont(TDEditor_TD[1], 2);
TextDrawSetProportional(TDEditor_TD[1], 1);
TextDrawSetShadow(TDEditor_TD[1], 0);

TDEditor_TD[2] = TextDrawCreate(495.680908, 373.166656, "box");
TextDrawLetterSize(TDEditor_TD[2], 0.000000, -0.635429);
TextDrawTextSize(TDEditor_TD[2], 619.000000, 0.000000);
TextDrawAlignment(TDEditor_TD[2], 1);
TextDrawColor(TDEditor_TD[2], -1);
TextDrawUseBox(TDEditor_TD[2], 1);
TextDrawBoxColor(TDEditor_TD[2], 255);
TextDrawSetShadow(TDEditor_TD[2], 0);
TextDrawSetOutline(TDEditor_TD[2], 0);
TextDrawBackgroundColor(TDEditor_TD[2], 255);
TextDrawFont(TDEditor_TD[2], 1);
TextDrawSetProportional(TDEditor_TD[2], 1);
TextDrawSetShadow(TDEditor_TD[2], 0);

TDEditor_TD[3] = TextDrawCreate(607.658142, 356.249938, "Lada Granta");
TextDrawLetterSize(TDEditor_TD[3], 0.348461, 1.471665);
TextDrawAlignment(TDEditor_TD[3], 3);
TextDrawColor(TDEditor_TD[3], 255);
TextDrawSetShadow(TDEditor_TD[3], 0);
TextDrawSetOutline(TDEditor_TD[3], 0);
TextDrawBackgroundColor(TDEditor_TD[3], 255);
TextDrawFont(TDEditor_TD[3], 2);
TextDrawSetProportional(TDEditor_TD[3], 1);
TextDrawSetShadow(TDEditor_TD[3], 0);

TDEditor_TD[4] = TextDrawCreate(520.816223, 375.499938, "Speed:");
TextDrawLetterSize(TDEditor_TD[4], 0.305357, 1.384165);
TextDrawAlignment(TDEditor_TD[4], 3);
TextDrawColor(TDEditor_TD[4], 255);
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);

TDEditor_TD[5] = TextDrawCreate(512.547424, 388.333404, "Fuel:");
TextDrawLetterSize(TDEditor_TD[5], 0.305357, 1.384165);
TextDrawAlignment(TDEditor_TD[5], 3);
TextDrawColor(TDEditor_TD[5], 255);
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);

TDEditor_TD[6] = TextDrawCreate(514.421630, 401.166748, "Heal:");
TextDrawLetterSize(TDEditor_TD[6], 0.305357, 1.384165);
TextDrawAlignment(TDEditor_TD[6], 3);
TextDrawColor(TDEditor_TD[6], 255);
TextDrawSetShadow(TDEditor_TD[6], 0);
TextDrawSetOutline(TDEditor_TD[6], 0);
TextDrawBackgroundColor(TDEditor_TD[6], 255);
TextDrawFont(TDEditor_TD[6], 2);
TextDrawSetProportional(TDEditor_TD[6], 1);
TextDrawSetShadow(TDEditor_TD[6], 0);

TDEditor_TD[7] = TextDrawCreate(481.157135, 390.083374, "box");
TextDrawLetterSize(TDEditor_TD[7], 0.000000, -0.401169);
TextDrawTextSize(TDEditor_TD[7], 630.000000, 0.000000);
TextDrawAlignment(TDEditor_TD[7], 1);
TextDrawColor(TDEditor_TD[7], -1);
TextDrawUseBox(TDEditor_TD[7], 1);
TextDrawBoxColor(TDEditor_TD[7], 255);
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(480.688598, 402.333435, "box");
TextDrawLetterSize(TDEditor_TD[8], 0.000000, -0.401169);
TextDrawTextSize(TDEditor_TD[8], 630.000000, 0.000000);
TextDrawAlignment(TDEditor_TD[8], 1);
TextDrawColor(TDEditor_TD[8], -1);
TextDrawUseBox(TDEditor_TD[8], 1);
TextDrawBoxColor(TDEditor_TD[8], 255);
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(480.220062, 414.583557, "box");
TextDrawLetterSize(TDEditor_TD[9], 0.000000, -0.401169);
TextDrawTextSize(TDEditor_TD[9], 630.000000, 0.000000);
TextDrawAlignment(TDEditor_TD[9], 1);
TextDrawColor(TDEditor_TD[9], -1);
TextDrawUseBox(TDEditor_TD[9], 1);
TextDrawBoxColor(TDEditor_TD[9], 255);
TextDrawSetShadow(TDEditor_TD[9], 0);
TextDrawSetOutline(TDEditor_TD[9], 0);
TextDrawBackgroundColor(TDEditor_TD[9], 255);
TextDrawFont(TDEditor_TD[9], 0);
TextDrawSetProportional(TDEditor_TD[9], 1);
TextDrawSetShadow(TDEditor_TD[9], 0);

TDEditor_TD[10] = TextDrawCreate(481.156646, 419.249908, "box");
TextDrawLetterSize(TDEditor_TD[10], 0.000000, 1.894583);
TextDrawTextSize(TDEditor_TD[10], 526.000000, 0.000000);
TextDrawAlignment(TDEditor_TD[10], 1);
TextDrawColor(TDEditor_TD[10], -1);
TextDrawUseBox(TDEditor_TD[10], 1);
TextDrawBoxColor(TDEditor_TD[10], 65535);
TextDrawSetShadow(TDEditor_TD[10], 0);
TextDrawSetOutline(TDEditor_TD[10], 0);
TextDrawBackgroundColor(TDEditor_TD[10], 204560);
TextDrawFont(TDEditor_TD[10], 1);
TextDrawSetProportional(TDEditor_TD[10], 1);
TextDrawSetShadow(TDEditor_TD[10], 0);

TDEditor_TD[11] = TextDrawCreate(532.225830, 419.249908, "box");
TextDrawLetterSize(TDEditor_TD[11], 0.000000, 1.894583);
TextDrawTextSize(TDEditor_TD[11], 582.000000, 0.000000);
TextDrawAlignment(TDEditor_TD[11], 1);
TextDrawColor(TDEditor_TD[11], -1);
TextDrawUseBox(TDEditor_TD[11], 1);
TextDrawBoxColor(TDEditor_TD[11], 65535);
TextDrawSetShadow(TDEditor_TD[11], 0);
TextDrawSetOutline(TDEditor_TD[11], 0);
TextDrawBackgroundColor(TDEditor_TD[11], 204560);
TextDrawFont(TDEditor_TD[11], 1);
TextDrawSetProportional(TDEditor_TD[11], 1);
TextDrawSetShadow(TDEditor_TD[11], 0);

TDEditor_TD[12] = TextDrawCreate(587.979919, 419.249877, "box");
TextDrawLetterSize(TDEditor_TD[12], 0.000000, 1.894583);
TextDrawTextSize(TDEditor_TD[12], 631.000000, 0.000000);
TextDrawAlignment(TDEditor_TD[12], 1);
TextDrawColor(TDEditor_TD[12], -1);
TextDrawUseBox(TDEditor_TD[12], 1);
TextDrawBoxColor(TDEditor_TD[12], 65535);
TextDrawSetShadow(TDEditor_TD[12], 0);
TextDrawSetOutline(TDEditor_TD[12], 1);
TextDrawBackgroundColor(TDEditor_TD[12], 255);
TextDrawFont(TDEditor_TD[12], 3);
TextDrawSetProportional(TDEditor_TD[12], 0);
TextDrawSetShadow(TDEditor_TD[12], 0);

TDEditor_TD[13] = TextDrawCreate(483.967834, 420.416778, "Door");
TextDrawLetterSize(TDEditor_TD[13], 0.360644, 1.389998);
TextDrawAlignment(TDEditor_TD[13], 1);
TextDrawColor(TDEditor_TD[13], -1);
TextDrawSetShadow(TDEditor_TD[13], 0);
TextDrawSetOutline(TDEditor_TD[13], 0);
TextDrawBackgroundColor(TDEditor_TD[13], 255);
TextDrawFont(TDEditor_TD[13], 2);
TextDrawSetProportional(TDEditor_TD[13], 1);
TextDrawSetShadow(TDEditor_TD[13], 0);

TDEditor_TD[14] = TextDrawCreate(533.630981, 419.833404, "Engine");
TextDrawLetterSize(TDEditor_TD[14], 0.347994, 1.541666);
TextDrawAlignment(TDEditor_TD[14], 1);
TextDrawColor(TDEditor_TD[14], -1);
TextDrawSetShadow(TDEditor_TD[14], 0);
TextDrawSetOutline(TDEditor_TD[14], 0);
TextDrawBackgroundColor(TDEditor_TD[14], 255);
TextDrawFont(TDEditor_TD[14], 2);
TextDrawSetProportional(TDEditor_TD[14], 1);
TextDrawSetShadow(TDEditor_TD[14], 0);

TDEditor_TD[15] = TextDrawCreate(589.384887, 419.150085, "lights");
TextDrawLetterSize(TDEditor_TD[15], 0.299736, 1.646667);
TextDrawAlignment(TDEditor_TD[15], 1);
TextDrawColor(TDEditor_TD[15], -1);
TextDrawSetShadow(TDEditor_TD[15], 0);
TextDrawSetOutline(TDEditor_TD[15], 0);
TextDrawBackgroundColor(TDEditor_TD[15], 255);
TextDrawFont(TDEditor_TD[15], 2);
TextDrawSetProportional(TDEditor_TD[15], 1);
TextDrawSetShadow(TDEditor_TD[15], 0);

TDEditor_TD[16] = TextDrawCreate(587.511108, 374.333251, "120KM/h");
TextDrawLetterSize(TDEditor_TD[16], 0.260848, 1.547500);
TextDrawAlignment(TDEditor_TD[16], 1);
TextDrawColor(TDEditor_TD[16], 255);
TextDrawSetShadow(TDEditor_TD[16], 0);
TextDrawSetOutline(TDEditor_TD[16], 0);
TextDrawBackgroundColor(TDEditor_TD[16], 255);
TextDrawFont(TDEditor_TD[16], 2);
TextDrawSetProportional(TDEditor_TD[16], 1);
TextDrawSetShadow(TDEditor_TD[16], 0);

TDEditor_TD[17] = TextDrawCreate(604.378051, 388.333282, "138L");
TextDrawLetterSize(TDEditor_TD[17], 0.296925, 1.389999);
TextDrawAlignment(TDEditor_TD[17], 1);
TextDrawColor(TDEditor_TD[17], 255);
TextDrawSetShadow(TDEditor_TD[17], 0);
TextDrawSetOutline(TDEditor_TD[17], 0);
TextDrawBackgroundColor(TDEditor_TD[17], 16711935);
TextDrawFont(TDEditor_TD[17], 2);
TextDrawSetProportional(TDEditor_TD[17], 1);
TextDrawSetShadow(TDEditor_TD[17], 0);

TDEditor_TD[18] = TextDrawCreate(601.766784, 400.983398, "100%");
TextDrawLetterSize(TDEditor_TD[18], 0.320351, 1.290831);
TextDrawAlignment(TDEditor_TD[18], 1);
TextDrawColor(TDEditor_TD[18], 255);
TextDrawSetShadow(TDEditor_TD[18], 0);
TextDrawSetOutline(TDEditor_TD[18], 0);
TextDrawBackgroundColor(TDEditor_TD[18], 255);
TextDrawFont(TDEditor_TD[18], 2);
TextDrawSetProportional(TDEditor_TD[18], 1);
TextDrawSetShadow(TDEditor_TD[18], 0);

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты
Vegas

@ArtDes17, синие боксы глаза как-то режут 

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Для публикации сообщений создайте учётную запись или авторизуйтесь

Вы должны быть пользователем, чтобы оставить комментарий

Создать учетную запись

Зарегистрируйте новую учётную запись в нашем сообществе. Это очень просто!

Регистрация нового пользователя

Войти

Уже есть аккаунт? Войти в систему.

Войти
Авторизация  

  • Последние посетители   0 пользователей онлайн

    Ни одного зарегистрированного пользователя не просматривает данную страницу

×

Важная информация

Мы разместили cookie-файлы на ваше устройство, чтобы помочь сделать этот сайт лучше. Вы можете изменить свои настройки cookie-файлов, или продолжить без изменения настроек.