- Joined
- Nov 23, 2016
- Messages
- 15
- Reaction score
- 0
- First Language
- english
- Primarily Uses
Hi I am trying to make a plugin to change the menu, I made it have 1 row and 4 columns but the pictures are appearing in the center of the status menu like this-
I added this to my plugin code--
Window_MenuStatus.prototype.windowWidth = function() {
return Graphics.boxWidth;
};
Window_MenuStatus.prototype.windowHeight = function() {
return Graphics.boxHeight / 2;
};
Window_MenuStatus.prototype.numVisibleRows = function() {
return 1;
};
Window_MenuStatus.prototype.maxCols = function() {
return 4;
};
Window_MenuStatus.prototype.drawItemStatus = function(index) {
var actor = $gameParty.members()[index];
var rect = this.itemRect(index);
var x = rect.x //+ 162;
var y = rect.y + rect.height / 2 - this.lineHeight() * 1.5;
var width = rect.width - x - this.textPadding();
//this.drawActorSimpleStatus(actor, x, y, width);
var lineHeight = this.lineHeight();
//var x2 = x + 180;
var width2 = Math.min(200, width - 180 - this.textPadding());
this.drawActorName(actor, x, y);
this.drawActorLevel(actor, x, y + lineHeight * 1);
this.drawActorIcons(actor, x, y + lineHeight * 2);
this.drawActorClass(actor, x, y + lineHeight * 3);
this.drawActorHp(actor, x, y + lineHeight * 4, width2);
this.drawActorMp(actor, x, y + lineHeight * 5, width2);
};
and that is what happened... i tried to find the method that drew the faces and change the y value and i found a method called drawItemImage and added it to my plugin like this---
Window_MenuStatus.prototype.drawItemImage = function(index) {
var actor = $gameParty.members()[index];
var rect = this.itemRect(index);
this.changePaintOpacity(actor.isBattleMember());
this.drawActorFace(actor, rect.x + 1, 0, 144, rect.height);
this.changePaintOpacity(true);
};
Window_MenuStatus.prototype.drawItemStatus = function(index) {
var actor = $gameParty.members()[index];
var rect = this.itemRect(index);
var x = rect.x //+ 162;
var y = rect.y + rect.height / 2 - this.lineHeight() * 1.5;
var width = rect.width - x - this.textPadding();
//this.drawActorSimpleStatus(actor, x, y, width);
var lineHeight = this.lineHeight();
//var x2 = x + 180;
var width2 = Math.min(200, width - 180 - this.textPadding());
this.drawActorName(actor, x, y);
this.drawActorLevel(actor, x, y + lineHeight * 1);
this.drawActorIcons(actor, x, y + lineHeight * 2);
this.drawActorClass(actor, x, y + lineHeight * 3);
this.drawActorHp(actor, x, y + lineHeight * 4, width2);
this.drawActorMp(actor, x, y + lineHeight * 5, width2);
};
no matter what I change the y value to the pictures of the actors don't change spots, I have tried the original y, subtracting from y, putting it as just 0 but nothing happens... can anyone help me figure out how to change the y value of the face so I can have it at the top?
I added this to my plugin code--
Window_MenuStatus.prototype.windowWidth = function() {
return Graphics.boxWidth;
};
Window_MenuStatus.prototype.windowHeight = function() {
return Graphics.boxHeight / 2;
};
Window_MenuStatus.prototype.numVisibleRows = function() {
return 1;
};
Window_MenuStatus.prototype.maxCols = function() {
return 4;
};
Window_MenuStatus.prototype.drawItemStatus = function(index) {
var actor = $gameParty.members()[index];
var rect = this.itemRect(index);
var x = rect.x //+ 162;
var y = rect.y + rect.height / 2 - this.lineHeight() * 1.5;
var width = rect.width - x - this.textPadding();
//this.drawActorSimpleStatus(actor, x, y, width);
var lineHeight = this.lineHeight();
//var x2 = x + 180;
var width2 = Math.min(200, width - 180 - this.textPadding());
this.drawActorName(actor, x, y);
this.drawActorLevel(actor, x, y + lineHeight * 1);
this.drawActorIcons(actor, x, y + lineHeight * 2);
this.drawActorClass(actor, x, y + lineHeight * 3);
this.drawActorHp(actor, x, y + lineHeight * 4, width2);
this.drawActorMp(actor, x, y + lineHeight * 5, width2);
};
and that is what happened... i tried to find the method that drew the faces and change the y value and i found a method called drawItemImage and added it to my plugin like this---
Window_MenuStatus.prototype.drawItemImage = function(index) {
var actor = $gameParty.members()[index];
var rect = this.itemRect(index);
this.changePaintOpacity(actor.isBattleMember());
this.drawActorFace(actor, rect.x + 1, 0, 144, rect.height);
this.changePaintOpacity(true);
};
Window_MenuStatus.prototype.drawItemStatus = function(index) {
var actor = $gameParty.members()[index];
var rect = this.itemRect(index);
var x = rect.x //+ 162;
var y = rect.y + rect.height / 2 - this.lineHeight() * 1.5;
var width = rect.width - x - this.textPadding();
//this.drawActorSimpleStatus(actor, x, y, width);
var lineHeight = this.lineHeight();
//var x2 = x + 180;
var width2 = Math.min(200, width - 180 - this.textPadding());
this.drawActorName(actor, x, y);
this.drawActorLevel(actor, x, y + lineHeight * 1);
this.drawActorIcons(actor, x, y + lineHeight * 2);
this.drawActorClass(actor, x, y + lineHeight * 3);
this.drawActorHp(actor, x, y + lineHeight * 4, width2);
this.drawActorMp(actor, x, y + lineHeight * 5, width2);
};
no matter what I change the y value to the pictures of the actors don't change spots, I have tried the original y, subtracting from y, putting it as just 0 but nothing happens... can anyone help me figure out how to change the y value of the face so I can have it at the top?

