- Joined
- Aug 27, 2017
- Messages
- 78
- Reaction score
- 6
- First Language
- English
- Primarily Uses
- RMMV
It works when I set the width to 800 in the rpg scenes file like this:
But when I turn on yanfly core engine, it auto stretches the window and the bars to a width 1600. I tried to set the var w to 800 but it will just affect the hp bars through all other menus:
Does someone has an idea how to solve this problem?
Scene_Skill.prototype.createStatusWindow = function() {
var wx = this._skillTypeWindow.width;
var wy = this._helpWindow.height;
var ww = 800;
var wh = this._skillTypeWindow.height;
this._statusWindow = new Window_SkillStatus(wx, wy, ww, wh);
this._statusWindow.reserveFaceImages();
this.addWindow(this._statusWindow);
var wx = this._skillTypeWindow.width;
var wy = this._helpWindow.height;
var ww = 800;
var wh = this._skillTypeWindow.height;
this._statusWindow = new Window_SkillStatus(wx, wy, ww, wh);
this._statusWindow.reserveFaceImages();
this.addWindow(this._statusWindow);
But when I turn on yanfly core engine, it auto stretches the window and the bars to a width 1600. I tried to set the var w to 800 but it will just affect the hp bars through all other menus:
Window_SkillStatus.prototype.refresh = function() {
this.contents.clear();
if (this._actor) {
var w = 800;
var h = this.height - this.padding * 2;
if (!eval(Yanfly.Param.MenuTpGauge)) {
var y = h / 2 - this.lineHeight() * 1.5;
} else {
var y = 0;
}
var xpad = Yanfly.Param.WindowPadding + Window_Base._faceWidth;
var width = w - xpad - this.textPadding();
this.drawActorFace(this._actor, 0, 0, Window_Base._faceWidth, h);
this.drawActorSimpleStatus(this._actor, xpad, y, width);
}
};
this.contents.clear();
if (this._actor) {
var w = 800;
var h = this.height - this.padding * 2;
if (!eval(Yanfly.Param.MenuTpGauge)) {
var y = h / 2 - this.lineHeight() * 1.5;
} else {
var y = 0;
}
var xpad = Yanfly.Param.WindowPadding + Window_Base._faceWidth;
var width = w - xpad - this.textPadding();
this.drawActorFace(this._actor, 0, 0, Window_Base._faceWidth, h);
this.drawActorSimpleStatus(this._actor, xpad, y, width);
}
};


