Status
Not open for further replies.

NineTales

Veteran
Veteran
Joined
Nov 26, 2019
Messages
70
Reaction score
29
First Language
English
Primarily Uses
RMMV
Hello, I am making some menus and using a background image for the menu backgrounds.
However, I would still like the map to show through underneath. Whenever I use a png the space is filled with black rather than showing the map. (mog hunter backgrounds does the same thing)
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
7,225
Reaction score
2,855
First Language
Dutch
Primarily Uses
RMMV
make the png the size of of the window, the best way is to implement that
in the plugin itself to draw teh background so it can show the map part.

similair to my MenuCustomiser that has that, and evented main menu.
as MrTs and MOG's doesn't support it some how.

so target the size alone, implementing a background is fairly easy.
my SSBG plugin that target the savescene, that tiny part that draws the
background can be used in mostly all plugins to draw a custom background.

altMenu3 I believe (dlc of MV) can allow menu backgrounds as well, not
sure if that helps, but it also has a small bug, easy to fix.
 

NineTales

Veteran
Veteran
Joined
Nov 26, 2019
Messages
70
Reaction score
29
First Language
English
Primarily Uses
RMMV
make the png the size of of the window, the best way is to implement that
in the plugin itself to draw teh background so it can show the map part.

similair to my MenuCustomiser that has that, and evented main menu.
as MrTs and MOG's doesn't support it some how.

so target the size alone, implementing a background is fairly easy.
my SSBG plugin that target the savescene, that tiny part that draws the
background can be used in mostly all plugins to draw a custom background.

altMenu3 I believe (dlc of MV) can allow menu backgrounds as well, not
sure if that helps, but it also has a small bug, easy to fix.
Hi.
I think I'm sort of following what you're saying.
So there is no plugin that does this already, and I would need to edit one or make one of my own to get this effect?

I will try Alt Menu 3 as well. and get back.
[EDIT]
It seems AltMenu3 isn't very compatible with SRD Supertools (for menu manipulation)
 
Last edited:

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
7,225
Reaction score
2,855
First Language
Dutch
Primarily Uses
RMMV
I dont know if it need to be above or below SRD_SuperToolsEngine.
but what menu plugin are you currently using?
 

NineTales

Veteran
Veteran
Joined
Nov 26, 2019
Messages
70
Reaction score
29
First Language
English
Primarily Uses
RMMV
I dont know if it need to be above or below SRD_SuperToolsEngine.
but what menu plugin are you currently using?
Yeah I did try above and below.
I'm using Srd_menubackgrounds for consistency sake. Shame it didn't have this feature.
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
7,225
Reaction score
2,855
First Language
Dutch
Primarily Uses
RMMV
I mean menu plugin, not background, which means, you go with
default menu?

I think the black part is because of the TilingSprite?

