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

[Suggestion][Feature request] can you pass mouse cordinates to ICategory#drawExtras #729

Closed
sp-guip opened this issue Feb 11, 2017 · 8 comments

Comments

@sp-guip
Copy link

sp-guip commented Feb 11, 2017

I wanted to draw tooltips for specific region in a category I made and didn't find any non-hacky way to get the mouse x and y.

@mezz
Copy link
Owner

mezz commented Feb 12, 2017

You can use IRecipeWrapper#getTooltipStrings(int mouseX, int mouseY) for this purpose. You give JEI the strings you want in the tooltip there.

@sp-guip
Copy link
Author

sp-guip commented Feb 12, 2017

Yeah but I needed it specificly in the IRecipeCategory as I don't want to do it for all RecipeWrappers.

@mezz
Copy link
Owner

mezz commented Feb 12, 2017

Would this be solved if I add a getTooltipStrings method to IRecipeCategory?

@sp-guip
Copy link
Author

sp-guip commented Feb 12, 2017

Yes that would be great.

@mezz
Copy link
Owner

mezz commented Feb 12, 2017

Added in JEI 4.2.5 for 1.11.2

@sp-guip
Copy link
Author

sp-guip commented Feb 12, 2017

thanks

@mezz
Copy link
Owner

mezz commented Feb 12, 2017

Backported to JEI 3.14.6 for 1.10.2

@mezz
Copy link
Owner

mezz commented Feb 12, 2017

No problem

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants