PI doc area needs to be a little smarter.
brandon3055 opened this issue ยท 2 comments
Issue Description:
The current implementation simply uses all available space to the left of the GUI. It does not take into account the high possibility that there may be buttons from other mods like JEI in that area.
This issue was brought up over on the PI issue tracker
I recommend something something similar to what the default handler does.
https://github.com/brandon3055/ProjectIntelligence/blob/1b2bc800c709b201dfa0bff12a88376b1b91c615/src/main/java/com/brandon3055/projectintelligence/registry/DefaultHandlerImpl.java
JEI takes up the complete left side and complete right side of the screen, so we cannot simply move out of the way. We also do not get any feedback from PI on the status of the documentation, we just tell it where it can put it so it doesn't interfere with our GUI. We also tell JEI where it cannot put its stuff because we need the space for our GUI. PI just needs to do the same (mezz.jei.api.gui.IGlobalGuiHandler.getGuiExtraAreas()
).
Funny you should mention that xD
I still recommend leaving a little space at the top and bottom because JEI is not the only mod that adds buttons. I have increased the priority on the PI mouse listener so at the very least you should be able to press the close button no matter what now. As long as no one else uses Priority.HIGHEST on their buttons...