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

FormAPI

Discussion in 'Development' started by KSS-Dev, Jul 24, 2018.

  1. KSS-Dev

    KSS-Dev Spider

    Messages:
    11
    GitHub:
    kss-dev
    Is there any way to create a screen with formapi where you can display your input?
     
  2. KSS-Dev

    KSS-Dev Spider

    Messages:
    11
    GitHub:
    kss-dev
    Like this one
     

    Attached Files:

    jasonwynn10, Atomization and RyanShaw like this.
  3. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    not without resending the updated form
     
    xXNiceAssassinlo YT likes this.
  4. KSS-Dev

    KSS-Dev Spider

    Messages:
    11
    GitHub:
    kss-dev
    That means I should write a Task which updates the messages or can I also write a second function that updates the form messages?
     
  5. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    If you only need to display chat messages there, you could listen for that event(PlayerChatEvent, I think?) and update the form then. That way you aren't using extra resources for a task. Also, that event would be a good place to filter out based on party members and whatnot.
     
  6. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    667
    You mean the chat messages? If so, you could use arrays to save your party chat messages. On the chat event you could also check if the chat messages in the arrays are more than 5 so you can unset some of them to prevent UI spam. Make sure to strval() the array data.
     
  7. KSS-Dev

    KSS-Dev Spider

    Messages:
    11
    GitHub:
    kss-dev
    But I also want to add an input to send text messages via form. Do you have another solution for 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.