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

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

MZ plugins

NRP Hide Touch Button - NRP_HideTouchButton.js

Plugin desc : v1.00 Hide buttons and areas for touch UI.

License :
・Copyright: Retained
・Commercial Use: Allowed
・Modification: Allowed
・Redistribution: Allowed
・Details: See Download Page / In-plugin documentation

Author : Takeshi Sunagawa (https://newrpg.seesaa.net/)

Website : https://github.com/NewRPGProject/MZMV_Plugin/blob/main/NRP_HideTouchButton.js

Desc page : https://newrpg.seesaa.net/article/502758965.html

Download Page : https://raw.githubusercontent.com/NewRPGProject/MZMV_Plugin/main/NRP_HideTouchButton.js

File name : NRP_HideTouchButton.js

Help of plugin :

Hide buttons and areas for touch UI.
 * 
 * In RPG Maker MZ, buttons for touch UI are displayed as standard
 * and can be used with mouse or phone controls.
 * 
 * If you plan to publish your work for smartphones,
 * this feature is useful, but otherwise there are several problems.
 * 
 * - If keyboard or gamepad operation is assumed, it will get in the way.
 * - The touch UI can be turned off in the options,
 *   but it leaves an unnatural blank space.
 * - If mouse operation is assumed, the cancel button is unnecessary
 *   because it can be substituted by right-clicking.
 *  ※However, a page switching button might be useful?
 * - On the other hand, if the touch UI is turned off,
 *   numerical input (including shop) and its confirmation
 *   will not be possible at all, even with the mouse.
 * 
 * Fine-tuning addresses those issues.
 * 
 * -------------------------------------------------------------------
 * [Usage]
 * -------------------------------------------------------------------
 * By default, the Cancel, Page Switch, and Menu buttons will be hidden,
 * and the margins for them will not be displayed.
 * On the other hand, the buttons for numeric input can be used
 * without any problem as they are.
 * The touch UI items on the options screen will also be hidden
 * as they are no longer needed.
 * 
 * If you wish to leave the page switching button in place
 * in anticipation of mouse operation,
 * you can leave it displayed or adjust its position.
 * However, it may be a bit difficult to handle with just this plugin.
 * 
 * -------------------------------------------------------------------
 * [Notice]
 * -------------------------------------------------------------------
 * The optional touch UI is forced on to prevent accidents
 * when applied to save data in progress.
 * 
 * The purpose of this plugin is not to disable the touch UI,
 * but to preserve the minimum necessary functionality,
 * so it is not good if it is turned off.
 * 
 * Also, when "HideOption" is turned on, be careful not to duplicate
 * a similar function with another plugin (CustomizeConfigDefault.js).
 * The number of lines displayed for options may be out of order.
 * 
 * -------------------------------------------------------------------
 * [Terms]
 * -------------------------------------------------------------------
 * There are no restrictions.
 * Modification, redistribution freedom, commercial availability,
 * and rights indication are also optional.
 * The author is not responsible,
 * but will deal with defects to the extent possible.
 * 
 * @-----------------------------------------------------
 * @ [Plugin Parameters]
 * @-----------------------------------------------------
 * 
 * @param HideCancelButton
 * @type boolean
 * @default true
 * @desc Hide the Cancel button.
 * 
 * @param HidePageButton
 * @type boolean
 * @default true
 * @desc Hide the page switching (actor switching) button.
 * 
 * @param HideMenuButton
 * @type boolean
 * @default true
 * @desc Hide the menu call button.
 * 
 * @param HideNumberButton
 * @type boolean
 * @default false
 * @desc Hides the numeric input buttons.
 * It is recommended to leave them off as they are.
 * 
 * @param HideTouchArea
 * @type boolean
 * @default true
 * @desc Hides the area for the touch UI, eliminating extra white space.
 * 
 * @param HideOption
 * @type boolean
 * @default true
 * @desc Remove touch UI from option items.
 * 
 * @param OptionForceOn
 * @type boolean
 * @default true
 * @desc Force on touch UI for optional items. Prevents accidents caused by applying during the process.
 * 
 * @param PageButtonAdjustX
 * @type number @min -999 @max 999
 * @default 0
 * @desc Adjust the X coordinate of the page switching button.
 * 
 * @param PageButtonAdjustY
 * @type number @min -999 @max 999
 * @default 0
 * @desc Adjust the Y coordinate of the page switching button.

スポンサードリンク

-MZ plugins

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