Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Implement less volatile custom window positions #314

Open
LordMZTE opened this issue Nov 28, 2020 · 2 comments
Open

Implement less volatile custom window positions #314

LordMZTE opened this issue Nov 28, 2020 · 2 comments
Labels
enhancement New feature or request gui Related to KAMI's interface help wanted Extra attention is needed

Comments

@LordMZTE
Copy link
Contributor

currently, when giving a widget a custom position, i'ts completely messed up once the window gets resized. this could be fixed by making the position a ratio

@zeroeightysix zeroeightysix added enhancement New feature or request gui Related to KAMI's interface help wanted Extra attention is needed labels Dec 18, 2020
@zeroeightysix zeroeightysix changed the title store widget positions as ratios Implement less volatile custom window positions Dec 18, 2020
@zeroeightysix
Copy link
Owner

This is a difficult problem, as if you were to use ratios, windows might overlap if you resize the minecraft window.

This is better fixed with docking, which might be available when we update imgui.

@LordMZTE
Copy link
Contributor Author

Another solution to this could be to use the existing corner positioning system but additionally with X and Y offsets. This would allow for custom positioning and solve the issue of positions breaking when the window is resized.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request gui Related to KAMI's interface help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants