705 lines
No EOL
27 KiB
JavaScript
705 lines
No EOL
27 KiB
JavaScript
//=============================================================================
|
||
// BB_CustomSaveWindow.js
|
||
// Copyright (c) 2016 BB ENTERTAINMENT
|
||
//=============================================================================
|
||
|
||
/*:
|
||
* @plugindesc セーブウインドウ改造プラグイン
|
||
* @author ビービー
|
||
*
|
||
*
|
||
* @param OutsideFrameColor
|
||
* @desc 外枠の色を指定(テキストカラー0~31)
|
||
* デフォルト:0
|
||
* @default 0
|
||
*
|
||
* @param OutsideFrameOpacity
|
||
* @desc 外枠の透明度を指定(0~255)
|
||
* デフォルト:64
|
||
* @default 64
|
||
*
|
||
* @param InsideFrameColor
|
||
* @desc 内枠の色を指定(テキストカラー0~31)
|
||
* デフォルト:0
|
||
* @default 0
|
||
*
|
||
* @param InsideFrameOpacity
|
||
* @desc 内枠の透明度を指定(0~255)
|
||
* デフォルト:64
|
||
* @default 64
|
||
*
|
||
* @param MaxItem
|
||
* @desc 内枠の数を指定(1~4)
|
||
* デフォルト:4(0で非表示)
|
||
* @default 4
|
||
*
|
||
* @param Item0
|
||
* @desc ファイルID右に表示される項目 0=非表示 1=タイトル 2=プレイ時間 3=マップ名 4=所持金 5=セーブ回数 6=変数項1 7=変数項2 8=変数項3 9=変数項4
|
||
* @default 1
|
||
*
|
||
* @param Item0Length
|
||
* @desc ファイルID右に表示される項目の横幅(Item5(右上に表示される項目)に影響)
|
||
* @default 300
|
||
*
|
||
* @param Item1title
|
||
* @desc 右下に表示される項目のタイトル
|
||
* デフォルト:プレイ時間
|
||
* @default プレイ時間
|
||
*
|
||
* @param FileAutoSave
|
||
* @desc オートセーブファイル1に追記される表記
|
||
* デフォルト:[オートセーブ]
|
||
* @default [オートセーブ]
|
||
*
|
||
* @param Item1
|
||
* @desc 右下に表示される項目 0=非表示 1=タイトル 2=プレイ時間 3=マップ名
|
||
* 4=所持金 5=セーブ回数 6=変数項1 7=変数項2 8=変数項3 9=変数項4
|
||
* @default 2
|
||
*
|
||
* @param Item2title
|
||
* @desc 中央右に表示される項目のタイトル
|
||
* デフォルト:現在地
|
||
* @default 現在地
|
||
*
|
||
* @param Item2
|
||
* @desc 中央右に表示される項目 0=非表示 1=タイトル 2=プレイ時間 3=マップ名
|
||
* 4=所持金 5=セーブ回数 6=変数項1 7=変数項2 8=変数項3 9=変数項4
|
||
* デフォルト:3
|
||
* @default 3
|
||
*
|
||
* @param Item3title
|
||
* @desc 中央下に表示される項目のタイトル
|
||
* デフォルト:所持金
|
||
* @default 所持金
|
||
*
|
||
* @param Item3
|
||
* @desc 中央下に表示される項 0=非表示 1=タイトル 2=プレイ時間 3=マップ名
|
||
* 4=所持金 5=セーブ回数 6=変数項1 7=変数項2 8=変数項3 9=変数項4
|
||
* デフォルト:4
|
||
* @default 4
|
||
*
|
||
* @param Item4title
|
||
* @desc 中央に表示される項目のタイトル
|
||
* デフォルト:セーブ回数
|
||
* @default セーブ回数
|
||
*
|
||
* @param Item4
|
||
* @desc 中央に表示される項目 0=非表示 1=タイトル 2=プレイ時間 3=マップ名
|
||
* 4=所持金 5=セーブ回数 6=変数項1 7=変数項2 8=変数項3 9=変数項4
|
||
* デフォルト:5
|
||
* @default 5
|
||
*
|
||
* @param Item5
|
||
* @desc 右上に表示される項目 0=非表示 1=タイトル 2=プレイ時間 3=マップ名
|
||
* 4=所持金 5=セーブ回数 6=変数項1 7=変数項2 8=変数項3 9=変数項4
|
||
* デフォルト:6
|
||
* @default 6
|
||
*
|
||
* @param ItemValue1
|
||
* @desc 変数項目1に入れる変数のID
|
||
* デフォルト:1
|
||
* @default 1
|
||
*
|
||
* @param ItemValue2
|
||
* @desc 変数項目2に入れる変数のID
|
||
* デフォルト:2
|
||
* @default 2
|
||
*
|
||
* @param ItemValue3
|
||
* @desc 変数項目3に入れる変数のID
|
||
* デフォルト:3
|
||
* @default 3
|
||
*
|
||
* @param ItemValue4
|
||
* @desc 変数項目4に入れる変数のID
|
||
* デフォルト:4
|
||
* @default 4
|
||
*
|
||
* @param ItemValue1unit
|
||
* @desc 変数項目1の単位
|
||
* デフォルト:無し
|
||
* @default
|
||
*
|
||
* @param ItemValue2unit
|
||
* @desc 変数項目2の単位
|
||
* デフォルト:無し
|
||
* @default
|
||
*
|
||
* @param ItemValue3unit
|
||
* @desc 変数項目3の単位
|
||
* デフォルト:無し
|
||
* @default
|
||
*
|
||
* @param ItemValue4unit
|
||
* @desc 変数項目4の単位
|
||
* デフォルト:無し
|
||
* @default
|
||
*
|
||
* @param Subtitle0
|
||
* @desc サブタイトル0
|
||
* デフォルト:邂逅
|
||
* @default 邂逅
|
||
*
|
||
* @param Subtitle1
|
||
* @desc サブタイトル1(前半)
|
||
* デフォルト:第1章「弱い人間、強い力(前編)」
|
||
* @default 第1章「弱い人間、強い力(前編)」
|
||
*
|
||
* @param Subtitle2
|
||
* @desc サブタイトル1(後編)
|
||
* デフォルト:第1章「弱い人間、強い力(後編)」
|
||
* @default 第1章「弱い人間、強い力(後編)」
|
||
*
|
||
* @param Subtitle3
|
||
* @desc サブタイトル2(前半)
|
||
* デフォルト:第2章「歓楽街と夜の王(前編)」
|
||
* @default 第2章「歓楽街と夜の王(前編)」
|
||
*
|
||
* @param Subtitle4
|
||
* @desc サブタイトル2(後編)
|
||
* デフォルト:第2章「歓楽街と夜の王(後編)」
|
||
* @default 第2章「歓楽街と夜の王(後編)」
|
||
*
|
||
* @param Subtitle5
|
||
* @desc サブタイトル3(前半)
|
||
* デフォルト:第3章「ドキッ!スケベだらけのナイトプール(前編)」
|
||
* @default 第3章「ドキッ!スケベだらけのナイトプール(前編)」
|
||
*
|
||
* @param Subtitle6
|
||
* @desc サブタイトル3(後編)
|
||
* デフォルト:第3章「ドキッ!スケベだらけのナイトプール(後編)」
|
||
* @default 第3章「ドキッ!スケベだらけのナイトプール(後編)」
|
||
*
|
||
* @param Subtitle7
|
||
* @desc サブタイトル4(前半)
|
||
* デフォルト:第4章「催眠学園(前編)」
|
||
* @default 第4章「催眠学園(前編)」
|
||
*
|
||
* @param Subtitle8
|
||
* @desc サブタイトル4(後編)
|
||
* デフォルト:第4章「催眠学園(後編)」
|
||
* @default 第4章「催眠学園(後編)」
|
||
*
|
||
* @param Subtitle9
|
||
* @desc サブタイトル5(前半)
|
||
* デフォルト:第5章「醒めない悪夢(前編)」
|
||
* @default 第5章「醒めない悪夢(前編)」
|
||
*
|
||
* @param Subtitle10
|
||
* @desc サブタイトル5(後編)
|
||
* デフォルト:第5章「醒めない悪夢(後編)」
|
||
* @default 第5章「醒めない悪夢(後編)」
|
||
*
|
||
* @param Subtitle11
|
||
* @desc サブタイトル6
|
||
* デフォルト:最終章「夢の果て」
|
||
* @default 最終章「夢の果て」
|
||
*
|
||
* @param Subtitle12
|
||
* @desc サブタイトル7
|
||
* デフォルト:★クリアデータ
|
||
* @default ★クリアデータ
|
||
*
|
||
* @param Subtitle13
|
||
* @desc サブタイトル8
|
||
* デフォルト:予備
|
||
* @default 予備
|
||
*
|
||
* @param NoPlace
|
||
* @desc セーブ場所が無記名の場合の表記
|
||
* デフォルト:幕間
|
||
* @default 幕間
|
||
*
|
||
* @param Day_Morning
|
||
* @desc 日付の欄に表示する時間帯表記(朝)
|
||
* デフォルト:朝
|
||
* @default 朝
|
||
*
|
||
* @param Day_Afternoon
|
||
* @desc 日付の欄に表示する時間帯表記(昼)
|
||
* デフォルト:昼
|
||
* @default 昼
|
||
*
|
||
* @param Day_Evening
|
||
* @desc 日付の欄に表示する時間帯表記(昼)
|
||
* デフォルト:夕
|
||
* @default 夕
|
||
*
|
||
* @param Day_Night
|
||
* @desc 日付の欄に表示する時間帯表記(夜)
|
||
* デフォルト:夜
|
||
* @default 夜
|
||
*
|
||
* @param Day_MidNight
|
||
* @desc 日付の欄に表示する時間帯表記(深夜)
|
||
* デフォルト:深夜
|
||
* @default 深夜
|
||
*
|
||
* @param Day_Dream
|
||
* @desc 日付の欄に表示する時間帯表記(夢)
|
||
* デフォルト:夢
|
||
* @default 夢
|
||
*
|
||
* @param TitleFramelength1
|
||
* @desc 項目1のタイトル枠の横幅(文字数*20+10)(0~274)
|
||
* デフォルト:110
|
||
* @default 110
|
||
*
|
||
* @param TitleFramelength2
|
||
* @desc 項目2のタイトル枠の横幅(文字数*20+10)(0~274)
|
||
* デフォルト:110
|
||
* @default 110
|
||
*
|
||
* @param TitleFramelength3
|
||
* @desc 項目3のタイトル枠の横幅(文字数*20+10)(0~274)
|
||
* デフォルト:110
|
||
* @default 110
|
||
*
|
||
* @param TitleFramelength4
|
||
* @desc 項目4のタイトル枠の横幅(文字数*20+10)(0~274)
|
||
* デフォルト:110
|
||
* @default 110
|
||
*
|
||
* @param CharacterPositionY
|
||
* @desc キャラクターグラフィックのy座標(下=6 中央=12 上=20)
|
||
* デフォルト:6
|
||
* @default 6
|
||
*
|
||
* @param LevelPositionY
|
||
* @desc レベルのy座標(下=72 上=23)
|
||
* デフォルト:23
|
||
* @default 23
|
||
*
|
||
* @param LevelOnOff
|
||
* @desc レベルを表示するかしないかを指定(0=非表示、1=表示)
|
||
* デフォルト:1
|
||
* @default 1
|
||
*
|
||
* @help プラグインの説明
|
||
*
|
||
* ■各パラメータの説明
|
||
* プラグイン内より少しだけ詳しくパラメータの説明をしていきます。
|
||
*
|
||
* OutsideFrameColor
|
||
* 外枠の色をテキストカラーの0~31で指定できます。
|
||
* デフォルト:0
|
||
*
|
||
* OutsideFrameOpacity
|
||
* 外枠の透明度を0~255の数値で指定できます(0=透明、255=不透明)
|
||
* デフォルト:64
|
||
*
|
||
* InsideFrameColor
|
||
* 内枠の色をテキストカラーの0~31で指定できます。
|
||
* デフォルト:0
|
||
*
|
||
* InsideFrameOpacity
|
||
* 内枠の透明度を0~255の数値で指定できます(0=透明、255=不透明)
|
||
* デフォルト:64
|
||
*
|
||
* MaxItem
|
||
* 内枠の数を0から4のあいだで指定できます。
|
||
* デフォルト:4(0で非表示)
|
||
*
|
||
* Item0
|
||
* ファイルID右に表示される項目を0~9の数字で指定します。
|
||
* 0=非表示
|
||
* 1=ゲームタイトル
|
||
* 2=プレイ時間
|
||
* 3=マップ名
|
||
* 4=所持金(自動で通貨単位も表示されます)
|
||
* 5=セーブ回数
|
||
* 6=パラメータのItemValue1で指定した変数の値(パラメータのItemValue1unitで単位を指定できます)
|
||
* 7=パラメータのItemValue2で指定した変数の値(パラメータのItemValue2unitで単位を指定できます)
|
||
* 8=パラメータのItemValue3で指定した変数の値(パラメータのItemValue3unitで単位を指定できます)
|
||
* 9=パラメータのItemValue4で指定した変数の値(パラメータのItemValue4unitで単位を指定できます)
|
||
*
|
||
* Item0Length
|
||
* ファイルID右に表示される項目の横幅を指定できます。(Item5(右上に表示される項目)に影響)
|
||
* 指定したサイズより文字列の幅が大きい場合、指定したサイズに自動で文字幅が縮小されます。
|
||
* default 300
|
||
*
|
||
* Item1title
|
||
* 右下に表示される項目のタイトルを好きな文字列で指定できます。
|
||
* デフォルト:プレイ時間
|
||
*
|
||
* Item1
|
||
* 右下に表示される項目を0~9の数字で指定します。
|
||
* デフォルト:2
|
||
*
|
||
* Item2title
|
||
* 中央右に表示される項目のタイトルを好きな文字列で指定できます。
|
||
* デフォルト:現在地
|
||
*
|
||
* Item2
|
||
* 中央右に表示される項目を0~9の数字で指定します。
|
||
* デフォルト:3
|
||
*
|
||
* Item3title
|
||
* 中央下に表示される項目のタイトルを好きな文字列で指定できます。
|
||
* デフォルト:所持金
|
||
*
|
||
* Item3
|
||
* 中央下に表示される項を0~9の数字で指定します。
|
||
* デフォルト:4
|
||
*
|
||
* Item4title
|
||
* 中央に表示される項目のタイトルを好きな文字列で指定できます。
|
||
* デフォルト:セーブ回数
|
||
*
|
||
* Item4
|
||
* 中央に表示される項目を0~9の数字で指定します。
|
||
* デフォルト:5
|
||
*
|
||
* Item5
|
||
* 右上に表示される項目を0~9の数字で指定します。
|
||
* デフォルト:6
|
||
*
|
||
* ItemValue1
|
||
* 変数項目1に入れる変数のIDを指定します。
|
||
* デフォルト:1
|
||
*
|
||
* ItemValue2
|
||
* 変数項目2に入れる変数のIDを指定します。
|
||
* デフォルト:2
|
||
*
|
||
* ItemValue3
|
||
* 変数項目3に入れる変数のIDを指定します。
|
||
* デフォルト:3
|
||
*
|
||
* ItemValue4
|
||
* 変数項目4に入れる変数のIDを指定します。
|
||
* デフォルト:4
|
||
*
|
||
* ItemValue1unit
|
||
* 変数項目1の単位を指定します。
|
||
* デフォルト:無し
|
||
*
|
||
* ItemValue2unit
|
||
* 変数項目2の単位を指定します。
|
||
* デフォルト:無し
|
||
*
|
||
* ItemValue3unit
|
||
* 変数項目3の単位を指定します。
|
||
* デフォルト:無し
|
||
*
|
||
* ItemValue4unit
|
||
* 変数項目4の単位を指定します。
|
||
* デフォルト:無し
|
||
*
|
||
* TitleFramelength1
|
||
* 項目1のタイトル枠の横幅を0~274のあいだから指定します。
|
||
* 文字数*20+10で文字の幅と同じ幅の枠を描画できます
|
||
* 指定した枠幅より文字幅がはみ出る場合自動で文字幅が縮小されます。
|
||
* デフォルト:110(5文字)
|
||
*
|
||
* TitleFramelength2
|
||
* 項目2のタイトル枠の横幅(文字数*20+10)(0~274)
|
||
* デフォルト:110
|
||
*
|
||
* TitleFramelength3
|
||
* 項目3のタイトル枠の横幅(文字数*20+10)(0~274)
|
||
* デフォルト:110
|
||
*
|
||
* TitleFramelength4
|
||
* 項目4のタイトル枠の横幅(文字数*20+10)(0~274)
|
||
* デフォルト:110
|
||
*
|
||
* CharacterPositionY
|
||
* キャラクターグラフィックのy座標を指定します。
|
||
* 下の方に表示したい場合は6、中央あたりなら12 上の方なら20が目安です。
|
||
* デフォルト:6
|
||
*
|
||
* LevelPositionY
|
||
* レベルのy座標を指定します。下の方なら72、上の方なら23が目安です。
|
||
* レベルの表示はキャラクターグラフィックより手前に表示されます。
|
||
* デフォルト:23
|
||
*
|
||
* LevelOnOff
|
||
* レベルを表示するかしないかを指定(0=非表示、1=表示)
|
||
* デフォルト:1
|
||
*
|
||
*
|
||
* ■変数に文字列を代入する方法
|
||
* 変数に文字列を代入するには
|
||
* イベントコマンドの"タブ1"にある"ゲーム進行"内の"変数の操作"を実行し
|
||
* 代入したい変数を選び、代入にチェックを入れ
|
||
* スクリプトに書き込みます
|
||
* このとき ' ←この記号ではじめと終わりを挟むのを忘れないでください。
|
||
* ( ' ←この記号はキーボードが半角英数のときにshiftを押しながら7で打てます)
|
||
*
|
||
* ■BB ENTERTAINMENT BLOGにて画像付きで解説しています。
|
||
* 記事:http://bb-entertainment-blog.blogspot.jp/2016/11/blog-post_27.html#more
|
||
*
|
||
* バージョン:
|
||
* 1.0.2 2016/12/01 レベルの表示、非表示を切り替えるパラメータを追加
|
||
* 1.0.1 2016/11/29 ヘルプを追記
|
||
* 1.0.0 2016/11/27 初版
|
||
*
|
||
* 利用規約:
|
||
* このプラグインは、MITライセンスのもとで公開されています。
|
||
* Copyright (c) 2016 BB ENTERTAINMENT
|
||
* Released under the MIT License.
|
||
* http://opensource.org/licenses/mit-license.php
|
||
*
|
||
* コンタクト:
|
||
* BB ENTERTAINMENT Twitter: https://twitter.com/BB_ENTER/
|
||
* BB ENTERTAINMENT BLOG : http://bb-entertainment-blog.blogspot.jp/
|
||
*/
|
||
|
||
|
||
(function() {
|
||
'use strict';
|
||
//-----------------------------------------------------------------------------
|
||
// プラグインパラメータ管理
|
||
//-----------------------------------------------------------------------------
|
||
var parameters = PluginManager.parameters('BB_CustomSaveWindow');
|
||
var BBSWInFC = Number(parameters['InsideFrameColor']);
|
||
var BBSWInFO = Number(parameters['InsideFrameOpacity']);
|
||
var BBSWOutFC = Number(parameters['OutsideFrameColor']);
|
||
var BBSWOutFO = Number(parameters['OutsideFrameOpacity']);
|
||
var BBSWMaxItem = Number(parameters['MaxItem']);
|
||
var BBSWFileAutoSave = String(parameters['FileAutoSave']);
|
||
var BBSWItem0 = Number(parameters['Item0']);
|
||
var BBSWItem0L = Number(parameters['Item0Length']);
|
||
var BBSWItem1T = String(parameters['Item1title']);
|
||
var BBSWItem1 = Number(parameters['Item1']);
|
||
var BBSWItem2T = String(parameters['Item2title']);
|
||
var BBSWItem2 = Number(parameters['Item2']);
|
||
var BBSWItem3T = String(parameters['Item3title']);
|
||
var BBSWItem3 = Number(parameters['Item3']);
|
||
var BBSWItem4T = String(parameters['Item4title']);
|
||
var BBSWItem4 = Number(parameters['Item4']);
|
||
var BBSWItem5 = Number(parameters['Item5']);
|
||
var BBSWV1 = Number(parameters['ItemValue1']);
|
||
var BBSWV2 = Number(parameters['ItemValue2']);
|
||
var BBSWV3 = Number(parameters['ItemValue3']);
|
||
var BBSWV4 = Number(parameters['ItemValue4']);
|
||
var BBSWV1u = String(parameters['ItemValue1unit']);
|
||
var BBSWV2u = String(parameters['ItemValue2unit']);
|
||
var BBSWV3u = String(parameters['ItemValue3unit']);
|
||
var BBSWV4u = String(parameters['ItemValue4unit']);
|
||
var BBSWTF1 = Number(parameters['TitleFramelength1']);
|
||
var BBSWTF2 = Number(parameters['TitleFramelength2']);
|
||
var BBSWTF3 = Number(parameters['TitleFramelength3']);
|
||
var BBSWTF4 = Number(parameters['TitleFramelength4']);
|
||
var BBSWCPY = Number(parameters['CharacterPositionY']);
|
||
var BBSWLPY = Number(parameters['LevelPositionY']);
|
||
var BBSWLOO = Number(parameters['LevelOnOff']);
|
||
var BBSWSubTitle0 = String(parameters['Subtitle0']);
|
||
var BBSWSubTitle1 = String(parameters['Subtitle1']);
|
||
var BBSWSubTitle2 = String(parameters['Subtitle2']);
|
||
var BBSWSubTitle3 = String(parameters['Subtitle3']);
|
||
var BBSWSubTitle4 = String(parameters['Subtitle4']);
|
||
var BBSWSubTitle5 = String(parameters['Subtitle5']);
|
||
var BBSWSubTitle6 = String(parameters['Subtitle6']);
|
||
var BBSWSubTitle7 = String(parameters['Subtitle7']);
|
||
var BBSWSubTitle8 = String(parameters['Subtitle8']);
|
||
var BBSWSubTitle9 = String(parameters['Subtitle9']);
|
||
var BBSWSubTitle10 = String(parameters['Subtitle10']);
|
||
var BBSWSubTitle11 = String(parameters['Subtitle11']);
|
||
var BBSWSubTitle12 = String(parameters['Subtitle12']);
|
||
var BBSWNoPlace = String(parameters['NoPlace']);
|
||
var BBSWDay_Morning = String(parameters['Day_Morning']);
|
||
var BBSWDay_Afternoon = String(parameters['Day_Afternoon']);
|
||
var BBSWDay_Evening = String(parameters['Day_Evening']);
|
||
var BBSWDay_Night = String(parameters['Day_Night']);
|
||
var BBSWDay_MidNight = String(parameters['Day_MidNight']);
|
||
var BBSWDay_Dream = String(parameters['Day_Dream']);
|
||
|
||
//-----------------------------------------------------------------------------
|
||
// セーブデータに名前を定義
|
||
//-----------------------------------------------------------------------------
|
||
var _DataManager_makeSavefileInfo = DataManager.makeSavefileInfo;
|
||
DataManager.makeSavefileInfo = function() {
|
||
var info = {};
|
||
info.globalId = this._globalId;
|
||
if($gameVariables.value(33)==0){
|
||
info.title = BBSWSubTitle0
|
||
}else if($gameVariables.value(33)==1){
|
||
info.title = BBSWSubTitle1
|
||
}else if($gameVariables.value(33)==2){
|
||
info.title = BBSWSubTitle2
|
||
}else if($gameVariables.value(33)==3){
|
||
info.title = BBSWSubTitle3
|
||
}else if($gameVariables.value(33)==4){
|
||
info.title = BBSWSubTitle4
|
||
}else if($gameVariables.value(33)==5){
|
||
info.title = BBSWSubTitle5
|
||
}else if($gameVariables.value(33)==6){
|
||
info.title = BBSWSubTitle6
|
||
}else if($gameVariables.value(33)==7){
|
||
info.title = BBSWSubTitle7
|
||
}else if($gameVariables.value(33)==8){
|
||
info.title = BBSWSubTitle8
|
||
}else if($gameVariables.value(33)==9){
|
||
info.title = BBSWSubTitle9
|
||
}else if($gameVariables.value(33)==10){
|
||
info.title = BBSWSubTitle10
|
||
}else if($gameVariables.value(33)==11){
|
||
info.title = BBSWSubTitle11
|
||
}else{
|
||
info.title = BBSWSubTitle12
|
||
}
|
||
info.characters = $gameParty.charactersForSavefile();
|
||
info.faces = $gameParty.facesForSavefile();
|
||
info.playtime = $gameSystem.playtimeText();
|
||
info.timestamp = Date.now();
|
||
//add--------------------------------------------------------------------------
|
||
info.mapname = $gameMap.displayName();
|
||
info.gold = $gameParty._gold;
|
||
info.savecount = $gameSystem._saveCount;
|
||
info.value1 = $gameVariables.value(BBSWV1);
|
||
info.value2 = $gameVariables.value(BBSWV2);
|
||
info.value3 = $gameVariables.value(BBSWV3);
|
||
info.value4 = $gameVariables.value(BBSWV4);
|
||
info.level1 = $gameParty.members()[0].level;
|
||
if(info.mapname == ""){info.mapname = BBSWNoPlace}
|
||
//-----------------------------------------------------------------------------
|
||
return info;
|
||
};
|
||
|
||
var _Window_SavefileList_prototype_drawItem = Window_SavefileList.prototype.drawItem;
|
||
Window_SavefileList.prototype.drawItem = function(index) {
|
||
var id = index + 1;
|
||
var valid = DataManager.isThisGameFile(id);
|
||
var info = DataManager.loadSavefileInfo(id);
|
||
var rect = this.itemRectForText(index);
|
||
//add--------------------------------------------------------------------------
|
||
this.contents.fontSize = 20;
|
||
this.contents.paintOpacity = BBSWInFO;
|
||
this.contents.fillRect(rect.x - 5, rect.y + 2, rect.width + 10, 2, this.textColor(BBSWInFC));
|
||
|
||
this.contents.fillRect(rect.x - 3, rect.y + 4, rect.width + 6, 28, this.textColor(BBSWInFC));
|
||
this.contents.paintOpacity = BBSWOutFO;
|
||
if (BBSWMaxItem >= 0) {
|
||
}
|
||
if (BBSWMaxItem >= 1) {
|
||
this.contents.fillRect(rect.x + 595, rect.y + 95, BBSWTF1, 26, this.textColor(BBSWOutFC));
|
||
this.contents.fillRect(rect.x + 595, rect.y + 93, 351, 2, this.textColor(BBSWOutFC));
|
||
this.contents.fillRect(rect.x + 595, rect.y + 121, 351, 2, this.textColor(BBSWOutFC));
|
||
this.contents.fillRect(rect.x + 944, rect.y + 95, 2, 26, this.textColor(BBSWOutFC));
|
||
|
||
} if (BBSWMaxItem >= 2) {
|
||
this.contents.fillRect(rect.x + 595, rect.y + 44, BBSWTF2, 26, this.textColor(BBSWOutFC));
|
||
this.contents.fillRect(rect.x + 595, rect.y + 42, 351, 2, this.textColor(BBSWOutFC));
|
||
this.contents.fillRect(rect.x + 595, rect.y + 70, 351, 2, this.textColor(BBSWOutFC));
|
||
this.contents.fillRect(rect.x + 944, rect.y + 44, 2, 26, this.textColor(BBSWOutFC));
|
||
|
||
} if (BBSWMaxItem >= 3) {
|
||
this.contents.fillRect(rect.x + 210, rect.y + 95, BBSWTF3, 26, this.textColor(BBSWOutFC));
|
||
this.contents.fillRect(rect.x + 210, rect.y + 93, 351, 2, this.textColor(BBSWOutFC));
|
||
this.contents.fillRect(rect.x + 210, rect.y + 121, 351, 2, this.textColor(BBSWOutFC));
|
||
this.contents.fillRect(rect.x + 559, rect.y + 95, 2, 26, this.textColor(BBSWOutFC));
|
||
} if (BBSWMaxItem >= 4) {
|
||
this.contents.fillRect(rect.x + 210, rect.y + 44, BBSWTF4, 26, this.textColor(BBSWOutFC));
|
||
this.contents.fillRect(rect.x + 210, rect.y + 42, 351, 2, this.textColor(BBSWOutFC));
|
||
this.contents.fillRect(rect.x + 210, rect.y + 70, 351, 2, this.textColor(BBSWOutFC));
|
||
this.contents.fillRect(rect.x + 559, rect.y + 44, 2, 26, this.textColor(BBSWOutFC));
|
||
}
|
||
this.contents.paintOpacity = 255;
|
||
//-----------------------------------------------------------------------------
|
||
this.resetTextColor();
|
||
if (this._mode === 'load') {
|
||
this.changePaintOpacity(valid);
|
||
}
|
||
|
||
this.drawFileId(id, rect.x, rect.y);
|
||
if(index == 0 && SceneManager._scene.constructor === Scene_Save){
|
||
this.changePaintOpacity(false);
|
||
this.drawContents(info, rect, valid);
|
||
this.changePaintOpacity(true);
|
||
}else if (info) {
|
||
this.changePaintOpacity(valid);
|
||
this.drawContents(info, rect, valid,id);
|
||
this.changePaintOpacity(true);
|
||
}
|
||
};
|
||
var _Window_SavefileList_prototype_drawContents = Window_SavefileList.prototype.drawContents;
|
||
Window_SavefileList.prototype.drawContents = function(info, rect, valid) {
|
||
var bottom = rect.y + rect.height;
|
||
if (rect.width >= 420) {
|
||
//項目0(タイトル表示)------------------------------------------------------------------------
|
||
if(info.title == BBSWSubTitle12)this.changeTextColor(this.textColor(17))
|
||
this.drawText(info.title, rect.x + 142, rect.y+5, BBSWItem0L+150);
|
||
if(info.title == BBSWSubTitle12)this.resetTextColor ()
|
||
|
||
//-----------------------------------------------------------------------------
|
||
if (valid) {
|
||
this.drawPartyCharacters(info, rect.x + 125, bottom - 28);//-6 -12 -20
|
||
//レベル表示-------------------------------------------------------------------
|
||
if (BBSWLOO == 1) {
|
||
this.contents.fontSize = 16;
|
||
this.drawText(TextManager.levelA + " " + info.level1, rect.x + 5, rect.y + BBSWLPY+10, 40);//72 23
|
||
if (info.characters.length == 2) {
|
||
this.drawText(TextManager.levelA + " " + info.level2, rect.x + 5 + 48 + 75, rect.y + BBSWLPY+10, 40);}
|
||
this.contents.fontSize = 20;
|
||
}
|
||
//-----------------------------------------------------------------------------
|
||
}
|
||
}
|
||
var lineHeight = this.lineHeight();
|
||
var y2 = bottom - lineHeight;
|
||
if (y2 >= lineHeight) {
|
||
//項目1 右上(プレイ時間表示)-------------------------------------------------------------------
|
||
this.drawText(BBSWItem1T, rect.x + 525 + 75, y2 - 52, BBSWTF1 - 10);
|
||
this.drawText(info.playtime, rect.x + 525 + BBSWTF1 + 150, y2 - 52, 266 - BBSWTF1, 'right');
|
||
|
||
//-----------------------------------------------------------------------------
|
||
//項目2 右下(マップ名表示)-------------------------------------------------------------------
|
||
this.drawText(BBSWItem2T, rect.x + 525 + 75, y2 - 1, BBSWTF2 - 10);
|
||
|
||
//文字幅の自動調整が効かない範囲の時のみ動作
|
||
//アルファベットや記号のあるマップの余白を詰める。Nu・menumeだけ余白が大きく残るので無理やり補正
|
||
var x_ascii = 0;
|
||
if(266 - BBSWTF2+ 75 > this.textWidth(info.mapname)){
|
||
for (var i = 0; i < info.mapname.length; i++) {
|
||
if (info.mapname.charCodeAt(i) < 128) {
|
||
if(info.mapname.charCodeAt(i) != 32){
|
||
x_ascii += 1;
|
||
}else{
|
||
x_ascii -= 4;
|
||
}
|
||
}else{
|
||
if(info.mapname[i]=="・")x_ascii+=16;
|
||
}
|
||
}
|
||
}
|
||
this.drawText(info.mapname, rect.x + 525 + BBSWTF2 + 75 + x_ascii, y2 - 1, 266 - BBSWTF2+ 75, 'right');
|
||
//-----------------------------------------------------------------------------
|
||
//項目3 左上(所持金表示)-------------------------------------------------------------------
|
||
this.drawText(BBSWItem3T, rect.x + 215, y2 - 52, BBSWTF3 - 10);
|
||
this.drawText(info.gold + TextManager.currencyUnit, rect.x + 215 + BBSWTF3 + 75, y2 - 52, 266 - BBSWTF3, 'right');
|
||
//-----------------------------------------------------------------------------
|
||
//項目4 左下(日付表示)-------------------------------------------------------------------
|
||
this.drawText(BBSWItem4T, rect.x + 215, y2 - 1, BBSWTF4 - 10);
|
||
if(info.value2<=1)var time = BBSWDay_Morning
|
||
if(info.value2==2)var time = BBSWDay_Evening
|
||
if(info.value2==3)var time = BBSWDay_Night;
|
||
if(info.value2==4)var time = BBSWDay_MidNight;
|
||
if(info.value2>=5)var time = BBSWDay_Dream;
|
||
|
||
this.drawText("Day " + info.value1 + "-" + time, rect.x + 215 + BBSWTF4 + 75, y2 - 1, 266 - BBSWTF4, 'right');
|
||
|
||
//-----------------------------------------------------------------------------
|
||
|
||
//-----------------------------------------------------------------------------
|
||
}
|
||
};
|
||
|
||
var _Window_SavefileList_prototype_drawFileId = Window_SavefileList.prototype.drawFileId;
|
||
Window_SavefileList.prototype.drawFileId = function(id, x, y) {
|
||
if(id==1){
|
||
if(SceneManager._scene.constructor === Scene_Save)this.changePaintOpacity(false);
|
||
this.drawText(TextManager.file + ' ' + id, x, y, 120);
|
||
this.changeTextColor(this.textColor(16))
|
||
this.contents.fontSize = 10;
|
||
this.drawText(BBSWFileAutoSave, x+65, y+36, 120);//オートセーブの表示
|
||
this.resetTextColor ()
|
||
this.contents.fontSize = 20;
|
||
if(SceneManager._scene.constructor === Scene_Save)this.changePaintOpacity(true);
|
||
}else{
|
||
this.drawText(TextManager.file + ' ' + id, x, y, 120);
|
||
}
|
||
};
|
||
|
||
})(); |