//----------------------------------------------------------------------------- // Window_Status_xiamian // // The window for displaying full status on the status screen. var Status_xiamian_create = Scene_Status.prototype.create Scene_Status.prototype.create = function() { Status_xiamian_create.call(this); this._status_xiamianWindow = new Window_Status_xiamian(); this.addWindow(this._status_xiamianWindow); }; var Status_xiamian_refreshActor = Scene_Status.prototype.refreshActor Scene_Status.prototype.refreshActor = function() { Status_xiamian_refreshActor.call(this); var actor = this.actor(); this._status_xiamianWindow.setActor(actor); }; function Window_Status_xiamian() { this.initialize.apply(this, arguments); } Window_Status_xiamian.prototype = Object.create(Window_Selectable.prototype); Window_Status_xiamian.prototype.constructor = Window_Status_xiamian; Window_Status_xiamian.prototype.initialize = function() { var width = Graphics.boxWidth; var height = Graphics.boxHeight/4; var x = 0 var y = 459 Window_Selectable.prototype.initialize.call(this, x, y, width, height); this._actor = null; this.refresh(); this.activate(); }; Window_Status_xiamian.prototype.setActor = function(actor) { if (this._actor !== actor) { this._actor = actor; this.refresh(); } }; Window_Status_xiamian.prototype.refresh = function() { this.contents.clear(); if (!this._actor) {return} console.log(this._actor) this.drawTextEx(this._actor.profile(), 0, 0); };
//-----------------------------------------------------------------------------
// Window_Status_xiamian
//
// The window for displaying full status on the status screen.
var Status_xiamian_create = Scene_Status.prototype.create
Scene_Status.prototype.create = function() {
Status_xiamian_create.call(this);
this._status_xiamianWindow = new Window_Status_xiamian();
this.addWindow(this._status_xiamianWindow);
};
var Status_xiamian_refreshActor = Scene_Status.prototype.refreshActor
Scene_Status.prototype.refreshActor = function() {
Status_xiamian_refreshActor.call(this);
var actor = this.actor();
this._status_xiamianWindow.setActor(actor);
};
function Window_Status_xiamian() {
this.initialize.apply(this, arguments);
}
Window_Status_xiamian.prototype = Object.create(Window_Selectable.prototype);
Window_Status_xiamian.prototype.constructor = Window_Status_xiamian;
Window_Status_xiamian.prototype.initialize = function() {
var width = Graphics.boxWidth;
var height = Graphics.boxHeight/4;
var x = 0
var y = 459
Window_Selectable.prototype.initialize.call(this, x, y, width, height);
this._actor = null;
this.refresh();
this.activate();
};
Window_Status_xiamian.prototype.setActor = function(actor) {
if (this._actor !== actor) {
this._actor = actor;
this.refresh();
}
};
Window_Status_xiamian.prototype.refresh = function() {
this.contents.clear();
if (!this._actor) {return}
console.log(this._actor)
this.drawTextEx(this._actor.profile(), 0, 0);
};
|