- Joined
- Feb 22, 2016
- Messages
- 1,626
- Reaction score
- 1,196
- First Language
- English
- Primarily Uses
- RMMV
Hi, I'm wanted to know if it was possible to change the line height halfway into a window. Screenshot:

Notice how the last line on the bottom is cut off just a bit. If I could halve the line height of the 2 gray lines/dividers then that should be enough to get the last line into view. Here's the code for that window:
This is @SomeFire's Skill Tree plugin btw.

Notice how the last line on the bottom is cut off just a bit. If I could halve the line height of the 2 gray lines/dividers then that should be enough to get the last line into view. Here's the code for that window:
JavaScript:
Description_Window.prototype.refresh = function() {
if (this.contents) {
this.contents.clear();
let fullW = this.windowWidth() - this.padding * 2;
let w = (fullW - Window_Base._faceWidth) / 2;
let line = 0;
if (this._actor) {
// Line 0.
this.drawActorFace(this._actor, 0, this.lineHeight() * line, Window_Base._faceWidth, Window_Base._faceHeight);
this.drawActorName(this._actor, Window_Base._faceWidth + this.spacing(), this.lineHeight() * line, w);
this.drawActorLevel(this._actor, Window_Base._faceWidth + this.spacing() + w, this.lineHeight() * line++);
// Line 1.
this.drawActorClass(this._actor, Window_Base._faceWidth + this.spacing(), this.lineHeight() * line, w);
this.drawActorFreePoints(this._actor, this._tree, Window_Base._faceWidth + this.spacing() + w, this.lineHeight() * line++, w);
// Line 2.
if (Yanfly.JP && !SkillTreesSystem.useJP())
this.drawJP(this._actor, this._tree, Window_Base._faceWidth + this.spacing() + w, this.lineHeight() * line, w);
line++;
// Line 3.
if (this._tree)
this.drawActorTreePoints(this._actor, this._tree, Window_Base._faceWidth + this.spacing(), this.lineHeight() * line++, w * 2);
// Line 4 is empty.
this.drawLine(this.lineHeight() * line++);
}
if (this._skill) {
// Line 5.
var skill = this._skill.nextLevel();
this.drawIcon(this._skill.iconId(), 0, this.lineHeight() * line);
this.drawText(skill.name, Window_Base._iconWidth + this.spacing(), this.lineHeight() * line, this.windowWidth() - w - Window_Base._iconWidth - this.spacing());
this.drawCastCost(skill, fullW - w, this.lineHeight() * line++);
// Lines 6 and 7.
this.drawTextEx(skill.description, 0, this.lineHeight() * line++);
this.resetFontSettings();
this.resetTextColor();
line++;
line++; //extra line added for longer skill descriptions
// Lines 8, 9, 10.
var reqs = this._skill.requirements();
if (reqs) {
this.drawLine(this.lineHeight() * line++);
this.drawText(SkillTreesSystem.requirementsText(), 0, this.lineHeight() * line++);
this.drawRequirements(reqs, this.lineHeight() * line++);
}
}
}
};

