1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Pocketmine Forms Tutorials

Discussion in 'Help' started by ZackyVN, Aug 30, 2018.

  1. ZackyVN

    ZackyVN Baby Zombie

    Messages:
    150
    How to use pocketmine forms?
     
  2. lucyyd

    lucyyd Creeper

    Messages:
    1
    GitHub:
    LucyyD
    yes
     
    RyanShaw likes this.
  3. Destroyer57

    Destroyer57 Zombie

    Messages:
    275
    Elaborate
     
    RyanShaw likes this.
  4. HBIDamian

    HBIDamian HBIDamian Staff Member

    Messages:
    365
    GitHub:
    HBIDamian
    Can people actually write in a full sentence instead of one word?
    For example these
    and
    are
    classified as "Nonconstructive Reply"
     
    OnTheVerge likes this.
  5. Qeis2007

    Qeis2007 Witch

    Messages:
    70
    GitHub:
    FrostingBita
    You can use FormAPI
     
    HBIDamian likes this.
  6. ZackyVN

    ZackyVN Baby Zombie

    Messages:
    150
    no i meant the Forms System at PMMP 3.1.2 Version. How to use that?
     
  7. Qeis2007

    Qeis2007 Witch

    Messages:
    70
    GitHub:
    FrostingBita
    FORMAPI is work on 3.1.2
     
  8. ZackyVN

    ZackyVN Baby Zombie

    Messages:
    150
    No i meant
    pocketmine\form\Form
     
  9. Thouv

    Thouv Slime

    Messages:
    84
    GitHub:
    adeynes
    (I assume you mean 3.2.0)
    Look into this FormAPI PR to see an implementation of it. It's pretty straightforward, you need a class that implements `pocketmine\form\Form` and gets JSON serialized into the form data. Then you use `Player::sendForm()` and pass it your form instance. In your `Form` class, you also need a `handleResponse` method. For a `custom_form`, either an array with the response data or null if the form was closed will be passed.
     
  10. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    667
    or post farming
     
  11. hikingjungle

    hikingjungle Baby Zombie

    Messages:
    123
    GitHub:
    hikingjungle
    i said "um" because i thought the thread title said forums not forms
    sorry
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.