what you can do, go into the SRD_MenuBackgrounds and find this function
and change it to the following:
JavaScript:
_.Scene_MenuBase_createBackground = Scene_MenuBase.prototype.createBackground;
Scene_MenuBase.prototype.createBackground = function() {
    if(_.backgrounds[this._menuBackgroundConstructorName]) {
        this._backgroundSprite = new Sprite(); //new TilingSprite();
        this._backgroundSprite.anchor.x = 0.5;

keep in mind that it is only a part of the code, where I change and
rule out "new Tilingsprite()" and set "new Sprite()" which should
take transparant with it (as it works for me at least).

if it does not work, I can give you a snippet that let you change the background
of the scene by implimenting it into the plugin or use it over and over for
each scene, (might not be as clean as the plugin creators) but it works at least.

I can create a plugin to take effect that hopefully :)
 

NineTales

Veteran
Veteran
Joined
Nov 26, 2019
Messages
70
Reaction score
29
First Language
English
Primarily Uses
RMMV
I mean menu plugin, not background, which means, you go with
default menu?

I think the black part is because of the TilingSprite?

what you can do, go into the SRD_MenuBackgrounds and find this function
and change it to the following:
JavaScript:
_.Scene_MenuBase_createBackground = Scene_MenuBase.prototype.createBackground;
Scene_MenuBase.prototype.createBackground = function() {
    if(_.backgrounds[this._menuBackgroundConstructorName]) {
        this._backgroundSprite = new Sprite(); //new TilingSprite();
        this._backgroundSprite.anchor.x = 0.5;

keep in mind that it is only a part of the code, where I change and
rule out "new Tilingsprite()" and set "new Sprite()" which should
take transparant with it (as it works for me at least).

if it does not work, I can give you a snippet that let you change the background
of the scene by implimenting it into the plugin or use it over and over for
each scene, (might not be as clean as the plugin creators) but it works at least.

I can create a plugin to take effect that hopefully :)
Thank you for trying to help!
I do use yanfly main menu manager plugin as well if that's what you're referring to.
The code you gave me produces an error for me (assuming I am implementing it correctly)
from what I can tell you're changing just one line?

Code:
this._backgroundSprite = new TilingSprite();
to
Code:
this._backgroundSprite = new Sprite(); //new TilingSprite();

I get an error.
 

Attachments

  • Capture.JPG
    Capture.JPG
    74.9 KB · Views: 1

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
7,225
Reaction score
2,855
First Language
Dutch
Primarily Uses
RMMV
than it's best to impliment the background instantly into the plugin
to create the backgrounds as that works with transparant images.

this is just an example, so you need to place it inside the plugin and
place it inside the create function:

JavaScript:
        this._function1.opacity = 0;
        this._function2.opacity = 0;
        this._function3.opacity = 0;
        this._function4.opacity = 0;
        this._function5.opacity = 0;
};

The function Name can be found on what function it create, so you need
to check how it is called to make the window.opacity to 0, to make the
window skin window transparant.

the next code is place under the create function.
JavaScript:
ALIAS_FUNCTION.createBackgrounds = Scene_Equip.prototype.createBackground;
Scene_Equip.prototype.createBackground = function() {
    ALIAS_FUNCTION.createBackgrounds.call(this);
        this._backgroundSprite = new Sprite();
        this._backgroundSprite.bitmap = ImageManager.loadPicture("Scene_Equip");
        this.addChild(this._backgroundSprite);
        return;
};

ALIAS_FUNCTION is the name of the plugin that uses it, so replace those.
as if you just copy paste this, it will throw out the error.

Name the background image to your liking, change Scene_Equip
to the proper name of the scene you want to change.

you can use this methode in each plugin to change the background easely,
which I use too.

this is garanteed that it is working :)
 

NineTales

Veteran
Veteran
Joined
Nov 26, 2019
Messages
70
Reaction score
29
First Language
English
Primarily Uses
RMMV
than it's best to impliment the background instantly into the plugin
to create the backgrounds as that works with transparant images.

this is just an example, so you need to place it inside the plugin and
place it inside the create function:

JavaScript:
        this._function1.opacity = 0;
        this._function2.opacity = 0;
        this._function3.opacity = 0;
        this._function4.opacity = 0;
        this._function5.opacity = 0;
};

The function Name can be found on what function it create, so you need
to check how it is called to make the window.opacity to 0, to make the
window skin window transparant.

the next code is place under the create function.
JavaScript:
ALIAS_FUNCTION.createBackgrounds = Scene_Equip.prototype.createBackground;
Scene_Equip.prototype.createBackground = function() {
    ALIAS_FUNCTION.createBackgrounds.call(this);
        this._backgroundSprite = new Sprite();
        this._backgroundSprite.bitmap = ImageManager.loadPicture("Scene_Equip");
        this.addChild(this._backgroundSprite);
        return;
};

ALIAS_FUNCTION is the name of the plugin that uses it, so replace those.
as if you just copy paste this, it will throw out the error.

Name the background image to your liking, change Scene_Equip
to the proper name of the scene you want to change.

you can use this methode in each plugin to change the background easely,
which I use too.

this is garanteed that it is working :)
Thank you for your time and for trying to help. but this seems a bit too advanced for me.
I was hoping there would already be a plugin available that would use background images with transparency.

I may have to commission someone or do a plugin request if this doesn't exist.
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
7,225
Reaction score
2,855
First Language
Dutch
Primarily Uses
RMMV
implimenting in the plugin itself makes it transparant,
the plugin I tried always leaves to black packground somehow.

