Code Monkey home page Code Monkey logo

customui's Introduction

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

customui's People

Contributors

inxomnyaa avatar poggit-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.