You can upload it directly here.
Alt Menu Status
Learning JavascriptDo you know why the last member is special?
Code:
Window_MenuStatus.prototype.drawItemImage = function(index) {
var bitmap = ImageManager.loadPicture('follower- background select');
var pw = bitmap.width;
var ph = bitmap.height;
var S_ratio = Graphics.width / 816;
var x = this._cursorRect.x;
var y = this._cursorRect.y;
this.Ken_drawBackground('follower- background select', x, y);
}
Code:
Window_MenuStatus.prototype.drawItemStatus = function(index) {
var S_ratio = Graphics.width / 816;
var actor = $gameParty.members()[index];
var name = String(actor.name());
var lv = String(actor.level);
var hp = String(actor.hp);
var mhp = String(actor.mhp);
var rect = this.itemRect(index);
var x = rect.x;
var y = rect.y;
var width = rect.width - Graphics.boxWidth / 9;
var lineHeight = this.lineHeight();
var x2 = x + Graphics.boxWidth / 12;
var x3 = x2 + rect.width / 3;
var width2 = rect.width - Window_Base._faceWidth -20;
var frame = (this._frame === 2) ? 0 : this._frame;
this.changePaintOpacity(255);
if(index == 0){
this.Ken_drawCharacterAnimated(actor.characterName(), actor.characterIndex(),
x + 15, y + lineHeight * 1.3, frame);
this.Ken_setFontSize(24 * S_ratio);
this.Ken_drawText(name, x2, y + rect.height / 10, rect.width / 3);
this.Ken_drawText("Lv" + lv, x2, y + rect.height / 10 + lineHeight * S_ratio, rect.width / 3);
this.Ken_drawGauge(x + rect.width * (1/4), y + rect.height / 2,
rect.width * (3/4 - 1/14), 5 * S_ratio, actor.hpRate());
this.Ken_drawText(hp + '/' + mhp, x + rect.width * (1/4), y + rect.height / 2 + lineHeight *
S_ratio,
rect.width * (3/4 - 1/14), 'right');
this.resetFontSettings();
} else{
if (index === this._pendingIndex) {
this.Ken_drawCharacterAnimated(actor.characterName(), actor.characterIndex(),
x + 20, y + lineHeight * 1.5 * S_ratio + 5 * frame, frame);
} else {
this.Ken_drawCharacterAnimated(actor.characterName(), actor.characterIndex(),
x + 20, y + lineHeight * 1.5 * S_ratio, frame);
};
this.Ken_setFontSize(20);
this.Ken_drawText(name, x2, y + rect.height / 20, Graphics.boxWidth / 9);
this.Ken_drawText("Lv" + lv, x2, y + rect.height / 20 + lineHeight * S_ratio, Graphics.boxWidth
/ 9);
this.Ken_drawBackground('HP', x + Graphics.boxWidth / 4.5 + 2, y + rect.height / 4.9);
this.Ken_drawGauge(x3, y - rect.height / 20,
rect.width / 2.5, 5 * S_ratio, actor.hpRate());
this.Ken_drawText(hp + '/' + mhp, x3, y + rect.height / 20 + lineHeight * S_ratio,
rect.width / 2.5, 'right');
this.resetFontSettings();
}
this.changePaintOpacity(true);
};
Code:
Window_MenuStatus.prototype.drawItemBackground = function(index) {
var rect = this.itemRect(index);
var S_ratio = Graphics.width / 816;
if(index !== 0) {
if (index === this._pendingIndex) {
var bitmap = ImageManager.loadPicture('follower- background select');
var pw = bitmap.width;
var ph = bitmap.height;
this.Ken_drawBackground('follower- background select', rect.x - rect.width / 11 - 2 * S_ratio, rect.y - (ph - rect.height) / 2);
} else {
this.Ken_drawBackground('follower- background', rect.x - rect.width / 11, rect.y);
};
};
};
Code:
Window_MenuStatus.prototype.drawItem = function(index) {
this.drawItemBackground(index);
this.drawItemImage(index);
this.drawItemStatus(index);
};
I just test it.
And found the question.
Original thread: https://forums.rpgmakerweb.com/threads/alt-menu-status.86827/