Input Dialog MZ

Input Dialog MZ
By Biud436​

Introduction
This plugin allows you type a text using HTML5 <input> element and save a result to certain game variable.

Features
- Supports a text input on mobile device such as Android.

Screenshots

1598684924633.png


Link
Github RAW - https://github.com/biud436/MZ/raw/master/RS_InputDialog.js
Github - https://github.com/biud436/MZ/blob/master/RS_InputDialog.js

Change Log
2024.01.01 (v2.1.0) :
- added a feature that can change the font family.
- fixed the issue that can't move cursor by touch on mobile device.
2024.01.01 (v2.1.1) :
- fixed an issue with <input> appearing in the right-hand corner on mobile.

Credit and Thanks
Biud436

Terms Of Use
Free for commercial and non commercial use.
This is exactly what I've been seeking for these last few days! And there's an MV version as well! Thank you so much.
The setup is the same as MV's?
is this possible to use with quiz input mini game?
The setup is the same as MV's?
Yes, it is completely the same except for the zoom in when the mouse is on the button.

is this possible to use with quiz input mini game?
it is possible.
Yes, it is completely the same except for the zoom in when the mouse is on the button.


it is possible.
Hello there, I've tried to write the script command in RPG maker MV but it doesn't work, how can I set an event to open that scene?
Exactly what I've looked for! Thank you.

Edit: Too bad it's not working with self variables plugin 🙁
How could this plugin be modified so that you have a certain number of seconds (passed as a parameter) to do the input and if time runs out a kind of TIMEOUT value is returned in addition to whatever was typed until then?
Yes, it is completely the same except for the zoom in when the mouse is on the button.


it is possible.
Excuse me, can i asking how to create quiz event with this plugin, like conditional branch

Sorry for my bad english
Is there a way to force CAPS LOCK on or off, to make text variable easier to manage?
You could try this script command:

Code:
var sentence = $gameVariables.value(19);
var lowersentence = sentence.toLowerCase();

$gameVariables.setValue(20, lowersentence);

In this example Variable 19 is where the text was imputed with the Plugin and by using the.toLowerCase() command, the word/sentence was set to lower case. Finally the new value was set to Variable 20.

I'm sure there is a better solution but you can try that 🙂
You could try this script command:

Code:
var sentence = $gameVariables.value(19);
var lowersentence = sentence.toLowerCase();

$gameVariables.setValue(20, lowersentence);

In this example Variable 19 is where the text was imputed with the Plugin and by using the.toLowerCase() command, the word/sentence was set to lower case. Finally the new value was set to Variable 20.

I'm sure there is a better solution but you can try that 🙂

This works like a charm!
Thanks!
Just another small thing, hoping not to sound too opportunistic: is it possible to have a copy-and-paste version of a css code to use in this plugin to change a bit the appearance of the box?
Smalls changes would be enough: font size, font alignment, etc...
I think it would be super useful to people like me: JavaScript is already a hard task to learn, I don't have time to study also how css works...
Please don't consider me too brazen, if I'm asking too much just say it...
Just another small thing, hoping not to sound too opportunistic: is it possible to have a copy-and-paste version of a css code to use in this plugin to change a bit the appearance of the box?
Smalls changes would be enough: font size, font alignment, etc...
I think it would be super useful to people like me: JavaScript is already a hard task to learn, I don't have time to study also how css works...
Please don't consider me too brazen, if I'm asking too much just say it...
I wish I could help you more but Im not to knowledgeable in that front.
I use this plugin as well and would love to change the appearance of the text input window.

Oh, and you're not asking too much at all! Hopefully someone would know the best way to do this

Original thread: https://forums.rpgmakerweb.com/threads/input-dialog-mz.126294/