30.04.2015, 02:37
Quote:
There is already a GetPlayerResolution function, and it works perfectly. The hardest part is adjusting each textdraw so good luck with that.
Код:
switch(GetPlayerCameraAspectRatio(playerid)) { case 1.3 .. 1.35: //screen ratio is 4:3 case 1.5: //screen ratio is 3:2 case 1.6: //screen ratio is 16:10 // And the rest of the aspect ratios } |
It doesn't only occur when using decimal screen positions. Here's the code for the text draws used in the picture:
pawn Код:
new Float:x = 150, Float:y = 200;
for(new i = 0; i != sizeof(textdraw); i++) {
textdraw[i] = TextDrawCreate(x, y+ (12*i), "_");
TextDrawTextSize(textdraw[i], x+ 40+ (40*i), 0);
TextDrawLetterSize(textdraw[i], 0, 0.95);
TextDrawUseBox(textdraw[i], 1);
TextDrawBoxColor(textdraw[i], 0x00000080);
}