Posted November 11, 201410 yr I have a gui which you can flick through the pages. How would I automatically make a new page gui without making an entire new class for every page?
November 11, 201410 yr Author Have a field in your Gui that stores the current page. Then in drawScreen draw different things depending on the contents of that field. Then you'll need buttons to flick through the pages. A simple example: https://github.com/diesieben07/Modjam-4/blob/master/src/main/java/mod/badores/client/gui/GuiBadOreBook.java Thanks, great example
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.