gRaViJa

Eniko Ghosts of Grace Dev
Veteran
Joined
Mar 16, 2012
Messages
988
Reaction score
645
First Language
Dutch
Primarily Uses
RMMV
Hey everyone. I'm trying to ad an option to the options screen with YEP Options Core plugin that show a picture of the gamepad controls. The code for "OK process code" I have so far:

this.playOkSound();

$gameScreen.showPicture(28, "tut_gamepad", 1, 600, 300, 100, 100, 255, 0)

This works partly: the image is shown but "behind" the menu. Only when I close the menu the image is shown on the playing screen. So my questions are: 1) how can i show the image in front of the menu (is this like z-index?) and 2) How can i remove the image again once the player uses the cancel/esc/x button?

Here's how the configuration menu for a new option function looks like (as a small reminder ^^):
Screenshot 2021-10-22 at 11.34.13.png
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,673
Reaction score
1,795
First Language
Dutch
Primarily Uses
RMMV
maybe you need to add another function at the OK when you press
it again, it remove the image, or by any pressing button it will be removed.

otherwise, it stays on screen.
 

Latest Threads

Latest Posts

Latest Profile Posts

TFW you get a plugin working correctly with your other plugins ♡\( ̄▽ ̄)/♡

(CW for minor gore - Einar's Y incision is gone for his test portrait)

Cs5kAbZ.png
Doing some winter related edits for a cozy cottage!
I think it's the third time I am changing my skill info plugin, but as I get better at programming, I want to fix the trash I made earlier :p

Streaming while I am programming the plugin. Join in if you wish :)
Currently working on a side game for the One Map Game Challenge. :kaoblush:
3H2mUEI.png

As you can see, the game will be called "Welcome To November". Hopefully, I'll finish it before November ends. :dizzy:
In two days we already have the first advent sunday :eek: Time flies...

Forum statistics

Threads
116,976
Messages
1,103,471
Members
152,842
Latest member
jimster6543
Top