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

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

MZ plugins

Cursor Application To Button Picture - CursorApplicationToButtonPicture.js

Plugin desc : Adds a cursor sptrite to a button picture when selected.

License : MIT License

Author : nz_prism

Website : https://github.com/nz-prism/RPG-Maker-MZ/blob/master/CursorApplicationToButtonPicture/js/plugins/CursorApplicationToButtonPicture.js

Desc page : https://github.com/nz-prism/RPG-Maker-MZ/blob/master/CursorApplicationToButtonPicture/js/plugins/CursorApplicationToButtonPicture.js

Download Page : https://raw.githubusercontent.com/nz-prism/RPG-Maker-MZ/master/CursorApplicationToButtonPicture/js/plugins/CursorApplicationToButtonPicture.js

File name : CursorApplicationToButtonPicture.js

Help of plugin :

* @target MZ
 * @base ButtonPicture
 * @orderAfter ButtonPicture
 * @plugindesc Adds a cursor sptrite to a button picture when selected.
 * @author nz_prism
 * @url https://github.com/nz-prism/RPG-Maker-MZ/blob/master/CursorApplicationToButtonPicture/js/plugins/CursorApplicationToButtonPicture.js
 *
 * @help CursorApplicationToButtonPicture.js
 * ver. 1.2.2
 * 
 * [History]
 * 02/24/2021 1.0.0 Released
 * 02/25/2021 1.1.0 Corrected some glitches and implemented Border line offset and Cursor SE.
 * 05/15/2021 1.2.0 Added cursor SE plugin-parameters.
 * 06/22/2021 1.2.1 Sub-folder compatibility for RMMZ 1.3.0 or later
 * 07/06/2021 1.2.2 Supported sub-folder improvement of RMMZ 1.3.2
 *
 * This plugin provides a functionality to add a cursor sprite to
 * a button picture.
 * You can choose an image file (place an image in img/system) or an enclosing rectangle for a cursor.
 * 
 * This plugin requires ButtonPicture.js.
 * Place this plugin under ButtonPicture.js.
 *
 * Use it in the following procedure.
 *   1. Execute the procedure as described in ButonPicture.js.
 *   2. Configure the plugin parameters.
 *   3. When a mouse cursor enters a button picture, a cursor sprite appears.
 *
 * Special thanks to Yoji Ojima, who created ButtonPicture.js.
 * This plugin is released under the MIT License.
 * https://opensource.org/licenses/mit-license.php
 * 
 * 
 * @param useSystemCursorSe
 * @text Use System Cursor SE
 * @desc If ON, the system cursor SE will be used for the button pictures. If OFF, set the cursor SE.
 * @default true
 * @type boolean
 * 
 * @param buttonPictureCursorSe
 * @text Cursor SE
 * @desc If Use System Cursor SE is OFF, set an SE played for cursoring button pictures.
 * @default {”name”:””,”pan”:”0”,”pitch”:”100”,”volume”:”90”}
 * @type struct<se>
 * 
 * @param useCursorImage
 * @text Use Cursor Image
 * @desc Set whether you use a cursor image.
 * @default false
 * @type boolean
 * 
 * @param cursorImageName
 * @text Cursor Image Name
 * @desc If you use a cursor image, choose a image file.
 * @default Cursor
 * @type file
 * @dir img/system/
 * 
 * @param isCursorXRight
 * @text Place Cursor Right
 * @desc If you use a cursor image, set whether you place the cursor at the right of the button picture. If false, it’s placed at the left.
 * @default true
 * @type boolean
 * 
 * @param isCursorYDown
 * @text Place Cursor Down
 * @desc If you use a cursor image, set whether you place the cursor at the down of the button picture. If false, it’s placed at the up.
 * @default true
 * @type boolean
 * 
 * @param borderWidth
 * @text Border Line Width
 * @desc If you don’t use a cursor image, set the width of the border line.
 * @default 3
 * @type number
 * @min 0
 * 
 * @param isBorderOffset
 * @text Border Line Offset
 * @desc If you don’t use a cursor image, specify whether the border line offsets outside the picture.
 * @default false
 * @type boolean
 * 
 * @param borderColor
 * @text Border Line Color
 * @desc If you don’t use a cursor image, set the color of the border line.
 * @default {”red”:”255”,”green”:”255”,”blue”:”255”,”alpha”:”0.5”}
 * @type struct<rgba>
 *

スポンサードリンク

-MZ plugins

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