75 lines
No EOL
2.4 KiB
JavaScript
75 lines
No EOL
2.4 KiB
JavaScript
//=============================================================================
|
||
// InfoWindow.js
|
||
//=============================================================================
|
||
|
||
/*:
|
||
* @plugindesc 諠<><E8ABA0>ア陦ィ遉コ繧ヲ繧」繝ウ繝峨え繧偵Γ繝九Η繝シ逕サ髱「縺ォ霑ス蜉<EFBDBD>縺吶k繝励Λ繧ー繧、繝ウ
|
||
* @author Me
|
||
*
|
||
* @help 諠<><E8ABA0>ア陦ィ遉コ繧ヲ繧」繝ウ繝峨え繧偵Γ繝九Η繝シ逕サ髱「荳翫↓霑ス蜉<EFBDBD>縺励∪縺吶<E590B6>
|
||
*
|
||
*/
|
||
|
||
(function () {
|
||
|
||
// 繝槭ャ繝嶺ク翫↓繧ヲ繧」繝ウ繝峨え陦ィ遉コ縺吶k繧亥ョ」險
|
||
var Scene_map_start = Scene_Map.prototype.start;
|
||
Scene_Map.prototype.start = function () {
|
||
Scene_map_start.call(this);
|
||
this._InfoWindow = new Window_Info();
|
||
this.addWindow(this._InfoWindow);
|
||
};
|
||
var _Scene_Map_update = Scene_Map.prototype.update;
|
||
Scene_Map.prototype.update = function () {
|
||
_Scene_Map_update.call(this);
|
||
this._InfoWindow.setText();
|
||
};
|
||
|
||
// 縺薙%縺九i繝。繝九Η繝シ繧ヲ繧」繝ウ繝峨え菴懊j蟋九∪繧翫∪縺吶<E590B6>
|
||
function Window_Info() {
|
||
this.initialize.apply(this, arguments);
|
||
}
|
||
|
||
Window_Info.prototype = Object.create(Window_Base.prototype);
|
||
Window_Info.prototype.constructor = Window_Info;
|
||
Window_Info.prototype.initialize = function () {
|
||
var x = 20;
|
||
var y = 20;
|
||
var width = 180;
|
||
var height = 108;
|
||
Window_Base.prototype.initialize.call(this, x, y, width, height);
|
||
};
|
||
|
||
Window_Info.prototype.setText = function (str) {
|
||
this._text = str;
|
||
this.refresh();
|
||
};
|
||
|
||
// 繧ヲ繧」繝ウ繝峨え縺ォ霈峨○繧句<E7B9A7>螳ケ
|
||
Window_Info.prototype.refresh = function () {
|
||
this.contents.clear();
|
||
this.changeTextColor(this.textColor(16));
|
||
this.drawIcon(210, 1, 1);
|
||
this.drawText("諡セ縺」縺溷ョ晉ョア", 40, 1);
|
||
this.resetTextColor();
|
||
this.drawText($gameVariables.value(2) + " 蛟<>", 0, this.lineHeight());
|
||
};
|
||
|
||
// 繝輔か繝ウ繝医し繧、繧コ
|
||
Window_Info.prototype.standardFontSize = function () {
|
||
return 20;
|
||
};
|
||
// 繧ヲ繧」繝ウ繝峨え縺ョ騾乗<E9A8BE>蠎ヲ
|
||
Window_Info.prototype.standardBackOpacity = function () {
|
||
return 255;
|
||
};
|
||
// 繧ヲ繧」繝ウ繝峨え縺ョ菴咏區
|
||
Window_Info.prototype.standardPadding = function () {
|
||
return 18;
|
||
};
|
||
// 繧ヲ繧」繝ウ繝峨え縺ョ濶イ隱ソ
|
||
Window_Info.prototype.updateTone = function () {
|
||
this.setTone(64, 0, 128);
|
||
};
|
||
|
||
})(); |