Nukkit icon indicating copy to clipboard operation
Nukkit copied to clipboard

Add Custom InventoriesGUI?

Open Goodstuff4UonYT opened this issue 8 years ago • 12 comments

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

Goodstuff4UonYT avatar Aug 07 '17 22:08 Goodstuff4UonYT

@kvetinac97

ghost avatar Aug 07 '17 22:08 ghost

Looks like steadfast had these things implemented

larryTheCoder avatar Aug 08 '17 01:08 larryTheCoder

I am already working on ModalFormsAPI, work in progress !!!

kvetinac97 avatar Aug 08 '17 06:08 kvetinac97

i suggest the ModalForm system should have a complete callback system, like player.showModalForm(form, resp -> logger.info(resp.getString("username")));

yescallop avatar Aug 08 '17 07:08 yescallop

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)

kvetinac97 avatar Aug 08 '17 09:08 kvetinac97

Now you are able to create it with my PR #54

kvetinac97 avatar Aug 08 '17 14:08 kvetinac97

@kvetinac97 How does setIcon works?

Goodstuff4UonYT avatar Aug 09 '17 10:08 Goodstuff4UonYT

@kvetinac97 And what did I wrong? :'D addElement(new ElementButton("test")); is wrong :c I used FormWindowCustom.

Goodstuff4UonYT avatar Aug 09 '17 11:08 Goodstuff4UonYT

Custom forms do not support buttons - submit button will appear automatically (MC adds it). Simple forms do.

kvetinac97 avatar Aug 10 '17 06:08 kvetinac97

@kvetinac97 Okey thanks!

Goodstuff4UonYT avatar Aug 10 '17 08:08 Goodstuff4UonYT

@yescallop I can help you rewrite 1.2 inventory, watch there: https://gist.github.com/dktapps/dcd68142f18da90cf22a02e99de26576

ghost avatar Aug 11 '17 16:08 ghost

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

Goodstuff4UonYT avatar Sep 17 '17 07:09 Goodstuff4UonYT