TextDrawSelection[0] = TextDrawCreate(194.399826, 106.037719, "usebox");
TextDrawTextSize(TextDrawSelection[0], 71.200004, 76.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.200073, 106.037727, "usebox");
TextDrawTextSize(TextDrawSelection[1], 71.200004, 76.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.399658, 106.037727, "usebox");
TextDrawTextSize(TextDrawSelection[2], 71.200004, 76.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.799835, 106.037727, "usebox");
TextDrawTextSize(TextDrawSelection[3], 71.200004, 76.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.999877, 106.037727, "usebox");
TextDrawTextSize(TextDrawSelection[4], 71.200004, 76.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.199844, 185.682250, "usebox");
TextDrawTextSize(TextDrawSelection[5], 71.200004, 76.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.399902, 185.682205, "usebox");
TextDrawTextSize(TextDrawSelection[6], 71.200004, 76.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.199951, 185.682235, "usebox");
TextDrawTextSize(TextDrawSelection[7], 71.200004, 76.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.400085, 185.682235, "usebox");
TextDrawTextSize(TextDrawSelection[8], 71.200004, 76.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.200225, 185.682235, "usebox");
TextDrawTextSize(TextDrawSelection[9], 71.200004, 76.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.199844, 266.326721, "usebox");
TextDrawTextSize(TextDrawSelection[10], 71.200004, 76.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.199829, 266.326721, "usebox");
TextDrawTextSize(TextDrawSelection[11], 71.200004, 76.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.199829, 266.326721, "usebox");
TextDrawTextSize(TextDrawSelection[12], 71.200004, 76.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.199829, 266.326721, "usebox");
TextDrawTextSize(TextDrawSelection[13], 71.200004, 76.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.199829, 266.326721, "usebox");
TextDrawTextSize(TextDrawSelection[14], 71.200004, 76.657783);
TextDrawUseBox(TextDrawSelection[14], true);
TextDrawBoxColor(TextDrawSelection[14], -3394765);
TextDrawFont(TextDrawSelection[14], 5);
TextDrawBackgroundColor(TextDrawSelection[14], BackgroundColor);
TextDrawSetSelectable(TextDrawSelection[14], true);
Всё верно. Т.к. задний фон в другую сторону движется при увеличении. Другими словами, если боксы пустые, то правый край границы под превью будет слева.
|
TextDrawSelection[3] = TextDrawCreate(182.200012 - 50, 89.108879, "usebox");