Follow along with the video below to see how to install our site as a web app on your home screen.
注意事項: This feature may not be available in some browsers.
// ===================================================================
//
// スクリプト: Visual Novel Maker用テキスト入力プラグイン
// バージョン: 5.0.0
// 作者: Iris to Id (https://iristoid.itch.io/)
//
// ===================================================================
//
// 説明:
// Visual Novel Maker用のカスタマイズ可能なテキスト入力ダイアログです。
// プレイヤーがテキスト(名前や返答など)を入力し、ゲーム変数に
// 保存することができます。純粋なHTML/CSSで構築されています。
//
// 使用方法:
// showTextInput(variableId, message, maxLength, confirmLabel, cancelLabel, allowedChars)
//
// パラメータ:
// variableId - 入力を保存する文字列変数ID(1から開始)
// message - 表示するプロンプトメッセージ
// maxLength - 最大文字数(デフォルト: 20)
// confirmLabel - 確定時にジャンプするラベル(任意)
// cancelLabel - キャンセル時にジャンプするラベル(任意)
// allowedChars - 文字フィルターパターン(任意、例: "a-zA-Z0-9")
//
// 使用例:
// showTextInput(1, "あなたの名前は?", 20);
// showTextInput(1, "年齢を入力:", 3, null, null, "0-9");
// showTextInput(2, "コードを入力:", 10, "success", "failed", "A-Z0-9");
// showTextInput(15, "あなたの名前は?", 20, "afterNameInput", "nameCanceled");