Toast Control

Toast Control

69M Downloads

Toastcontrol disables nonvanilla gui buttons

mcenderdragon opened this issue ยท 11 comments

commented

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...

commented

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.

commented

If these checks are not strict enough I guess I get to start checking the texY and texX provided to GuiButtonImage

commented

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.

commented

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

commented

Actually, its probably that stupid af no more recipe book mod.

commented

As I recall, that mod deletes all buttons in the game with id of 10.

commented

It is not, thats very weird, it seems like the b instanceof GuiButtonImage is ignored and only b.id == 10 is used...

commented

well yeah that would affect my guis...

commented

Gonna close this and move back to the futurepack issue

commented

Sure