Сдвигается ТекстДрав
#1

ТекстДравы настроен на отображение по центру (делал в iPleomax).
При открытии ТекстДравы на половину отрывается (без превьюшек) в нужном месте и через доли секунды сдвигается в правую сторону.
Думаю это из-за TextDrawSetPreviewModel, но, не уверен.

Ссылка на видео

В чём может быть проблема?
Так же и с другими ТекстДравами, без применения превьюшек все ок, а после применения сдвигается в правую сторону

PHP код:
TextDrawSelection[0] = TextDrawCreate(194.399826106.037719"usebox");
TextDrawTextSize(TextDrawSelection[0], 71.20000476.657783);
TextDrawUseBox(TextDrawSelection[0], true);
TextDrawBoxColor(TextDrawSelection[0], -3394765);
TextDrawFont(TextDrawSelection[0], 5);
TextDrawBackgroundColor(TextDrawSelection[0], BackgroundColor);
TextDrawSetSelectable(TextDrawSelection[0], true);
 
TextDrawSelection[1] = TextDrawCreate(268.200073106.037727"usebox");
TextDrawTextSize(TextDrawSelection[1], 71.20000476.657783);
TextDrawUseBox(TextDrawSelection[1], true);
TextDrawBoxColor(TextDrawSelection[1], -3394765);
TextDrawFont(TextDrawSelection[1], 5);
TextDrawBackgroundColor(TextDrawSelection[1], BackgroundColor);
TextDrawSetSelectable(TextDrawSelection[1], true);
 
TextDrawSelection[2] = TextDrawCreate(342.399658106.037727"usebox");
TextDrawTextSize(TextDrawSelection[2], 71.20000476.657783);
TextDrawUseBox(TextDrawSelection[2], true);
TextDrawBoxColor(TextDrawSelection[2], -3394765);
TextDrawFont(TextDrawSelection[2], 5);
TextDrawBackgroundColor(TextDrawSelection[2], BackgroundColor);
TextDrawSetSelectable(TextDrawSelection[2], true);
 
TextDrawSelection[3] = TextDrawCreate(415.799835106.037727"usebox");
TextDrawTextSize(TextDrawSelection[3], 71.20000476.657783);
TextDrawUseBox(TextDrawSelection[3], true);
TextDrawBoxColor(TextDrawSelection[3], -3394765);
TextDrawFont(TextDrawSelection[3], 5);
TextDrawBackgroundColor(TextDrawSelection[3], BackgroundColor);
TextDrawSetSelectable(TextDrawSelection[3], true);
 
TextDrawSelection[4] = TextDrawCreate(489.999877106.037727"usebox");
TextDrawTextSize(TextDrawSelection[4], 71.20000476.657783);
TextDrawUseBox(TextDrawSelection[4], true);
TextDrawBoxColor(TextDrawSelection[4], -3394765);
TextDrawFont(TextDrawSelection[4], 5);
TextDrawBackgroundColor(TextDrawSelection[4], BackgroundColor);
TextDrawSetSelectable(TextDrawSelection[4], true);
 
TextDrawSelection[5] = TextDrawCreate(194.199844185.682250"usebox");
TextDrawTextSize(TextDrawSelection[5], 71.20000476.657783);
TextDrawUseBox(TextDrawSelection[5], true);
TextDrawBoxColor(TextDrawSelection[5], -3394765);
TextDrawFont(TextDrawSelection[5], 5);
TextDrawBackgroundColor(TextDrawSelection[5], BackgroundColor);
TextDrawSetSelectable(TextDrawSelection[5], true);
 
TextDrawSelection[6] = TextDrawCreate(268.399902185.682205"usebox");
TextDrawTextSize(TextDrawSelection[6], 71.20000476.657783);
TextDrawUseBox(TextDrawSelection[6], true);
TextDrawBoxColor(TextDrawSelection[6], -3394765);
TextDrawFont(TextDrawSelection[6], 5);
TextDrawBackgroundColor(TextDrawSelection[6], BackgroundColor);
TextDrawSetSelectable(TextDrawSelection[6], true);
 
TextDrawSelection[7] = TextDrawCreate(342.199951185.682235"usebox");
TextDrawTextSize(TextDrawSelection[7], 71.20000476.657783);
TextDrawUseBox(TextDrawSelection[7], true);
TextDrawBoxColor(TextDrawSelection[7], -3394765);
TextDrawFont(TextDrawSelection[7], 5);
TextDrawBackgroundColor(TextDrawSelection[7], BackgroundColor);
TextDrawSetSelectable(TextDrawSelection[7], true);
 
