Toastcontrol disables nonvanilla gui buttons
mcenderdragon opened this issue ยท 11 comments
mcenderdragon/Futurepack-API#456
In Summary: I have added custom buttons to a custom gui of mine and it seems like yor mod sets the "visible" flag of one of them to false. Resseting the visible flag each frame to true fixes the problem.
It took very long to find out this mod is causing the issue :/
Edit: After reading your code I can hardly belive this mod is causing the issue... maybe another one is involved...
Right. If its one of my mods it would have to be FastWorkbench, toast control doesn't touch gui button code. The checking on fastbench is kinda strict tho.
If these checks are not strict enough I guess I get to start checking the texY and texX provided to GuiButtonImage
My button is futurepack.common.gui.ButtonAspect and extends net.minecraft.client.gui.GuiButton, maybe you can implemented a class check. And also my disbaled button has id 10, so it is probably that.
If your isnt an instanceof GuiButtonImage and doesn't match either of those relocs this check will fail, so a blacklist at that level wouldn't do anything
It is not, thats very weird, it seems like the b instanceof GuiButtonImage
is ignored and only b.id == 10
is used...