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.
- a ModalForm only returns
truewhen the first button was clicked
- a SimpleForm (only buttons) returns
the text of the clicked button(so it can easily be used in
switch-casewithout worrying about which button has which index in the form)
- A CustomForm and a ServerForm returns
the values for each of its elementsin 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.
As of: 20. November 2018