You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am designing my HUD elements in a 16:9 screen (1366x768) and using this function, I want to align above the radar.
The thing is that setting second argument as "aspect ratio the dxDraws were originally designed in" (in my case 16:9) will cause problems with MTA aspect ratio option.
Example:
1366x768 (native 16:9), MTA aspect ratio 16:9 (auto) positions correctly
1366x768 (native 16:9), MTA aspect ratio 4:3 positions incorrectly
800x600 (native 4:3), MTA aspect ratio 16:9 positions correctly
800x600 (native 4:3), MTA aspect ratio 4:3 positions incorrectly
To Reproduce
Using onClientRender event, call dxSetAspectRatioAdjustmentEnabled(true, 16/9).
Create any dx element with positions above radar, like I did.
Here's example:
dxDrawText("Text", sW*(-0.73), sH*(0.32), sW, sH, tocolor(255, 255, 255, 255), 1, "bankgothic", "center", "center")
Go to MTA Settings -> Video -> Aspect Ratio -> Change to see the difference.
Change resolution to a different aspect ratio (800x600) and repeat step 3.
Expected behavior
What I want to see is the placement of dx elements above the radar at any screen aspect ratio, at any MTA aspect ratio, without doing checks. My method of avoiding the use of this function is:
Checking for screen aspect ratio (sW/sH)
Then, checking MTA aspect ratio using dxGetStatus.SettingAspectRatio
dxGetStatus.SettingHUDMatchAspectRatio is a strange check. does more "stretch" to the screen.
Finally, creating positions for every case;
Screenshots posted in bug description
MTA Client:
Version: v1.5.5-release-13968
Running in Wine? No
MTA Server:
OS: Linux, Debian 9
Version: 1.5.5-9.12430.0
The text was updated successfully, but these errors were encountered:
Describe the bug
I am designing my HUD elements in a 16:9 screen (1366x768) and using this function, I want to align above the radar.
The thing is that setting second argument as "aspect ratio the dxDraws were originally designed in" (in my case 16:9) will cause problems with MTA aspect ratio option.
Example:
To Reproduce
Here's example:
dxDrawText("Text", sW*(-0.73), sH*(0.32), sW, sH, tocolor(255, 255, 255, 255), 1, "bankgothic", "center", "center")
Expected behavior
What I want to see is the placement of dx elements above the radar at any screen aspect ratio, at any MTA aspect ratio, without doing checks. My method of avoiding the use of this function is:
Screenshots
posted in bug description
MTA Client:
MTA Server:
The text was updated successfully, but these errors were encountered: