WittZi May 13, 2018 12:32 pm
Subject: User interface (1080p and above)

Hi All,

I have convinced some friends to try MAXR with me, but as they were not original MAX players I have to be careful to keep them interested and show them just how awesome the game is!

One thing I have noticed is that when you select resolutions like 1080p or 2k, the UI frame around the screen doesn't fit all the way and there are small gaps there. It doesn't affect the gameplay at all, but I wondered if there was an easy fix that I could do on the current build (such as changing a graphic, a config file, etc.) so that the borders render correctly for the higher resolution?

I've added a picture of the issue, although I suspect it's already a known thing! I don't see it on the bugtracker though, so I will add it if it's not something that I can address locally.

If anyone has any ideas I would appreciate them, as I want to try and ensure the experience is the best I can for the noobs and (hopefully) show them just how epic the game is. Happy Cool
Attachments:
M.A.X.R. 0.2.9 Releaseversion 13_05_2018 12_03_55.jpg (Filesize: 395.74 KB)

Eiko May 14, 2018 9:27 am
Subject: Re: User interface (1080p and above)

Hi WittZi,

you could edit the graphic files hud_top.pcx, hud_left.pcx, hud_botton.pcx and hud_right.pcx in the data folder.

If you upload the edited files, I'll integrate them into maxr Happy

WittZi May 14, 2018 9:56 pm
Subject: Re: User interface (1080p and above)

Quote by Eiko:
Hi WittZi,

If you upload the edited files, I'll integrate them into maxr Happy

That would be great, thank you Eiko! I've attached the file here. I originally did two sets; 1080p (as it was likely what most people used), then 2k as that's what I wanted. However, I realised that 2k works just as well when playing 1080p anyway! So I've uploaded the 2k set as they actually seem to suit all resolutions. I was going to do 4k, but I think MAX in 4k might look too weird!

Thanks again for explaining where the files were and apologies that they are not perfect. I still think they make the UI look a little nicer at higher resolutions though so that's at least a start. Happy
Attachments:
gfx_2k.zip (Filesize: 329.59 KB)

WittZi May 15, 2018 8:14 am
Subject: Re: User interface (1080p and above)

Just as an example, here's what the UI now looks like on a 2k display (plus I've added what the non-patched version looks like). It wraps around, etc. and the interface on the left isn't missing large chunks at the bottom. The corners don't wrap perfectly, but they never seemed to anyway which is why I couldn't get the right effect! Cool

(sorry, had to ZIP it as it exceeded the maximum image size (2,048 x 2,048)
Attachments:
M.A.X.R. 0.2.9 Releaseversion 15_05_2018 08_11_10.zip (Filesize: 448.72 KB)
MAXR Previous UI.zip (Filesize: 615.88 KB)

Sal May 15, 2018 9:11 pm
Subject: Re: User interface (1080p and above)

Nice work Cool

beko May 16, 2018 7:21 am
Subject: Re: User interface (1080p and above)

Hm.. wo we need code adjustments for this to work _right_? It looks terrible on the corners Disappointed

WittZi May 16, 2018 6:09 pm
Subject: Re: User interface (1080p and above)

Quote by beko:
It looks terrible on the corners Disappointed

Yes, I noticed that the game creates corners but that they appear underneath the border PCX file. Whatever I did to try and get the border to stop at the point that the corner appeared wouldn't work, so I'm presuming that there's some logic behind it. If I embedded corners directly into the PCX file it was the same problematic result because again, the corners appeared underneath my corners which caused it to look worse.

The good news is that (even if not perfect) applying the updated HUD files does improve the look of the interface for larger resolutions (see my original post for the original issue), but I would certainly like to try and get it perfect if possible if it is to be added to the installer. I just don't understand how those corners are generated in order to make it look right.

beko May 18, 2018 7:23 am
Subject: Re: User interface (1080p and above)

It probably needs adjustment in the source to work right. Probably just a matter of canging 2 integer values Smiling

Eiko Jun 01, 2018 2:16 pm
Subject: Re: User interface (1080p and above)

Right, there were some hard coded pixel positions in the code. I made the necessary changes, so that the code is now independent of the exact image size and committed the updated hud graphics. Thanks Wittzi!

WittZi Jun 01, 2018 4:57 pm
Subject: Re: User interface (1080p and above)

Awesome, thank you Eiko! That's excellent news. Thank you for doing that, it's really appreciated.