Plugin Help- changing menu

rahxephonkun

Villager
Member
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?
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,528
Reaction score
14,261
First Language
English
Primarily Uses
RMVXA
I've moved this thread to JavaScript Support. Please be sure to post your threads in the correct forum next time. Thank you.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,547
Members
137,835
Latest member
yetisteven
Top