
YEP Gab Window - YEP_GabWindow.js

▼YEP Gab Window(Yanfly様作) - YEP_GabWindow.js
https://plugin.fungamemake.com/archives/10656
メッセージウィンドウ無しで画面上におしゃべりを表示
ふりがな:ぎゃぶうぃんどう
機能概要: メッセージウィンドウ無しで画面上におしゃべりを表示
利用規約(ライセンス):http://www.yanfly.moe/wiki/Category:Yanfly_Engine_Plugi…
作者:Yanfly
作者サイト:http://yanfly.moe/
解説ページ:https://fungamemake.com/archives/1158
ダウンロードページ:http://yanfly.moe/2015/12/18/yep-46-gab-window/
ファイル名:YEP_GabWindow.js
備考:準公式採用プラグインのアップデート
プラグインのヘルプ:
/*:ja * @plugindesc v1.06 メッセージウィンドウ無しで画面上におしゃべりを表示できるプラグインです。 * @author Yanfly Engine Plugins * * @param ---一般--- * @default * * @param Gab Font Name * @parent ---一般--- * @desc Gab Windowで使われるフォント名を設定 * デフォルト: GameFont * @default GameFont * * @param Gab Font Size * @parent ---一般--- * @type number * @min 1 * @desc Gab Windowで使われるフォントサイズを設定 * デフォルト: 28 * @default 28 * * @param Character X Pos * @parent ---一般--- * @type number * @desc キャラクター表示のX座標を設定 * デフォルト: 36 * @default 36 * * @param Character Y Pos * @parent ---一般--- * @type number * @desc キャラクター表示のY座標を設定 * デフォルト: 60 * @default 60 * * @param Base Wait Time * @parent ---一般--- * @type number * @min 0 * @desc Gab Windowの表示が続く最小フレーム数を設定 * デフォルト: 90 * @default 90 * * @param Time Per Character * @parent ---一般--- * @type number * @min 0 * @desc キャラクター毎に追加されるフレーム数を設定 * デフォルト: 4 * @default 4 * * @param Fade Rate * @parent ---一般--- * @type number * @min 1 * @desc Gab Windowがフェードアウトする速さを設定 * デフォルト: 16 * @default 16 * * @param Anti-Repeat * @parent ---一般--- * @type boolean * @on 繰返し禁止 * @off 繰返し許可 * @desc 同じ設定のGab Windowがキュー処理されるのを防ぎますか? * 繰返し許可 - false 繰返し禁止 - true * @default true * * @param ---マップ時--- * @default * * @param Map Y Location * @parent ---マップ時--- * @type number * @desc Gab Window表示のY座標を設定 * デフォルト: 72 * @default 72 * * @param Map Dim Color 1 * @parent ---マップ時--- * @desc マップ時に用いられる、背景色1 を設定 * デフォルト: rgba(0, 0, 0, 0.6) * @default rgba(0, 0, 0, 0.6) * * @param Map Dim Color 2 * @parent ---マップ時--- * @desc マップ時に用いられる、背景色2 を設定 * デフォルト: rgba(0, 0, 0, 0.3) * @default rgba(0, 0, 0, 0.3) * * @param ---戦闘--- * @default * * @param Battle Y Location * @parent ---戦闘--- * @type number * @desc Gab Window表示のY座標を設定 * デフォルト: 108 * @default 108 * * @param Battle Dim Color 1 * @parent ---戦闘--- * @desc 戦闘時に用いられる、背景色1 を設定 * デフォルト: rgba(0, 0, 0, 0.6) * @default rgba(0, 0, 0, 0.6) * * @param Battle Dim Color 2 * @parent ---戦闘--- * @desc 戦闘時に用いられる、背景色2 を設定 * デフォルト: rgba(0, 0, 0, 0) * @default rgba(0, 0, 0, 0) * * @help * 翻訳:ムノクラ * https://munokura.tk/ * https://twitter.com/munokura/ * * ============================================================================ * Introduction * ============================================================================ * * ウィンドウを必要とするまでもないような、おしゃべりを表示したいですか? * ”Gab Window”はメッセージウィンドウ外、画面の隅で、そのようなおしゃべりを表示 * させることができます。テキストは一時的に画面上に表示され、その後消えます。 * 何か他の要因が介入しない限りは、また表れることもありません。 * * MVでの新しい要素としては、あなたのゲーム内のGab Windowに音を付けることが * できます。また、複数のおしゃべりをまとめてキュー処理し、会話のようにつなげる * こともできます。その際、現在表示されているおしゃべりは、次のおしゃべりが * ロードされるタイミングでフェードアウトします。 * * ============================================================================ * Instructions * ============================================================================ * * ”Gab Window”の使い方はとってもシンプルです。デフォルト設定では、マップでも * バトルシーンでも使うことができるようになっています。表示の指示・設定をする * には、下記のプラグインコマンドを用いてください。 * * プラグインコマンド: * * --- セットアップコマンド --- * * GabText text * Gab Windowに、このテキストを表示します。 * Gab Window内ではテキストコードを使うこともできます。 * * GabFaceName filename * 顔グラフィックを表示したい場合は、 * このコマンドを用いてファイル名を指定します。 * * GabFaceIndex x * 上記のコマンドと一緒に用いることで、 * その顔グラフィックがどのインデックスを使うかを指定します。 * * GabSpriteName filename * 特定のキャラクタースプライトを表示したい時は、 * このコマンドを使ってファイル名を指定します。 * * GabSpriteIndex x * 上記のコマンドと一緒に用いることで、 * そのスプライトがどのインデックスを使うかを指定します。 * * GabActor x * GabActorFace x * アクター x の顔グラフィックを表示します。(xにはIDを入れてください) * * GabActorSprite x * アクター x のスプライトを表示します。(xにはIDを入れてください) * * GabParty x * GabPartyFace x * パーティメンバー x の顔グラフィックを表示します。 * (xにはポジションを入れてください) * * GabPartySprite x * パーティメンバー x のスプライトを表示します。 * (xにはポジションを入れてください) * * GabSound filename * SEフォルダから、filenameで指定したサウンドを再生します。 * * WaitForGab * すべてのGabが完了するまでゲームを待機させます。 * * --- Display Commands --- * * ShowGab * 一旦上記の設定が完了したら、このプラグインコマンドを使ってGab Windowを * 起動し、上記のデータを表示します。これによりおしゃべりがキューに追加され、 * もし他のおしゃべりが再生されている場合は、そのうしろに並ぶようになります。 * * *注:複数の”ShowGabs”が使用されると、それらは一列に並びます。現在再生され * ているおしゃべりは、次のおしゃべりに移る前に終了します。新たに追加しようと * したおしゃべりが、たまたまロード済のおしゃべりと全く同じ設定だった場合、 * 会話内の重複を防ぐため、新規追加は行われません。 * * ForceGab * 一旦上記の設定が完了したら、このプラグインコマンドを使って他の全ての他の * おしゃべりを消去し、上記のデータを表示します。 * * ClearGab * 現在のおしゃべりのGab Windowと、待機中のおしゃべりを全て消去します。 * * ============================================================================ * Changelog * ============================================================================ * * Version 1.06: * - Updated for RPG Maker MV version 1.5.0. * * Version 1.05: * - Added 'WaitForGab' plugin command. This plugin command causes the game to * wait until all gabs are finished playing. * * Version 1.04: * - Fixed an issue with ForceGab that didn't make it work properly with text * coded Gabs. * * Version 1.03a: * - Fixed a bug with GabSound that didn't load the proper sound filenames. * - Fixed the time count for Gabs to not include text codes. * * Version 1.02a: * - Added functionality for battle gabs to be saved when going into other * scenes and returning to battle. * - Added GabSwitch x to enable switch x when the gab finishes playing. * * Version 1.01: * - Added 'GabParty x' and 'GabPartySprite x' plugin commands to help with * those without dynamic party setups. * * Version 1.00: * - Finished Plugin! * */
