Shadows-of-Fire / PackMenu

Tool for editing the main menu in modpacks.
MIT License
16 stars 10 forks source link

[Feature Request] Allow opening of any Minecraft-recognizeable GUI #24

Closed FireController1847 closed 3 years ago

FireController1847 commented 3 years ago

Hi there,

I'd love for the ability to open up pretty much any of the primary GUIs using the "OPEN GUI" action. In particular, I'm looking to directly open the "Resource Packs..." screen from a custom button on the menu, but as a fellow modder I know there's tons of classes for various different GUIs which are able to be opened.

Would it be possible to add to the list of GUI menus a few of the other ones, such as ones inside of the options menu and such?

Shadows-of-Fire commented 3 years ago

You would have to request specific screens for this kinda feature request.

FireController1847 commented 3 years ago

Yeah, sorry, I don't know what I was thinking then I suggested this. Can I recommend all of the buttons in the "Options" screen if possible to be opened? In particular I'm looking for "Resource Packs...", but it would be ideal if we could open any of the sub-menus in the options menu.

Shadows-of-Fire commented 3 years ago

Unfortunately that screen is weirdly bound to the options menu. Best I can do is have it open it, but it will always go back to the options menu and not the main menu on exit

Shadows-of-Fire commented 3 years ago

Actually, even that's difficult, so it will probably be easier to just hack around to the original intended effect, since it needs hacking around to happen at all.

Shadows-of-Fire commented 3 years ago

Added under RESOURCE_PACKS data id for OPEN_GUI

FireController1847 commented 3 years ago

Oh wow, thank you. I took a shot at a custom RESOURCE_PACKS screen and the only way I could get it to work was copying the code into the function passed. I may have to analyze your implementation to see how you did it haha