Phazorknight / Cogito

Immersive Sim Template Project for GODOT 4
MIT License
799 stars 90 forks source link

Interaction Text location does not transform position properly with resolutions #46

Closed Bezoika closed 6 months ago

Bezoika commented 6 months ago

Screenshot 2024-02-11 161709 Screenshot 2024-02-11 161810 As seen in the added screenshots, when the window is maximized, the interactable text shoots way out of where it should be.

Phazorknight commented 6 months ago

Yup, thanks for flagging.

There's several UI related issues. I'm still getting to know how exactly UI in Godot behaves so i'm hoping to improve and make the overall UI more dynamic to adapt to window size.

In the meantime, you can fix this by moving/adjusting the Player_HUD / PromptArea node to your needs.

image

ac-arcana commented 6 months ago

image Anchor preset -> set to current ratio This fixed it in my project. It is now placed the same when windows and in fullscreen

Anchors are an easy built in way to ensure UI elements are placed in the same location at different resolutions.

Phazorknight commented 6 months ago

Thanks for this, ac-arcana.

I've applied this as a quick fix in 202402.02.