Introduction
A customizable text input dialog for Visual Novel Maker that allows players to enter text (names, responses, etc.) which gets stored in a game variable. Built with pure HTML/CSS.
Download
Tutorial
1. Create a new Javascript file and paste all the code inside. Make sure it's below everything but above Main.
JavaScript:
// CONFIGURATION
window.TextInputConfig = {
// Position:
// "center", "top", "bottom", "top-left", "top-right", "bottom-left", "bottom-right"
position: "center",
customX: null,
customY: null,
// Size
width: 600,
padding: 30,
// Background (leave empty to use VNM skin)
backgroundImage: "",
backgroundColor: "",
overlayColor: "rgba(0,0,0,0.5)",
// VNM Integration
useVNMSkin: true,
useVNMCursor: true,
// Fonts
fontFamily: '"Times New Roman", serif',
fontSize: 28,
fontColor: "#ffffff",
outlineColor: "#000000",
outlineWidth: 2,
// Input Field
inputBackgroundColor: "#ffffff",
inputTextColor: "#000000",
inputFontSize: 28,
inputPlaceholder: "Enter name...",
// Buttons
showButtons: true,
confirmButtonText: "Confirm",
cancelButtonText: "Cancel",
buttonFontSize: 22,
buttonTextColor: "#ffffff",
buttonBackgroundColor: "",
buttonBackgroundImage: "",
// Instructions
showInstructions: true,
instructionsText: "Press ENTER to confirm, ESC to cancel",
instructionsFontSize: 22
};
3. Use the Script Command to call!