MZ用プラグイン

鳶嶋式 ウィンドウの表示をベクトル描画 - TF_VectorWindow.js

シェア用テキスト:
▼鳶嶋式 ウィンドウの表示をベクトル描画(とんび@鳶嶋工房様作) - TF_VectorWindow.js
https://plugin-mz.fungamemake.com/archives/6961
ウィンドウをPNG画像を使わずに描画する。背景のグラデーションや枠線の太さや形など指定が可能。

ふりがな:うぃんどうのひょうじをべくとるびょうが

機能概要: ウィンドウをPNG画像を使わずに描画する。背景のグラデーションや枠線の太さや形など指定が可能。

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

作者:とんび@鳶嶋工房

作者サイト:http://tonbi.jp/

解説ページ:https://github.com/tonbijp/RPGMakerMZ?tab=readme-ov-fil…

ダウンロードページ:https://raw.githubusercontent.com/tonbijp/RPGMakerMZ/ma…

ファイル名:TF_VectorWindow.js

プラグインのヘルプ:

/*:ja
 * @target MZ
 * @plugindesc ウィンドウの表示をベクトル描画
 * @author とんび﹫鳶嶋工房(tonbi.jp)
 * @url https://github.com/tonbijp/RPGMakerMZ/blob/master/TF_VectorWindow.js
 * @base PluginCommonBase
 * @orderAfter PluginCommonBase
 * 
 * @param preset @text ウィンドウ設定
 * @desc ウィンドウ設定のプリセット
 * (1:UI用、2:メッセージ用、3〜 : メッセージ変更用)
 * @type struct<WindowParam>[]
 * @default [”{”name”:”UI”,”shape”:”roundrect”,”margin”:”3”,”borderWidth”:”6”,”borderColor”:”#fff”,”decorSize”:”20”,”padding”:”12”,”bgColor”:”[\”#0008\”]”}”,”{”name”:”talk”,”shape”:”roundrect”,”margin”:”3”,”borderWidth”:”6”,”borderColor”:”#0ee”,”decorSize”:”20”,”padding”:”14”,”bgColor”:”[\”#0008\”,\”#000C\”]”}”,”{”name”:”thought”,”shape”:”roundrect”,”margin”:”6”,”borderWidth”:”2”,”borderColor”:”#666”,”decorSize”:”100”,”padding”:”16”,”bgColor”:”[\”#000a\”]”}”,”{”name”:”shout”,”shape”:”spike”,”margin”:”60”,”borderWidth”:”6”,”borderColor”:”#fff”,”decorSize”:”80”,”padding”:”74”,”bgColor”:”[\”#0006\”]”}”]
 * 
 * @param dropShadow @text ウィンドウの影
 * @type boolean @default true
 * @on 影あり(規定値) @off 影なし
 *
 * @param lineHeightRatio @text 行高さ
 * @desc 標準文字サイズを100%とした比率
 * 規定値:140
 * @type number @default 140
 * @min 100
 *
 * @param itemHeightRatio @text 項目高さ
 * @desc 標準文字サイズを100%とした比率
 * 規定値:160
 * @type number @default 160
 * 
 * @param messageFontSize @text メッセージフォントサイズ
 * @desc 
 * 規定値:30
 * @type number @default 30
 * @min 8
 *
 * @param nameFontSize @text 名前フォントサイズ
 * @desc 
 * 規定値:20
 * @type number @default 20
 * @min 8
 * 
 * @param nameWithFace @text 顔に名前表示
 * @type boolean @default true
 * @on 顔の下に表示(規定) @off 標準
 *
 * @param messageLines @text メッセージに表示する行数
 * @desc 
 * 規定値:3
 * @type number @default 3
 * @min 1
 *
 * @param messageView @text メッセージウィンドウ表示範囲
 * @desc 画面全体に対する x,y,幅,高さ の順の数値(ピクセル数)
 * 規定値:4,4,808,616
 * @type string @default 4,4,808,616
 *
 * @param tailLength @text シッポの長さ
 * @desc フキダシのシッポの長さ(ピクセル数)
 * 規定値:36
 * @type string @default 36
 * 
 * @param tailWidth @text シッポの幅
 * @desc フキダシのシッポの幅(ピクセル数)
 * 規定値:20
 * @type string @default 20
 *
 * @================================================
 * @help
 * ウィンドウをPNG画像を使わずに描画する。
 * 背景のグラデーションや枠線の太さや形など指定が可能。
 *
 * 標準の[文章の表示]コマンドを使う前に
 * プラグインコマンド[ウィンドウの準備]を実行し、
 * ウィンドウタイプや顔グラフィックの左右位置を指定する。
 * 
 * ※ PluginCommonBase 定義によりパラメータや引数に V[n] を使えます。
 * 
 * @================================================
 * @command setWindow @text ウィンドウの準備
 * @desc [文章の表示]コマンドの前に実行すること。
 * 一回表示されるとウィンドウタイプは規定値に戻る。
 *
 * @arg windowType @text ウィンドウタイプ
 * @desc プラグインパラメータで設定した番号か名前
 * あらかじめ UI, talk, thought, shout がある
 * @type combo @default shout
 * @option UI @option talk @option thought @option shout
 *
 * @arg faceAlign @text 顔位置
 * @desc 
 * 規定値:left
 * @type select @default left
 * @option 左外 @value beyondLeft
 * @option 左 @value left
 * @option 右 @value right
 * @option 右外 @value beyondRight
 *
 * @arg pos @text ウィンドウ位置
 * @desc 画面左上から x,y の座標
 * command は[文章の表示]に従う
 * @type combo @default command
 * @option command
 *
 * @arg continuousPos @text 表示位置継続
 * @desc [ウィンドウ位置]で指定した座標を
 * 継続した[文章の表示]に適用する。
 * @type boolean @default true
 * @on 継続(規定値) @off 単体
 * 
 * 
 * @command setSpeachBalloon @text フキダシの準備
 * @desc [文章の表示]コマンドの前に実行すること。
 * 一回表示されるとウィンドウタイプは規定値に戻る。
 *
 * @arg windowType @text ウィンドウタイプ
 * @desc プラグインパラメータで設定した番号か名前
 * あらかじめ UI, talk, thought, shout がある
 * @type combo @default shout
 * @option UI @option talk @option thought @option shout
 *
 * @arg pointerAlign @text シッポ位置
 * @desc autoは[文章の表示]の指定と[顔位置]指定から決定されます
 * 規定値:auto
 * @type select @default auto
 * @option 上の左側 @value NW
 * @option 上の中央 @value NC
 * @option 上の右側 @value NE
 * @option 下の左側 @value SW
 * @option 下の中央 @value SC
 * @option 下の右側 @value SE
 * @option 左の上側 @value WN
 * @option 左の中央 @value WC
 * @option 左の下側 @value WS
 * @option 右の上側 @value EN
 * @option 右の中央 @value EC
 * @option 右の下側 @value ES
 * 
 * @arg faceAlign @text 顔位置
 * @desc 
 * 規定値:left
 * @type select @default left
 * @option 左外 @value beyondLeft
 * @option 左 @value left
 * @option 右 @value right
 * @option 右外 @value beyondRight
 *
 * @arg pos @text フキダシ位置
 * @desc 画面左上から x,y の座標(例:”200,100”)
 * 規定値の command は[文章の表示]に従う
 * @type combo @default command
 * @option command
 *
 * @arg continuousPos @text 表示位置継続
 * @desc [ウィンドウ位置]で指定した座標を
 * 継続した[文章の表示]に適用する。
 * @type boolean @default true
 * @on 継続(規定値) @off 単体
 */

スポンサードリンク

スポンサードリンク

-MZ用プラグイン

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