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

ModalFormRequestPacket json

Discussion in 'Development' started by chansol, Aug 16, 2017.

  1. chansol

    chansol Spider Jockey

    Messages:
    32
    GitHub:
    ParkChanSol
    What value should I put in " ModalFormRequestPacket's $formData "?
     
  2. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
    There are some libraries you could use to utilize a pre-made API, but if you prefer to do it from scratch, like I did, you can take a look at this here: https://github.com/BlockHorizons/Bl...ting/src/BlockHorizons/BlockSniper/ui/windows
    It has the arrays for multiple windows, so examples enough. If you json_encode the arrays in those files as an example and put them in the ModalFormRequestPacket->formData, you should be fine.
     
    jasonwynn10 likes this.
  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.