MZ用プラグイン

アイコンボタン - IconButton.js

シェア用テキスト:
▼アイコンボタン(@BananaPepperTK様作) - IconButton.js
https://plugin-mz.fungamemake.com/archives/1779
システムアイコンをボタン化します。

ふりがな:あいこんぼたん

機能概要: システムアイコンをボタン化します。

利用規約(ライセンス): MITライセンス

作者:@BananaPepperTK

作者サイト:https://twitter.com/BananaPepperTK

解説ページ:https://github.com/sevenspice/IconButton

ファイル名:IconButton.js

プラグインのヘルプ:

/*:ja
 * @target MZ
 * @plugindesc アイコンボタンプラグイン。
 * @author @BananaPepperTK
 *
 * @help システムアイコンをボタン化します。
 *
 * 詳細
 *   https://github.com/sevenspice/IconButton
 *
 * @param FreeCoordinates
 * @desc アイコンの配置指定方法。 true なら表示位置をコマンドで直接指定する。
 * @default false
 *
 * @param IconSet
 * @desc 使用するアイコンセットのスプライトシート名。何も指定されない場合はデフォルトのアイコンセットが使用される。
 *
 * @param IconSize
 * @desc スプライトシートにあるアイコンの1辺のピクセル数。
 * @default 32
 *
 * @param IconCount
 * @desc スプライトシートにあるアイコンの横一列の最大数。
 * @default 16
 *
 * @param IconMarginLeft
 * @desc アイコンの左マージン。
 * @default 10
 *
 * @param IconMarginRight
 * @desc アイコンの右マージン。
 * @default 10
 *
 * @param IconMarginTop
 * @desc アイコンの上マージン
 * @default 10
 *
 * @param IconMarginBottom
 * @desc アイコンの下マージン
 * @default 10
 *
 * @command create
 * @text 生成
 * @desc アイコンを生成します。
 *
 * @arg id
 * @type number
 * @text ボタンID
 * @desc ボタンを識別するID値。
 *
 * @arg eventId
 * @type common_event
 * @text コモンイベントID
 * @desc 実行するコモンイベントID。
 *
 * @arg iconId
 * @type number
 * @text アイコンID
 * @desc 表示するアイコンのID。
 *
 * @arg location
 * @type string
 * @default rightBottom
 * @text 配置箇所
 * @desc 画面の四隅のどこかに配置する。 leftTop or leftBottom or rightTop or rightBottom
 *
 * @arg x
 * @type number
 * @default 0
 * @text x座標
 * @desc 直接指定。
 * 
 * @arg y
 * @type number
 * @default 0
 * @text y座標
 * @desc 直接指定。
 * 
 * @arg scale
 * @type number
 * @default 1.0
 * @text 拡大・縮小率
 * @desc 表示するアイコンの拡大・縮小率。
 *
 * @arg text
 * @type string
 * @text テキスト
 * @desc アイコンの下部に表示するテキスト。
 *
 * @arg fontSize
 * @type number
 * @default 14
 * @text フォントサイズ
 * @desc アイコンの下部に表示するテキストのフォントサイズ。
 *
 * @command show
 * @text 表示
 * @desc アイコンを表示します。
 *
 * @arg id
 * @type number
 * @text ボタンID
 * @desc ボタンを識別するID値。
 *
 * @command update
 * @text 更新
 * @desc アイコンを更新します。
 *
 * @arg id
 * @type number
 * @text ボタンID
 * @desc ボタンを識別するID値。
 *
 * @arg x
 * @type number
 * @default 0
 * @text x座標
 * @desc 直接指定。
 * 
 * @arg y
 * @type number
 * @default 0
 * @text y座標
 * @desc 直接指定。
 *
 * @arg scale
 * @type number
 * @default 1.0
 * @text 拡大・縮小率
 * @desc 表示するアイコンの拡大・縮小率。
 *
 * @arg text
 * @type string
 * @text テキスト
 * @desc アイコンの下部に表示するテキスト。
 *
 * @arg fontSize
 * @type number
 * @default 14
 * @text フォントサイズ
 * @desc アイコンの下部に表示するテキストのフォントサイズ。
 *
 * @command hide
 * @text 非表示
 * @desc アイコンを非表示にします。
 *
 * @arg id
 * @type number
 * @text ボタンID
 * @desc ボタンを識別するID値。
 * 
 */

スポンサードリンク

スポンサードリンク

-MZ用プラグイン

Copyright© #ツクプラMZ , 2026 All Rights Reserved.