Forms

● ARCHIVED · READ-ONLY
Started by EmbarassingMan 8 posts View original ↗
  1. Hello everyone,

    I'm just starting scripting, so the question might seem pretty stupid...

    How do you create a simple form in a window? I mean adding text-fields, buttons and all the stuff...

    I'm playing around with rpg_windows, but can't find much about the above in the technical documentation.

    Thank you so much!
  2. I've moved this thread to Learning Javascript. Thank you.

  3. It's not htlm/css... it's javascript.

    You need to code it.

    To draw some text, there's a function that already exists:
    Code:
    drawText(text, x, y, width, align)
    
    // by default align is set to "left".
    //  you can set it to "center" to center your text, or "right" to draw the text from the right.

    As for options, or commands, you use Window_Selectable, or Window_Command.
  4. Sorry guys, I think I got misunderstood... it's not really a javascript question...

    RMMV comes with a component library whose components are Scenes, Windows, Sprites and more. My question was more about the fact that the library has (or has not) components allowing you to build a form-like UI (or more simply: enabling a user to type a text).

    I would say no, as even the name editor doesn't follow this pattern, but please correct me if I'm wrong.

    Thanks
  5. Correct, there is nothing in the RPG Maker MV core scripts which enables a player to type into the game using their keyboard.

    If you want to code this yourself, you can study my Notepad plugin (link in signature) - this creates a new scene where players can type notes with their keyboard. This is all Javascript using the RPG Maker MV format of scenes/windows.

    Another alternative to study is Biud's Keyboard Input Dialog which creates an <input> HTML element over the game screen.
  6. Thank you so much Aloe, the Notepad plugin was really illuminating... I would not be able to make it without that...

    Spoiler
    Screen Shot 2018-09-07 at 22.55.59.png
  7. This is really amazing... and has a lot more of what I was planning to do. Looks like we are all after online gaming :D