Irevol / minetest-citadel

A minetest game
Other
3 stars 1 forks source link

HUDs too big #10

Closed Warr1024 closed 8 months ago

Warr1024 commented 8 months ago

I'm playing on a 1366x768 display, with HUD scaling set to 1.25 to make hotbars and such large enough to see. When the title displays after exiting the "prologue" maze, it just says "ITAD".

I don't think it's possible to figure out a player's scaling options, so you may have to either make assumptions that it's below some reasonable limit like 1.5x or 2x, or use only "stretch to fit screen" HUDs. As of at least the latest MT version, you should be able to get the player's client window resolution, which you can use to either statically size HUDs, or use [combine to add padding to match the image to the window aspect ratio so that you can stretch it without distortion.

Irevol commented 8 months ago

Yikes, I didn't think about that at all. I'll work on that.

Wuzzy2 commented 8 months ago

Actually, is IS possible to get the player's HUD scaling options with minetest.get_player_window_information. :-)

Warr1024 commented 8 months ago

This has been fixed in 768387b2b6a35fad893d71e0295bc7803b2a3c33, now in main.