blish-hud / Blish-HUD

A Guild Wars 2 overlay with extreme extensibility through compiled modules.
https://blishhud.com
MIT License
311 stars 60 forks source link

Suggestion: Default feature of anchoring Elements in the Overlay to the screen #944

Open DarkLiKally opened 4 months ago

DarkLiKally commented 4 months ago

It might be useful for Authors to have a default API for placing their root-elements on the container of the Blish Overlay.

It should support things like anchoring:

Having those options would allow authors to offer options to users where they want to place elements on the canvas. I.e. anchor an element to the bottom right corner of the screen and move it 300 pixels to the left. With this the element could be pinned next to the mini map, even when the game window size changes or the player switches between full screen and window mode.

Real World use case example: I am playing on a 32:9 monitor for normal gameplay, but when I'm following some guides I might have the browser window on one half of the screen and the game on the other half, so the game has then only 50 % of screen width, all the placed Overlay UI in Blish does not adjust to these changes, throwing the elements off the screen.

My current workaround: I wrote myself a script, that kills Blish, will go through all the Blish options and adjusting the position settings in the config JSONs, and then starting up BlishHUD again.