Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Favorite recipes panel is on top of recipe browser even though it is drawn beneath #118

Open
VSMent opened this issue Nov 24, 2023 · 2 comments

Comments

@VSMent
Copy link

VSMent commented Nov 24, 2023

When I overlap recipe browser panel and favorite recipes panel, recipe browser is drawn on top of favorite recipes.
But mouse ignores recipe browser as if it is underneath favorite recipes panel.

20231125004907_1
20231125005406_1

It would be awesome to move panels up when focused, but for now consistency between image and interactivity would be great as well.

@VSMent
Copy link
Author

VSMent commented Nov 24, 2023

Both recipe browser (which has solid background color) and favorite recipes panel (transparent background) allow click through them on other UI elements.

I do not know if that was intentional but is a bit unexpected when panels overlap with inventory, crafting menu or other UI elements. They are drawn above, but do not capture click.

@JavidPack
Copy link
Owner

This is a limitation of the UI logic in Terraria. It wasn't designed to handle overlap. There have been ideas about how to fix it in tModLoader, but it is still being thought through.

Basically, UI windows are drawn and updated in order, so the first window sees that something is hovering and sets the tooltip, then the 2nd window draws over the 1st.

There is a way I can work around the issue for within Recipe Browser I think, but that wouldn't fix the issue with other mods and Terraria UI behaving as they do. It'll require work done on tmodloader itself to work correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants