Hello all! Happy holidays! I've been having a small issue with the VisuMZ menu core plugin and am finally at the point where I don't know what else to do besides turn to the community for help.
I'm trying to adjust where the HP and MP meters sit on the VisuMZ menu core. It currently sits extremely high on the window and for some of the shorter characters, completely blocks their faces. I was hoping someone here could help me figure out what I'm doing wrong. My game won't utilize TP, so I've removed the TP meter.
This is what the system looks like normally after install:
This is what I'd like to eventually get the system to look like. Essentially, shift everything down by like 20% and tighten it up:
I've had some success adjusting the HP gauge, but the MP one won't budge.
This is the standard, out of the box code for the portrait style:
Does anyone know what code adjustments I'd need to make in order to move everything down slightly?
I'm trying to adjust where the HP and MP meters sit on the VisuMZ menu core. It currently sits extremely high on the window and for some of the shorter characters, completely blocks their faces. I was hoping someone here could help me figure out what I'm doing wrong. My game won't utilize TP, so I've removed the TP meter.
This is what the system looks like normally after install:
This is what I'd like to eventually get the system to look like. Essentially, shift everything down by like 20% and tighten it up:
I've had some success adjusting the HP gauge, but the MP one won't budge.
This is the standard, out of the box code for the portrait style:
Code:
// Declare Constants
const actor = arguments[0];
const rect = arguments[1];
// Make Constants
const lineHeight = this.lineHeight();
const gaugeLineHeight = this.gaugeLineHeight();
const totalHeight = (lineHeight * 4.5) + (gaugeLineHeight * ($dataSystem.optDisplayTp ? 3 : 2));
// Draw Actor Graphic
const gw = rect.width;
const gh = rect.height;
const gx = rect.x;
const gy = rect.y;
this.drawItemActorMenuImage(actor, gx, gy, gw, gh);
// Draw Dark Rectangle
let sx = rect.x;
let sy = Math.max(rect.y, rect.y + (rect.height - totalHeight));
let sw = rect.width;
let sh = rect.y + rect.height - sy;
this.contents.fillRect(sx+1, sy+lineHeight/2, sw-2, sh-1-lineHeight/2, ColorManager.dimColor1());
this.contents.gradientFillRect(sx+1, sy-lineHeight/2, sw-2, lineHeight, ColorManager.dimColor2(), ColorManager.dimColor1(), true);
// Draw Actor Name
this.drawText(actor.name(), sx, sy, sw, 'center');
// Draw Actor Level
sx = rect.x + Math.round((rect.width - 128) / 2);
sy += lineHeight;
this.drawActorLevel(actor, sx, sy);
// Draw Actor Class
const className = actor.currentClass().name;
sx = rect.x + Math.round((rect.width - this.textSizeEx(className).width) / 2);
sy += lineHeight;
this.drawTextEx(className, sx, sy, sw);
// Draw Actor Icons
sx = rect.x + Math.round((rect.width - 128) / 2);
sy += lineHeight;
this.drawActorIcons(actor, sx, sy);
// Draw Gauges
sx = rect.x + Math.round((rect.width - 128) / 2);
sy += lineHeight;
this.placeGauge(actor, "hp", sx, sy);
sy += gaugeLineHeight;
this.placeGauge(actor, "mp", sx, sy);
sy += gaugeLineHeight;
if ($dataSystem.optDisplayTp) {
this.placeGauge(actor, "tp", sx, sy);
}
Does anyone know what code adjustments I'd need to make in order to move everything down slightly?