Add Custom InventoriesGUI?
Goodstuff4UonYT opened this issue · comments
Looks like steadfast had these things implemented
I am already working on ModalFormsAPI, work in progress !!!
i suggest the ModalForm system should have a complete callback system, like player.showModalForm(form, resp -> logger.info(resp.getString("username")));
Yes, there will be a PlayerModalFormRespondedEvent with properties
getResponse (ModalFormResponse class, from which you will be able to pick data)
getForm(The instance of original Form responded)
closed (If player closed the form with Cross button)
Now you are able to create it with my PR #54
@kvetinac97 How does setIcon works?
@kvetinac97 And what did I wrong? :'D addElement(new ElementButton("test"));
is wrong :c
I used FormWindowCustom.
Custom forms do not support buttons - submit button will appear automatically (MC adds it). Simple forms do.
@kvetinac97 Okey thanks!
@yescallop I can help you rewrite 1.2 inventory, watch there: https://gist.github.com/dktapps/dcd68142f18da90cf22a02e99de26576
@kvetinac97 I added buttons in Simple forms, but the images are not shown.