LemonUIbyLemon / LemonUI

LemonUI for .NET (FiveM, RageMP, RagePluginHook and ScriptHookVDotNet 3)
MIT License
177 stars 40 forks source link

NativeStatsPanel aspect ratio bug #93

Closed SkyZ0347 closed 1 year ago

SkyZ0347 commented 2 years ago

From what i tested, having different resolution than 16:9 (1920x1080 / 1280/720) moves NativeStatsPanel more to the right, Just to mention it's happening on every screen type, (windowed, fullscreen, windowed borderless) but it's kinda obvious.

Here are examples of how it looks on 16:9 (1280x720 windowed) and 4:3 (1280x1024 also windowed): image image

I know it's kinda small difference but it's very noticable and I'll be really thankful for fixing it.

justalemon commented 1 year ago

I took the time to rewrite the source code that deals with the recalculation of the NativeStatsPanel and NativeStatsInfo. This is what it looks like right now:

16:9 Maximum Safe Zone image

16:9 Minimum Safe Zone image

4:3 Maximum Safe Zone image

4:3 Minimum Safe Zone image