//============================================================================= // TMVplugin - ウィンドウキャプション // 作者: tomoaky (http://hikimoki.sakura.ne.jp/) // Version: 0.31b // 最終更新日: 2016/03/04 //============================================================================= /*: @plugindesc Adds a caption to the top left of the window. @author tomoaky @url https://github.com/munokura/tomoaky-MV-plugins @license MIT @help English Help Translator: munokura This is an unofficial English translation of the plugin help, created to support global RPG Maker users. Feedback is welcome to improve translation quality (see: https://github.com/munokura/tomoaky-MV-plugins ). Original plugin by tomoaky. ----- Place an image called TMWindowCaption.png in the img/system folder. We'll use this image to create the caption frame. The image size is 48x32, with the 16 dots on each side defining the caption's edges. The center 16 dots, enlarged as needed, will define the caption's center. https://github.com/munokura/tomoaky-MV-plugins/tree/master/img/system The font name to be set in captionFontFace must first be added by editing fonts/gamefont.css. Copy and paste the original GameFont setting (four lines) into the following: font-family: font name; src: url("font filename"); Rewrite the above two lines (you'll end up with eight lines). Once you've edited gamefont.css, place a font file with the same name as the font filename you set in the fonts folder and set captionFontFace to that font name. An error may occur if the font filename contains double-byte characters, such as Japanese. Specify the captionFontColor and captionOutlineColor using the same color numbers as the control character \C[n]. Leave the parameter blank for windows in which you do not want captions to be displayed. The skill type name and equipment type name are automatically set for the skill list and equipment scene item list, respectively. To change the caption position using control characters, use the parameter. Control Character: \WC[String] # By entering this control character in the text display command, you can change the message window caption to the specified string. Control Character (for Captions): \WCVR # Displays the caption upside down and over the window. \WCC # Centers the caption horizontally. \WCL # Sets the caption horizontally to the left edge of the window. \WCR # Sets the caption horizontally to the right edge of the window. \WCB # Sets the caption vertically to the bottom edge of the window. In addition, the following control characters can be used in captions: \\ \V[n] \N[n] \P[n] \G There are no plugin commands. @param captionShiftX @desc Caption X offset Default: 18 @default 18 @param captionWidth @desc Maximum caption width Default: 320 @default 320 @param captionFontFace @desc Font to use for captions. Default: GameFont @default GameFont @param captionFontSize @desc Caption font size Default: 18 @default 18 @param messageCaptionFontSize @desc Message window caption font size Default: 28 @default 28 @param captionFontColor @desc Caption text color Default: 15 @default 15 @param captionOutlineWidth @desc Caption border width Default: 4 @default 4 @param captionOutlineColor @desc Caption border color Default: 8 @default 8 @param captionHelp @desc Caption Window_Help Initial value: Help @default Help @param captionGold @desc Caption Window_Gold Initial value: Gold @default Gold @param captionMenuCommand @desc Caption Window_MenuCommand Initial value: Command @default Command @param captionMenuStatus @desc Caption Window_MenuStatus Initial value: Status @default Status @param captionMenuActor @desc Caption Window_MenuActor Initial value: Character selection @default Character selection @param captionItemCategory @desc Caption Window_ItemCategory Initial value: Category @default Category @param captionItemList_item @desc Caption Window_ItemList(Item Category) Initial value: Item @default Item @param captionItemList_weapon @desc Caption Window_ItemList(Weapon Category) Default: Weapon @default Weapon @param captionItemList_armor @desc Caption Window_ItemList(Armor Category) Default: Armor @default Armor @param captionItemList_keyItem @desc Caption Window_ItemList(Key Item Category) Default: Key Item @default Key Item @param captionSkillType @desc Caption Window_SkillType Default: Skill type @default Skill type @param captionSkillStatus @desc Caption Window_SkillStatus Initial value: Status @default Status @param captionSkillList @desc Caption Window_SkillList Initial value: \WCL (This parameter is for adding control characters) @default \WCL @param captionEquipStatus @desc Caption Window_EquipStatus Initial value: Status @default Status @param captionEquipCommand @desc Caption Window_EquipCommand Initial value: Command @default Command @param captionEquipSlot @desc Caption Window_EquipSlot Default: Equip @default Equip @param captionEquipItem @desc Caption Window_EquipItem Initial value: \WCL (This parameter is for adding control characters) @default \WCL @param captionStatus @desc Caption Window_Status Initial value: Status @default Status @param captionOptions @desc Caption Window_Options Initial value: Option @default Option @param captionSavefileList @desc Caption Window_SavefileList Initial value: Save file @default Save file @param captionShopCommand @desc Caption Window_ShopCommand Initial value: Command @default Command @param captionShopBuy @desc Caption Window_ShopBuy Default: Product @default Product @param captionShopNumber @desc Caption Window_ShopNumber Initial value: Quantity selection @default Quantity selection @param captionShopStatus @desc Caption Window_ShopStatus Initial value: Status @default Status @param captionNameEdit @desc Caption Window_NameEdit Initial value: Name @default Name @param captionNameInput @desc Caption Window_NameInput Initial value: Text input @default Text input @param captionChoiceList @desc Caption Window_ChoiceList Initial value: Choices @default Choices @param captionNumberInput @desc Caption Window_NumberInput Initial value: Number input @default Number input @param captionEventItem @desc Caption Window_EventItem (normal item) Initial value: Item @default Item @param captionEventItem_key @desc Caption Window_EventItem(Important) Default: Key Item @default Key Item @param captionEventItem_A @desc Caption Window_EventItem(Hidden Item A) Initial value: Hidden Item A @default Hidden Item A @param captionEventItem_B @desc Caption Window_EventItem(Hidden Item B) Initial value: Hidden Item B @default Hidden Item B @param captionPartyCommand @desc Caption Window_PartyCommand Initial value: Command @default Command @param captionActorCommand @desc Caption Window_ActorCommand Initial value: Command @default Command @param captionBattleStatus @desc Caption Window_BattleStatus Initial value: Status @default Status @param captionBattleActor @desc Caption Window_BattleActor Default: Character Selection @default Character Selection @param captionBattleEnemy @desc Caption Window_BattleEnemy Default: Enemy selection @default Enemy selection @param captionBattleSkill @desc Caption Window_BattleSkill Default: Skill @default Skill @param captionBattleItem @desc Caption Window_BattleItem Initial value: Item @default Item @param captionTitleCommand @desc Caption Window_TitleCommand Initial value: Command @default Command @param captionGameEnd @desc Caption Window_GameEnd Initial Value: Command @default Command */ /*:ja @plugindesc ウィンドウの左上にキャプションを追加します。 @author tomoaky @url https://github.com/munokura/tomoaky-MV-plugins @license MIT @help TMWindowCaption.png という画像を img/system フォルダに置いてください、 この画像を元にキャプションのフレームを作成します。 画像サイズは 48*32、左右の 16 ドットがキャプションの両端となり、 中央 16 ドットを必要なだけ拡大したものがキャプションの中央部分になります。 https://github.com/munokura/tomoaky-MV-plugins/tree/master/img/system captionFontFace に設定するフォント名は、事前に fonts/gamefont.css を 編集して追加する必要があります。 元から設定されている GameFont をまるごと(4行)コピペして、 font-family: フォント名; src: url("フォントのファイル名"); 上記2行を書き換えてください。(最終的には8行になります) gamefont.css が編集できたら、設定した『フォントのファイル名』と同名の フォントファイルを fonts フォルダに置き、captionFontFace に 『フォント名』を設定してください。 フォントのファイル名に日本語などの2byte文字が含まれていると エラーが発生する場合があります。 captionFontColor と captionOutlineColor は制御文字 \C[n] と 同じ色番号で指定してください。 キャプションを表示したくないウィンドウはパラメータを空にしてください。 スキルリストと装備シーンのアイテムリストはそれぞれ スキルタイプ名、装備タイプ名が自動で設定されます。 制御文字を使ってキャプションの位置を変更する場合はパラメータ 制御文字: \WC[文字列] # 文章の表示コマンドにこの制御文字を書き込むと メッセージウィンドウのキャプションを 指定した文字列に変更することができます。 制御文字(キャプション用): \WCVR # キャプションを上下反転してウィンドウにかぶせて 表示するようになります。 \WCC # キャプションの左右位置をウィンドウ中央に設定します。 \WCL # キャプションの左右位置をウィンドウ左端に設定します。 \WCR # キャプションの左右位置をウィンドウ右端に設定します。 \WCB # キャプションの上下位置をウィンドウ下端に設定します。 この他、キャプションには以下の制御文字が使用可能です。 \\ \V[n] \N[n] \P[n] \G プラグインコマンドはありません。 @param captionShiftX @desc キャプションの X 座標補正値 初期値: 18 @default 18 @param captionWidth @desc キャプションの最大幅 初期値: 320 @default 320 @param captionFontFace @desc キャプションに使用するフォント 初期値: GameFont @default GameFont @param captionFontSize @desc キャプションの文字サイズ 初期値: 18 @default 18 @param messageCaptionFontSize @desc メッセージウィンドウのキャプションの文字サイズ 初期値: 28 @default 28 @param captionFontColor @desc キャプションの文字色 初期値: 15 @default 15 @param captionOutlineWidth @desc キャプションの縁取りの幅 初期値: 4 @default 4 @param captionOutlineColor @desc キャプションの縁取りの色 初期値: 8 @default 8 @param captionHelp @desc キャプション Window_Help 初期値: ヘルプ @default ヘルプ @param captionGold @desc キャプション Window_Gold 初期値: 所持金 @default 所持金 @param captionMenuCommand @desc キャプション Window_MenuCommand 初期値: コマンド @default コマンド @param captionMenuStatus @desc キャプション Window_MenuStatus 初期値: ステータス @default ステータス @param captionMenuActor @desc キャプション Window_MenuActor 初期値: キャラクター選択 @default キャラクター選択 @param captionItemCategory @desc キャプション Window_ItemCategory 初期値: カテゴリー @default カテゴリー @param captionItemList_item @desc キャプション Window_ItemList(アイテムカテゴリ) 初期値: アイテム @default アイテム @param captionItemList_weapon @desc キャプション Window_ItemList(武器カテゴリ) 初期値: 武器 @default 武器 @param captionItemList_armor @desc キャプション Window_ItemList(防具カテゴリ) 初期値: 防具 @default 防具 @param captionItemList_keyItem @desc キャプション Window_ItemList(大事なものカテゴリ) 初期値: 大事なもの @default 大事なもの @param captionSkillType @desc キャプション Window_SkillType 初期値: スキルタイプ @default スキルタイプ @param captionSkillStatus @desc キャプション Window_SkillStatus 初期値: ステータス @default ステータス @param captionSkillList @desc キャプション Window_SkillList 初期値: \WCL(このパラメータは制御文字の追加用です) @default \WCL @param captionEquipStatus @desc キャプション Window_EquipStatus 初期値: ステータス @default ステータス @param captionEquipCommand @desc キャプション Window_EquipCommand 初期値: コマンド @default コマンド @param captionEquipSlot @desc キャプション Window_EquipSlot 初期値: 装備 @default 装備 @param captionEquipItem @desc キャプション Window_EquipItem 初期値: \WCL(このパラメータは制御文字の追加用です) @default \WCL @param captionStatus @desc キャプション Window_Status 初期値: ステータス @default ステータス @param captionOptions @desc キャプション Window_Options 初期値: オプション @default オプション @param captionSavefileList @desc キャプション Window_SavefileList 初期値: セーブファイル @default セーブファイル @param captionShopCommand @desc キャプション Window_ShopCommand 初期値: コマンド @default コマンド @param captionShopBuy @desc キャプション Window_ShopBuy 初期値: 商品 @default 商品 @param captionShopNumber @desc キャプション Window_ShopNumber 初期値: 個数選択 @default 個数選択 @param captionShopStatus @desc キャプション Window_ShopStatus 初期値: ステータス @default ステータス @param captionNameEdit @desc キャプション Window_NameEdit 初期値: 名前 @default 名前 @param captionNameInput @desc キャプション Window_NameInput 初期値: 文字入力 @default 文字入力 @param captionChoiceList @desc キャプション Window_ChoiceList 初期値: 選択肢 @default 選択肢 @param captionNumberInput @desc キャプション Window_NumberInput 初期値: 数値入力 @default 数値入力 @param captionEventItem @desc キャプション Window_EventItem(通常アイテム) 初期値: アイテム @default アイテム @param captionEventItem_key @desc キャプション Window_EventItem(大事なもの) 初期値: 大事なもの @default 大事なもの @param captionEventItem_A @desc キャプション Window_EventItem(隠しアイテムA) 初期値: 隠しアイテムA @default 隠しアイテムA @param captionEventItem_B @desc キャプション Window_EventItem(隠しアイテムB) 初期値: 隠しアイテムB @default 隠しアイテムB @param captionPartyCommand @desc キャプション Window_PartyCommand 初期値: コマンド @default コマンド @param captionActorCommand @desc キャプション Window_ActorCommand 初期値: コマンド @default コマンド @param captionBattleStatus @desc キャプション Window_BattleStatus 初期値: ステータス @default ステータス @param captionBattleActor @desc キャプション Window_BattleActor 初期値: キャラクター選択 @default キャラクター選択 @param captionBattleEnemy @desc キャプション Window_BattleEnemy 初期値: エネミー選択 @default エネミー選択 @param captionBattleSkill @desc キャプション Window_BattleSkill 初期値: スキル @default スキル @param captionBattleItem @desc キャプション Window_BattleItem 初期値: アイテム @default アイテム @param captionTitleCommand @desc キャプション Window_TitleCommand 初期値: コマンド @default コマンド @param captionGameEnd @desc キャプション Window_GameEnd 初期値: コマンド @default コマンド */ var Imported = Imported || {}; Imported.TMWindowCaption = true; (function() { var parameters = PluginManager.parameters('TMWindowCaption'); var captionShiftX = Number(parameters['captionShiftX']); var captionWidth = Number(parameters['captionWidth']); var captionFontFace = parameters['captionFontFace']; var captionFontSize = Number(parameters['captionFontSize']); var messageCaptionFontSize = Number(parameters['messageCaptionFontSize']); var captionFontColor = parameters['captionFontColor']; var captionOutlineWidth = Number(parameters['captionOutlineWidth']); var captionOutlineColor = parameters['captionOutlineColor']; var captionHelp = parameters['captionHelp']; var captionGold = parameters['captionGold']; var captionMenuCommand = parameters['captionMenuCommand']; var captionMenuStatus = parameters['captionMenuStatus']; var captionMenuActor = parameters['captionMenuActor']; var captionItemCategory = parameters['captionItemCategory']; var captionItemList_item = parameters['captionItemList_item']; var captionItemList_weapon = parameters['captionItemList_weapon']; var captionItemList_armor = parameters['captionItemList_armor']; var captionItemList_keyItem = parameters['captionItemList_keyItem']; var captionSkillType = parameters['captionSkillType']; var captionSkillStatus = parameters['captionSkillStatus']; var captionSkillList = parameters['captionSkillList']; var captionEquipStatus = parameters['captionEquipStatus']; var captionEquipCommand = parameters['captionEquipCommand']; var captionEquipSlot = parameters['captionEquipSlot']; var captionEquipItem = parameters['captionEquipItem']; var captionStatus = parameters['captionStatus']; var captionOptions = parameters['captionOptions']; var captionSavefileList = parameters['captionSavefileList']; var captionShopCommand = parameters['captionShopCommand']; var captionShopBuy = parameters['captionShopBuy']; var captionShopNumber = parameters['captionShopNumber']; var captionShopStatus = parameters['captionShopStatus']; var captionNameEdit = parameters['captionNameEdit']; var captionNameInput = parameters['captionNameInput']; var captionChoiceList = parameters['captionChoiceList']; var captionNumberInput = parameters['captionNumberInput']; var captionEventItem = parameters['captionEventItem']; var captionEventItem_key = parameters['captionEventItem_key']; var captionEventItem_A = parameters['captionEventItem_A']; var captionEventItem_B = parameters['captionEventItem_B']; var captionPartyCommand = parameters['captionPartyCommand']; var captionActorCommand = parameters['captionActorCommand']; var captionBattleStatus = parameters['captionBattleStatus']; var captionBattleActor = parameters['captionBattleActor']; var captionBattleEnemy = parameters['captionBattleEnemy']; var captionBattleSkill = parameters['captionBattleSkill']; var captionBattleItem = parameters['captionBattleItem']; var captionTitleCommand = parameters['captionTitleCommand']; var captionGameEnd = parameters['captionGameEnd']; //----------------------------------------------------------------------------- // Sprite_WindowCaption // function Sprite_WindowCaption() { this.initialize.apply(this, arguments); } Sprite_WindowCaption.prototype = Object.create(Sprite.prototype); Sprite_WindowCaption.prototype.constructor = Sprite_WindowCaption; Sprite_WindowCaption.prototype.initialize = function(subjectWindow) { Sprite.prototype.initialize.call(this); this._subjectWindow = subjectWindow; this.bitmap = new Bitmap(captionWidth, this._subjectWindow.captionFontSize() + captionOutlineWidth * 2); this.bitmap.fontFace = captionFontFace; this._captionText = ''; this._captionWidth = 0; }; Sprite_WindowCaption.prototype.update = function() { Sprite.prototype.update.call(this); if (this._subjectWindow) { var captionText = this._subjectWindow.captionText(); if (this._captionText !== captionText) { this._captionText = captionText; this.refresh(); } if (this._captionText) { if (this._captionAlign === 'left') { this.x = this._subjectWindow.parent.x + this._subjectWindow.x + captionShiftX; } else if (this._captionAlign === 'right') { this.x = this._subjectWindow.parent.x + this._subjectWindow.x + this._subjectWindow.width - this._captionWidth - captionShiftX; } else { this.x = this._subjectWindow.parent.x + this._subjectWindow.x + this._subjectWindow.width / 2 - this._captionWidth / 2; } if (this._captionBottom) { this.y = this._subjectWindow.parent.y + this._subjectWindow.y + this._subjectWindow.height - this._subjectWindow._windowSpriteContainer.y - 2; } else { this.y = this._subjectWindow.parent.y + this._subjectWindow.y + this._subjectWindow._windowSpriteContainer.y + 2; } } this.visible = this._subjectWindow.visible && !this._subjectWindow.isClosed(); } }; Sprite_WindowCaption.prototype.refresh = function() { this.bitmap.clear(); if (this._captionText) { this.bitmap.fontSize = this._subjectWindow.captionFontSize(); this.bitmap.textColor = this._subjectWindow.textColor(captionFontColor); this.bitmap.outlineWidth = captionOutlineWidth; this.bitmap.outlineColor = this._subjectWindow.textColor(captionOutlineColor); this._reverseVertical = false; this._captionAlign = 'left'; this._captionBottom = false; var text = this.convertEscapeCharacters(this._captionText); if (this._reverseVertical) { this.anchor.y = 0; var bitmap = ImageManager.loadSystem('TMWindowCaptionVR'); } else { this.anchor.y = 1; var bitmap = ImageManager.loadSystem('TMWindowCaption'); } var w = this.bitmap.measureTextWidth(text); if (w > captionWidth - 32) { w = captionWidth - 32; } this._captionWidth = w + 32; var h = this.height; this.bitmap.blt(bitmap, 0, 0, 16, 32, 0, 0, 16, h); this.bitmap.blt(bitmap, 16, 0, 16, 32, 16, 0, w, h); this.bitmap.blt(bitmap, 32, 0, 16, 32, 16 + w, 0, 16, h); this.bitmap.drawText(text, 16, 1, w, h, 'left'); } }; Sprite_WindowCaption.prototype.convertEscapeCharacters = function(text) { text = text.replace(/\\/g, '\x1b'); text = text.replace(/\x1b\x1b/g, '\\'); text = text.replace(/\x1bV\[(\d+)\]/gi, function() { return $gameVariables.value(parseInt(arguments[1])); }.bind(this)); text = text.replace(/\x1bV\[(\d+)\]/gi, function() { return $gameVariables.value(parseInt(arguments[1])); }.bind(this)); text = text.replace(/\x1bN\[(\d+)\]/gi, function() { return this.actorName(parseInt(arguments[1])); }.bind(this)); text = text.replace(/\x1bP\[(\d+)\]/gi, function() { return this.partyMemberName(parseInt(arguments[1])); }.bind(this)); text = text.replace(/\x1bG/gi, TextManager.currencyUnit); text = text.replace(/\x1bWCVR/gi, function() { this._reverseVertical = true; return ''; }.bind(this)); text = text.replace(/\x1bWCL/gi, function() { this._captionAlign = 'left'; return ''; }.bind(this)); text = text.replace(/\x1bWCR/gi, function() { this._captionAlign = 'right'; return ''; }.bind(this)); text = text.replace(/\x1bWCC/gi, function() { this._captionAlign = 'canter'; return ''; }.bind(this)); text = text.replace(/\x1bWCB/gi, function() { this._captionBottom = true; return ''; }.bind(this)); return text; }; Sprite_WindowCaption.prototype.actorName = function(n) { var actor = n >= 1 ? $gameActors.actor(n) : null; return actor ? actor.name() : ''; }; Sprite_WindowCaption.prototype.partyMemberName = function(n) { var actor = n >= 1 ? $gameParty.members()[n - 1] : null; return actor ? actor.name() : ''; }; //----------------------------------------------------------------------------- // Window_XXXX // Window_Base.prototype.captionText = function() { return ''; }; Window_Base.prototype.captionFontSize = function() { return captionFontSize; }; Window_Help.prototype.captionText = function() { return captionHelp; }; Window_Gold.prototype.captionText = function() { return captionGold; }; Window_MenuCommand.prototype.captionText = function() { return captionMenuCommand; }; Window_MenuStatus.prototype.captionText = function() { return captionMenuStatus; }; Window_MenuActor.prototype.captionText = function() { return captionMenuActor; }; Window_ItemCategory.prototype.captionText = function() { return captionItemCategory; }; Window_ItemList.prototype.captionText = function() { switch (this._category) { case 'item': return captionItemList_item; case 'weapon': return captionItemList_weapon; case 'armor': return captionItemList_armor; case 'keyItem': return captionItemList_keyItem; default: return ''; } }; Window_SkillType.prototype.captionText = function() { return captionSkillType; }; Window_SkillStatus.prototype.captionText = function() { return captionSkillStatus; }; Window_SkillList.prototype.captionText = function() { if (captionSkillList) { return $dataSystem.skillTypes[this._stypeId] + captionSkillList; } return ''; }; Window_EquipStatus.prototype.captionText = function() { return captionEquipStatus; }; Window_EquipCommand.prototype.captionText = function() { return captionEquipCommand; }; Window_EquipSlot.prototype.captionText = function() { return captionEquipSlot; }; Window_EquipItem.prototype.captionText = function() { if (captionEquipItem && this._actor) { var slots = this._actor.equipSlots(); return $dataSystem.equipTypes[slots[this._slotId]] + captionEquipItem; } return ''; }; Window_Status.prototype.captionText = function() { return captionStatus; }; Window_Options.prototype.captionText = function() { return captionOptions; }; Window_SavefileList.prototype.captionText = function() { return captionSavefileList; }; Window_ShopCommand.prototype.captionText = function() { return captionShopCommand; }; Window_ShopBuy.prototype.captionText = function() { return captionShopBuy; }; Window_ShopNumber.prototype.captionText = function() { return captionShopNumber; }; Window_ShopStatus.prototype.captionText = function() { return captionShopStatus; }; Window_NameEdit.prototype.captionText = function() { return captionNameEdit; }; Window_NameInput.prototype.captionText = function() { return captionNameInput; }; Window_ChoiceList.prototype.captionText = function() { return captionChoiceList; }; Window_NumberInput.prototype.captionText = function() { return captionNumberInput; }; Window_EventItem.prototype.captionText = function() { switch ($gameMessage.itemChoiceItypeId()) { case 1: return captionEventItem; case 2: return captionEventItem_key; case 3: return captionEventItem_A; case 4: return captionEventItem_B; default: return ''; } }; Window_Message.prototype.captionText = function() { if (this._captionText === undefined) { this._captionText = ''; } return this._captionText; }; Window_Message.prototype.captionFontSize = function() { return messageCaptionFontSize; }; var _Window_Message_startMessage = Window_Message.prototype.startMessage; Window_Message.prototype.startMessage = function() { _Window_Message_startMessage.call(this); this._captionText = ''; this._textState.text = this._textState.text.replace(/\x1bWC\[(.+?)\]/gi, function() { this._captionText = arguments[1]; return ''; }.bind(this)); }; Window_PartyCommand.prototype.captionText = function() { return captionPartyCommand; }; Window_ActorCommand.prototype.captionText = function() { return captionActorCommand; }; Window_BattleStatus.prototype.captionText = function() { return captionBattleStatus; }; Window_BattleActor.prototype.captionText = function() { return captionBattleActor; }; Window_BattleEnemy.prototype.captionText = function() { return captionBattleEnemy; }; Window_BattleSkill.prototype.captionText = function() { return captionBattleSkill; }; Window_BattleItem.prototype.captionText = function() { return captionBattleItem; }; Window_TitleCommand.prototype.captionText = function() { return captionTitleCommand; }; Window_GameEnd.prototype.captionText = function() { return captionGameEnd; }; //----------------------------------------------------------------------------- // Scene_Base // var _Scene_Base_addWindow = Scene_Base.prototype.addWindow; Scene_Base.prototype.addWindow = function(window) { _Scene_Base_addWindow.call(this, window); var sprite = new Sprite_WindowCaption(window); this.addChild(sprite); }; //----------------------------------------------------------------------------- // Scene_Boot // var _Scene_Boot_loadSystemImages = Scene_Boot.prototype.loadSystemImages; Scene_Boot.prototype.loadSystemImages = function() { _Scene_Boot_loadSystemImages.call(this); ImageManager.loadSystem('TMWindowCaption'); ImageManager.loadSystem('TMWindowCaptionVR'); }; })();