Change status window width in skill menu

● ARCHIVED · READ-ONLY
Started by Krawzer_KOF 3 posts View original ↗
  1. It works when I set the width to 800 in the rpg scenes file like this:

    scene skill
    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);

    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:

    yanfly core engine
    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);
    }
    };
    Does someone has an idea how to solve this problem?
  2. I've moved this thread to Plugin Support. Thank you.

  3. Its because the function you edited on yanfly's plugin is the refresh function which only handles the contents of the status window, not the window itself..

    You'd need to find on yanfly's plugin the part where it says something like

    this._statusWindow = new Window_SkillStatus

    and modify the width used in that function