Library status Virion download:
Example Plugin Status:
Library to create custom UI's in MCPE 1.2
- 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
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 inswitch-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
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.
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 :)
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