/customui

Library to create custom UI's in MCPE 1.2+

Primary LanguagePHPGNU General Public License v3.0GPL-3.0

customui

Library status + Virion download: Poggit-CI Example Plugin Status: Poggit-CI

Library to create custom UI's in MCPE 1.2+

Lets you:

  • Create custom UI's
  • Send/close them to/from players
  • Handle the data/replies
  • Dynamically generate window data
  • Include as viron into your plugins to create new UI's

Main advantages

This virion makes handling response data easy - it already gives the proper result instead of weird and unclear numbers everywhere.

In example:

  • a ModalForm only returns true when the first button was clicked
  • a SimpleForm (only buttons) returns the text of the clicked button (so it can easily be used in switch-case without worrying about which button has which index in the form)
  • A CustomForm and a ServerForm returns the values for each of its elements in correct order

Why use this virion instead of a plugin (i.e. FormAPI)?

It is a library instead of a plugin because there is no need to handle form replies via event listeners anymore in pmmp and it probably saves resources on the server. You are still able to fully control sent forms, data etc.

How to use this repo?

NEW! In-depth explanation in the wiki!

Check out the source of the example plugin (customuitest). It is a full example of registering, sending and handling responses via plugins :)

How do i code with it?

When developing plugins, you want to get DEVirion, and load a virion from source.

Read the virion support information and the customui wiki for more in-depth explanations


As of: 20. November 2018