So, I have been working on this menu script written by Ventiqu and I still haven't figured out how to make something happen because my skills are not as strong. I have the bare minimum concept of the scripting side of this project, but was hoping for a little assistance.
In the photo I attached I painted a red box where I want to present the actor's Status icons when poisoned, stunned, etc.
Under the actor's name I wants to put his Attack, Defense, and Luck.
Please help me with this if anyone can. I can't seem to figure out the solution.
Single Actor Menu
I mainly modified the position and sizes of the windows, removed the actor's class and level, moved where the actor's face is located, and moved where the states icons appear.
In the photo I attached I painted a red box where I want to present the actor's Status icons when poisoned, stunned, etc.
Under the actor's name I wants to put his Attack, Defense, and Luck.
Please help me with this if anyone can. I can't seem to figure out the solution.
Single Actor Menu
I mainly modified the position and sizes of the windows, removed the actor's class and level, moved where the actor's face is located, and moved where the states icons appear.
Code:
// this will create menus like status- and gold window
var _Scene_Menu_create = Scene_Menu.prototype.create;
Scene_Menu.prototype.create = function() {
_Scene_Menu_create.call(this);
this._statusWindow.x = 360;
this._statusWindow.y = 130;
this._goldWindow.x = Graphics.boxWidth / this._goldWindow.width + 117;
this._goldWindow.y = Graphics.boxHeight - this._goldWindow.height - 242;
Code:
// Rows for menucommands
Window_MenuCommand.prototype.numVisibleRows = function() {
return 2;
};
Code:
// draws actor face.
Window_MenuStatus.prototype.drawItemImage = function(index) {
var actor = $gameParty.members()[index];
var rect = this.itemRectForText(index);
// load stand_picture
var bitmapName = $dataActors[actor.actorId()].meta.avatar;
var bitmap = bitmapName ? ImageManager.loadPicture(bitmapName) : null; // ? on ternary operator.
var w = Math.min(rect.width, (bitmapName ? bitmap.width : 144));
var h = Math.min(rect.height, (bitmapName ? bitmap.height : 144));
var lineHeight = this.lineHeight();
this.changePaintOpacity(actor.isBattleMember());
// if actor has note <actor: filename> then do this.
if ( bitmap ) {
var sx = (bitmap.width > w) ? (bitmap.width - w) / 2 : 0;
var sy = (bitmap.height > h) ? (bitmap.height - h) / 2 : 0;
var dx = (bitmap.width > rect.width) ? rect.x :
rect.x + (rect.width - bitmap.width) / 2;
var dy = (bitmap.height > rect.height) ? rect.y :
rect.y + (rect.height - bitmap.height) / 2;
this.contents.blt(bitmap, sx, sy, w, h, dx, dy);
} else { // if there is not a note or its invalid, do the normal setting.
this.drawActorFace(actor, rect.x + 120, rect.y + lineHeight * 0, w, h);
}
this.changePaintOpacity(true);
};
Code:
// draws actor name, level, class, hp, mp and status icons.
Window_MenuStatus.prototype.drawItemStatus = function(index) {
var actor = $gameParty.members()[index];
var rect = this.itemRectForText(index);
var x = rect.x;
var y = rect.y;
var width = rect.width;
var bottom = y + rect.height;
var lineHeight = this.lineHeight();
this.drawActorName(actor, x, y + lineHeight * 0, width);
this.drawActorHp(actor, x, lineHeight * 4, width);
this.drawActorMp(actor, x, lineHeight * 5, width);
this.drawActorIcons(actor, x, lineHeight * 2, width);
};