Hey guys,I used the plugin named Visustella CoreEngine and MainMenu Core.
I wonder how to erase the black rectangle in the main menu ?
It seems that there are JS code highly related in the setting,but I am an art worker so I have no code knowledge at all!😩
I tried to delete the code of dark rectangle but something wrong happened like this.Someone told me to set the opacity to 0 but I don't know how to do.
Thanks for any advice!😊
If you need the code about this I will try to paste it below.
// 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 Level
sx = rect.x + Math.round((rect.width - 128) / 2);
sy += lineHeight;
this.drawActorLevel(actor, sx, sy);
// 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;
if ($dataSystem.optDisplayTp) {
this.placeGauge(actor, "tp", sx, sy);
}
I wonder how to erase the black rectangle in the main menu ?
It seems that there are JS code highly related in the setting,but I am an art worker so I have no code knowledge at all!😩
I tried to delete the code of dark rectangle but something wrong happened like this.Someone told me to set the opacity to 0 but I don't know how to do.
Thanks for any advice!😊
If you need the code about this I will try to paste it below.
// 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 Level
sx = rect.x + Math.round((rect.width - 128) / 2);
sy += lineHeight;
this.drawActorLevel(actor, sx, sy);
// 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;
if ($dataSystem.optDisplayTp) {
this.placeGauge(actor, "tp", sx, sy);
}