An open library of RPG Maker MZ plugins, powered by the community.

PGMZ - The Community-Driven Plugin Library for RPG Maker MZ

MZ plugins

PANDA Ex Number Input - PANDA_ExNumberInput.js

Plugin desc : enhances the input number window.

License : MIT License

Author : panda(werepanda.jp)

Website : https://www.werepanda.jp/

Desc page : http://www.werepanda.jp/blog/20220130225458.html

File name : PANDA_ExNumberInput.js

Help of plugin :

* @target MZ
 * @plugindesc enhances the input number window.
 * @author panda(werepanda.jp)
 * @url http://www.werepanda.jp/blog/20220130225458.html
 * 
 * @help [How to Use]
 * In the screen of the event command "Input Number", you can:
 *  - Cancel "Input Number"
 *  - Add a text before and after inputting number
 *  - Set the minimum and maximum values that can be input
 *  - Add buttons to move the input digits (added in v1.1.0)
 * 
 * # Setup Number Input Window
 * Apply the settings to the next Input Number screen.
 * The settings will be reset when the process ends.
 * - Cancel Enabled : If ON, players can cancel the screen with the cancel key.
 * - Cancel Value : Specify the number which will be stored in the variable
 *                  when the Input Number command is canceled.
 * - Prefix Text / Suffix Text :
 *    Specify the text displayed before/after the input number.
 * - Min Value / Max Value :
 *    Directly specify the minimum/maximum value for Input Number.
 *    If you specify the Min Variable / Max Variable, this value is ignored.
 * - Min Variable / Max Variable :
 *    Specify the variable which stores the min/max value for Input Number.
 *    If this is specified, Min Value / Max Value is ignored.
 * 
 * The following are set in the plugin parameters. (Added in v1.1.0)
 * They cannot be changed individually.
 * - Enable Digit Buttons
 *    Specify whether to display the buttons to move the input digits
 *    when entering a value. When set to ON, the buttons will be displayed.
 *    The default is OFF (not displayed).
 * - Hide for 1 digit
 *    Specify whether to hide the digit movement buttons when the input value
 *    is 1 digit. When set to ON, the digit movement buttons will be hidden
 *    when the input value is 1 digit.
 *    When set to OFF, the digit movement buttons will be displayed even when
 *    the input value is 1 digit, but of course there will be no reaction
 *    when the buttons are pressed.
 * - Digit Buttons Position
 *    Choose the position of the digit movement buttons from the following.
 *    The default is Bottom Left.
 *    - Bottom Left  : The digit movement buttons will be displayed to the left
 *                     of the up and down buttons for the numeric values.
 *    - Top Left     : The digit movement buttons will be displayed
 *                     in the top left of the numeric input boxes.
 *    - Top Center   : The digit movement buttons will be displayed
 *                     in the top center of the numeric input boxes.
 * - Cancel Button Position
 *    Choose the position of the cancel button from the following.
 *    The default is Bottom Right.
 *    - Bottom Right : The cancel button will be displayed to the right
 *                     of the up and down buttons and the OK button.
 *    - Top Right    : The cancel button will be displayed in the top right
 *                     of the numeric input boxes.
 * 
 * [Thanks to] Triacontane
 * https://triacontane.blogspot.jp/
 * 
 * [License]
 * this plugin is released under MIT license.
 * https://opensource.org/licenses/mit-license.php
 * 
 * 
 * @param isDigitEnabled
 * @text Enable Digit Buttons
 * @desc Specify whether to display the buttons to move the input digits.
 * @type boolean
 * @default false
 * 
 * @param HiddenSingleDigit
 * @text Hide for 1 digit
 * @desc Specify whether to hide the digit movement buttons when the input value is 1 digit.
 * @type boolean
 * @default true
 * 
 * @param DigitButtonPosition
 * @text Digit Buttons Position
 * @desc Specify the display position of the digit movement buttons.
 * @default bottomleft
 * @type select
 * @option Bottom Left
 * @value bottomleft
 * @option Top Left
 * @value topleft
 * @option Top Center
 * @value topcenter
 * 
 * @param CancelButtonPosition
 * @text Cancel Button Position
 * @desc Specify the display position of the cancel button.
 * @default bottomright
 * @type select
 * @option Bottom Right
 * @value bottomright
 * @option Top Right
 * @value topright
 * 
 * @command SETUP_NUMBER_INPUT_WINDOW
 * @text Setup Number Input Window
 * @desc Apply the settings to the next Input Number screen. The settings will be reset when the process ends.
 * 
 * @arg isCancelEnabled
 * @text Cancel Enabled
 * @desc Specify whether players can cancel the Input Number command.
 * @type boolean
 * @default false
 * 
 * @arg cancelValue
 * @text Cancel Value
 * @desc Specify the number which will be stored in the variable when the Input Number command is canceled.
 * @type number
 * @default 0
 * @decimals 0
 * 
 * @arg prefixText
 * @text Prefix Text
 * @desc Specify the text displayed before the input number.
 * @type string
 * @default 
 * 
 * @arg suffixText
 * @text Suffix Text
 * @desc Specify the text displayed after the input number.
 * @type string
 * @default 
 * 
 * @arg minValue
 * @text Min Value
 * @desc Directly specify the minimum value for Input Number. If you specify the Min Variable, this value is ignored.
 * @type number
 * @default 0
 * @decimals 0
 * @min 0
 * 
 * @arg maxValue
 * @text Max Value
 * @desc Directly specify the maximum value for Input Number. If you specify the Max Variable, this value is ignored.
 * @type number
 * @default 999999
 * @decimals 0
 * @min 0
 * 
 * @arg minVariable
 * @text Min Variable
 * @desc Specify the variable which stores the minimum value for Input Number. If this is specified, Min Value is ignored.
 * @type variable
 * @default 0
 * 
 * @arg maxVariable
 * @text Max Variable
 * @desc Specify the variable which stores the maximum value for Input Number. If this is specified, Max Value is ignored.
 * @type variable
 * @default 0
 *

スポンサードリンク

-MZ plugins

Copyright© PGMZ - The Community-Driven Plugin Library for RPG Maker MZ , 2026 All Rights Reserved.