Is there a name for this?

Willibab

The Lord of Whackery
Veteran
Joined
Jun 22, 2017
Messages
540
Reaction score
1,369
First Language
Norwegian
Primarily Uses
RMMZ
swdfsdfsdf.PNG
The background that is slightly darker color, is that called something? Command background? I'm trying to find out if its possible to change/edit them but I don't even know what they are called xD
 

r66r

Fantasy dreamer... sometimes.
Veteran
Joined
Jan 5, 2020
Messages
106
Reaction score
127
First Language
French
Primarily Uses
RMMZ
Unless I'm mistaken, you can find the code that generates this backgroud in the rmmz_windows.js:

Code:
Window_Selectable.prototype.drawBackgroundRect = function(rect) {
    const c1 = ColorManager.itemBackColor1();
    const c2 = ColorManager.itemBackColor2();
    const x = rect.x;
    const y = rect.y;
    const w = rect.width;
    const h = rect.height;
    this.contentsBack.gradientFillRect(x, y, w, h, c1, c2, true);
    this.contentsBack.strokeRect(x, y, w, h, c1);
};

And the itemBackColor1 and itemBackColor2 are in rmmz_managers.js:

Code:
ColorManager.itemBackColor1 = function() {
    return "rgba(32, 32, 32, 0.5)";
};
ColorManager.itemBackColor2 = function() {
    return "rgba(0, 0, 0, 0.5)";
};

So you can modify them with a plugin that overrides these methods.
 
Last edited:

Latest Threads

Latest Profile Posts

I know I'll put one of my game's sprites here to give the illusion that I am a productive member of game society.
handelspriteanim.gif
Preparing untested English localization for DOWNFALLEN.

unknown-43.png
Sometimes I wonder if I feature creep... 225 magic spells is a lot lol.

Forum statistics

Threads
124,499
Messages
1,164,057
Members
163,327
Latest member
Baticles
Top