adding it to the plugin is relative easy, I dont mind helping you
with that part so it always draw the background.

it's either black or full resolution size background.
if part of it, impliment it with the code above.
 

NineTales

Veteran
Veteran
Joined
Nov 26, 2019
Messages
70
Reaction score
29
First Language
English
Primarily Uses
RMMV
implimenting in the plugin itself makes it transparant,
the plugin I tried always leaves to black packground somehow.

adding it to the plugin is relative easy, I dont mind helping you
with that part so it always draw the background.

it's either black or full resolution size background.
if part of it, impliment it with the code above.
Sure, thank you!
If you think you can implement it directly into the plugin that would be great!

I'm ok with a fully transparent background if that's possible. (showing the map underneath the ui)

Here's a link to the file of the plugin.
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
7,225
Reaction score
2,855
First Language
Dutch
Primarily Uses
RMMV
with directly into the plugin is not the background plugin :)
for example, if you want a background on a custom scene item plugin,
that we need to use that one to impliment it.

for default, it might not work, unless you take the entire part I think,
as I dont see how it could be done otherwise.

if you have rpgmv on steam, there is an AltMenuScreen3, but it has an issue
as well, it depends what plugins for what scenes you use.

I cant help you directly this day or tomorrow, but can on monday.
unless you manage to do it on your own or an advanced coder that knows
how to make black dissapear.

I believe there was a way for that though, something to with PIXI and canvas.
but I need to search for that part, or check forum who had that issue.
 

NineTales

Veteran
Veteran
Joined
Nov 26, 2019
Messages
70
Reaction score
29
First Language
English
Primarily Uses
RMMV
with directly into the plugin is not the background plugin :)
for example, if you want a background on a custom scene item plugin,
that we need to use that one to impliment it.

for default, it might not work, unless you take the entire part I think,
as I dont see how it could be done otherwise.

if you have rpgmv on steam, there is an AltMenuScreen3, but it has an issue
as well, it depends what plugins for what scenes you use.

I cant help you directly this day or tomorrow, but can on monday.
unless you manage to do it on your own or an advanced coder that knows
how to make black dissapear.

I believe there was a way for that though, something to with PIXI and canvas.
but I need to search for that part, or check forum who had that issue.
A background plugin is fine too!
Whatever you think will work haha

Honestly the fact that you're trying to help is enough.
Whenever you get some time or a chance I would be grateful.
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
7,225
Reaction score
2,855
First Language
Dutch
Primarily Uses
RMMV
Monday, I can impliment the code into the plugins directly for you,
if you want a seperate plugin, or a modification in 1 of the background plugins
that exist, than someone else need to do that with more knowledge.

I keep it more to a bit basics and small modification I can do better (for now).
so if no-one helped you before that, DM me with the plugins or link to it
where you want a background on it, and I fix that for you.
 

NineTales

Veteran
Veteran
Joined
Nov 26, 2019
Messages
70
Reaction score
29
First Language
English
Primarily Uses
RMMV
Monday, I can impliment the code into the plugins directly for you,
if you want a seperate plugin, or a modification in 1 of the background plugins
that exist, than someone else need to do that with more knowledge.

I keep it more to a bit basics and small modification I can do better (for now).
so if no-one helped you before that, DM me with the plugins or link to it
where you want a background on it, and I fix that for you.
I will wait until Monday then and send you a DM with more information!
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
7,225
Reaction score
2,855
First Language
Dutch
Primarily Uses
RMMV
DM me with the plugin, where you want a background in it.
and will fix that for you, with the edits that you can do after.
so it can fit your needs.
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
16,742
Reaction score
9,291
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

For some reason a vegan webpage was suggested for me on FB. So I thought let's troll them. Because some of the posters needed a reality check.
I intended to start losing some weight starting today but It's apparently my birthday and I was given 2 big Toblerone's. So....Tomorrow then :p
JR.png
design for 1920's Jazz-singer
(can you guess what character inspired me here? xD )
Another brief AD video. Pretty proud of this.
new to game making and open to any help on getting started

Forum statistics

Threads
129,823
Messages
1,205,525
Members
170,947
Latest member
punthanet
Top