yescallop / Nukkit

Nuclear Powered Server For Minecraft: Pocket Edition

Home Page:http://nukkit.cn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add Custom InventoriesGUI?

Goodstuff4UonYT opened this issue · comments

It would be nice, if you can do this also in Nukkit.
dgpfktvu0aanusq

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!

@kvetinac97 I added buttons in Simple forms, but the images are not shown.