-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add library for creating GUI menus #370
base: master
Are you sure you want to change the base?
Conversation
Also changing from stained glass to stained glass panes
Might switch back later if it turns out to be more convenient
I just read the code. This looks pretty cool. |
Multi-page GUIs are now separate from regular GUIs
Also moved screen callback to separate function
55810ce |
@altrisi I think this is ready |
Seems handy and the test script demonstrates some cool functions. Thanks for adding the example else reviewing this would take an eternity. I'll being going through this for a while but I don't expect any major errors. |
I actually created it so I could test the script as I added more and more to it. Imaging what a nightmare it would have been otherwise... |
Much like
classes.scl
, this will in theory allow players to create their own GUI libraries by declaring a list of functions in a map.Unlike
classes.scl
, this might actually be useful, since it abstracts a lot more of the grittier process behind nice-to use functions and syntax. Also, this has more flexibility.Fixes #315
Todo items:
(screen, player, action, data)
variables, as well asgui_screen
variable)slot_update
action to be sent out)Effects ig, gotta read the docsNothing, as it happens)Maybe something with the new smithing templates?Nothing, it seems)on_init
function or smth like that for pages, so more complex initial setup can be done (useful for enchanting tables and beacons etc.)