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!
Forms
● ARCHIVED · READ-ONLY
-
-
I've moved this thread to Learning Javascript. Thank you.
-
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. -
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 -
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. -
Thank you so much Aloe, the Notepad plugin was really illuminating... I would not be able to make it without that...
Spoiler -
It looks very nice! Glad that you got it working.
I forgot to mention one more example for study and inspiration:
https://forums.rpgmakerweb.com/index.php?threads/neldersons-mv-online-core.79938/
I believe this one also uses HTML elements rather than the MV style windows, but it is still interesting. -
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