TextDrawSelection[8] = TextDrawCreate(416.400085185.682235"usebox");
TextDrawTextSize(TextDrawSelection[8], 71.20000476.657783);
TextDrawUseBox(TextDrawSelection[8], true);
TextDrawBoxColor(TextDrawSelection[8], -3394765);
TextDrawFont(TextDrawSelection[8], 5);
TextDrawBackgroundColor(TextDrawSelection[8], BackgroundColor);
TextDrawSetSelectable(TextDrawSelection[8], true);
 
TextDrawSelection[9] = TextDrawCreate(490.200225185.682235"usebox");
TextDrawTextSize(TextDrawSelection[9], 71.20000476.657783);
TextDrawUseBox(TextDrawSelection[9], true);
TextDrawBoxColor(TextDrawSelection[9], -3394765);
TextDrawFont(TextDrawSelection[9], 5);
TextDrawBackgroundColor(TextDrawSelection[9], BackgroundColor);
TextDrawSetSelectable(TextDrawSelection[9], true);
 
TextDrawSelection[10] = TextDrawCreate(195.199844266.326721"usebox");
TextDrawTextSize(TextDrawSelection[10], 71.20000476.657783);
TextDrawUseBox(TextDrawSelection[10], true);
TextDrawBoxColor(TextDrawSelection[10], -3394765);
TextDrawFont(TextDrawSelection[10], 5);
TextDrawBackgroundColor(TextDrawSelection[10], BackgroundColor);
TextDrawSetSelectable(TextDrawSelection[10], true);
 
TextDrawSelection[11] = TextDrawCreate(268.199829266.326721"usebox");
TextDrawTextSize(TextDrawSelection[11], 71.20000476.657783);
TextDrawUseBox(TextDrawSelection[11], true);
TextDrawBoxColor(TextDrawSelection[11], -3394765);
TextDrawFont(TextDrawSelection[11], 5);
TextDrawBackgroundColor(TextDrawSelection[11], BackgroundColor);
TextDrawSetSelectable(TextDrawSelection[11], true);
 
TextDrawSelection[12] = TextDrawCreate(343.199829266.326721"usebox");
TextDrawTextSize(TextDrawSelection[12], 71.20000476.657783);
TextDrawUseBox(TextDrawSelection[12], true);
TextDrawBoxColor(TextDrawSelection[12], -3394765);
TextDrawFont(TextDrawSelection[12], 5);
TextDrawBackgroundColor(TextDrawSelection[12], BackgroundColor);
TextDrawSetSelectable(TextDrawSelection[12], true);
 
TextDrawSelection[13] = TextDrawCreate(416.199829266.326721"usebox");
TextDrawTextSize(TextDrawSelection[13], 71.20000476.657783);
TextDrawUseBox(TextDrawSelection[13], true);
TextDrawBoxColor(TextDrawSelection[13], -3394765);
TextDrawFont(TextDrawSelection[13], 5);
TextDrawBackgroundColor(TextDrawSelection[13], BackgroundColor);
TextDrawSetSelectable(TextDrawSelection[13], true);
 
TextDrawSelection[14] = TextDrawCreate(491.199829266.326721"usebox");
TextDrawTextSize(TextDrawSelection[14], 71.20000476.657783);
TextDrawUseBox(TextDrawSelection[14], true);
TextDrawBoxColor(TextDrawSelection[14], -3394765);
TextDrawFont(TextDrawSelection[14], 5);
TextDrawBackgroundColor(TextDrawSelection[14], BackgroundColor);
TextDrawSetSelectable(TextDrawSelection[14], true); 
П.С: BackgroundColor - переменная цвета
Reply


Messages In This Thread
Сдвигается ТекстДрав - by VaReNiX - 08.02.2015, 00:21
Re: Сдвигается ТекстДрав - by OrangeJam - 08.02.2015, 03:23
Re: Сдвигается ТекстДрав - by VaReNiX - 08.02.2015, 10:21
Re: Сдвигается ТекстДрав - by OKStyle - 08.02.2015, 10:40
Re: Сдвигается ТекстДрав - by VaReNiX - 08.02.2015, 10:52
Re: Сдвигается ТекстДрав - by OKStyle - 08.02.2015, 11:47
Re: Сдвигается ТекстДрав - by VaReNiX - 08.02.2015, 12:26

Forum Jump:


Users browsing this thread: 1 Guest(s)