How do I change the blend mode of the Window skin to Add?

Here's my thread.

The software I use, is RPG Maker MZ.

I love Science Fiction, one piece of the futuristic sounding genre that I also love, are the screens of sci-fi computers. I was wondering, if it's possible to change the blend mode of the window skin to Add, to make the windows look like part of a heads up display. I don't mind if it has to use a little bit of JavaScript.
it doesn't work that way.

the windowskin has many components used in different places, and changing that picture that way would have many unwanted side-effects.

what can be done is have a plugin modify the code how the menu is using the elements, but that is more effort than just a little bit of javascript.
feel free to make a plugin request for this however, I see a good chance that one of the programmers takes this as an interesting idea...
Does this work for you?
JavaScript:
/*:
 * @target MZ
 * @plugindesc Show the windowskin elements with Add blend mode.
 * @author Caethyril
 * @help Terms of use: free to use and/or modify for any project.
 */

(alias => {
    Window.prototype._createAllParts = function() {
        alias.apply(this, arguments);
        const sprites = [
            'back', 'frame', 'cursor', 'downArrow', 'upArrow', 'pauseSign'
        ].map(s => this[`_${s}Sprite`]);
        for (const spr of sprites)
            if (spr) spr._blendMode = PIXI.BLEND_MODES.ADD;
    };
})(Window.prototype._createAllParts);
To use it:
  1. Copy the code into a text editor (e.g. Notepad)
  2. Save as a .js file:
    • File > Save As
    • File Type: All Files (allows renaming extension)
    • File Name: whatever.js (specify extension)
  3. Copy to your project's js/plugins subfolder
  4. Add it to your project in the editor via Tools > Plugin Manager
  5. Save your project to apply Plugin Manager changes
  6. Test!
it doesn't work that way.

the windowskin has many components used in different places, and changing that picture that way would have many unwanted side-effects.

what can be done is have a plugin modify the code how the menu is using the elements, but that is more effort than just a little bit of javascript.
feel free to make a plugin request for this however, I see a good chance that one of the programmers takes this as an interesting idea...
Darn, well this feels like some need at programming skills to make a window that's like a Hud window in a sci-fi computer.

Does this work for you?
JavaScript:
/*:
 * @target MZ
 * @plugindesc Show the windowskin elements with Add blend mode.
 * @author Caethyril
 * @help Terms of use: free to use and/or modify for any project.
 */

(alias => {
    Window.prototype._createAllParts = function() {
        alias.apply(this, arguments);
        const sprites = [
            'back', 'frame', 'cursor', 'downArrow', 'upArrow', 'pauseSign'
        ].map(s => this[`_${s}Sprite`]);
        for (const spr of sprites)
            if (spr) spr._blendMode = PIXI.BLEND_MODES.ADD;
    };
})(Window.prototype._createAllParts);
To use it:
  1. Copy the code into a text editor (e.g. Notepad)
  2. Save as a .js file:
    • File > Save As
    • File Type: All Files (allows renaming extension)
    • File Name: whatever.js (specify extension)
  3. Copy to your project's js/plugins subfolder
  4. Add it to your project in the editor via Tools > Plugin Manager
  5. Save your project to apply Plugin Manager changes
  6. Test!
I'm not sure if this is working, as I don't see much change, although the window skin that I made makes the windows look futuristic.

Anyway, thanks for the help. I appreciate it.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-change-the-blend-mode-of-the-window-skin-to-add.138717/