Bizarre issue with Yanfly's Common Event Shop and picture overlays

I've being using Yanfly's Common Event Shop script and calling it via a command on the menu. Functionality-wise, everything is working fine. There's just one little problem.

Any pictures currently being displayed slap themselves right on top of the shop UI.

a4a2830865.jpg


Not sure what else to say, honestly. The only script of mine that I think could be conflicting is a simple picture-lock script for use with parallax mapping, but the issue persists even if that's removed. Script order doesn't seem to be making any difference either, as I've tried both extremes of top of the list to bottom of the list.

EDIT: Here's a standard shop being called under the exact same circumstances: http://puu.sh/l5luX/d09c97aa7b.jpg
I think that should not happen with no scripts installed.

Can you please list all scripts you use?

Do you maybe use some scripts for parallaxing?
Yes, it happens because those pictures are used on the map scene for parallax mapping.


I have looked into Yanfly's script, and it indeed creates these pictures again on the common event shop scene.


Because the pictures use a viewport which got 2000 for it's Z value, the pictures will always appear above the windows. I think Yanfly made this because it is possible to execute the common events inside the shop scene too, and wanted to make the pictures show above the windows for that reason.


If you don't plan on using pictures in the scene, you can simply change this line in the common event shop script:

Code:
@viewport.z = 2000
Set the value to be -1 or something very low, and the pictures will appear below the windows. At least I think, I did not test this. 😛
Whoops, I forgot to follow this thread so I completely missed these two replies by just over three weeks.  :stare:

Nevertheless, changing viewport.z to -1 worked perfectly. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/bizarre-issue-with-yanflys-common-event-shop-and-picture-overlays.48829/