- Joined
- Feb 22, 2016
- Messages
- 1,626
- Reaction score
- 1,195
- First Language
- English
- Primarily Uses
- RMMV
So I'm trying to reduce the amount of line for the help window from 2 down to 1 in certain scenes. I previously just edited rpg_windows.js directly but that affects all scenes. So this time around I'm editing specific scenes like the equip screen for instance. Here is the snippet in YEP_EquipCore.js for the equip scene.
I tried changing
Edit: I've also tried something as simple as
Edit2: I've tried the following as well, but got a TypeError: "cannot read property 'fittingHeight' of undefined".
or
JavaScript:
Scene_Equip.prototype.create = function() {
Scene_MenuBase.prototype.create.call(this);
this.createHelpWindow();
this.createCommandWindow();
this.createStatusWindow();
this.createSlotWindow();
this.createItemWindow();
this.createCompareWindow();
this._lowerRightVisibility = true;
this.updateLowerRightWindows();
this.refreshActor();
};
this.createHelpWindow(); to this.createHelpWindow(this, 0, 0, Graphics.boxWidth, this.fittingHeight(1)); but I got TypeError: "this.fittingHeight is not a function". The same happens when I try _fittingHeight(1) as well (I'm basically just guessing at this point). Can anyone help me with the correct syntax?Edit: I've also tried something as simple as
this.createHelpWindow(1); but that had no effect.Edit2: I've tried the following as well, but got a TypeError: "cannot read property 'fittingHeight' of undefined".
this._helpWindow.height = this._helpWindow.fittingHeight(1);
this.createHelpWindow();or
this._helpWindow.fittingHeight() = 1;
this.createHelpWindow();
Last edited:
