Popup dialogue window

ramza

Lunatic Coder
Veteran
Joined
Jan 28, 2013
Messages
776
Reaction score
487
First Language
English
Primarily Uses
RMMV
Hello. I'm still pretty new at this javascript thing, and I've mostly been learning by disassembling other people's scripts. Unfortunately, nothing I've managed to look at has helped me figure out how to go about doing the following:

  • Popping a window with text over the menu scene
  • Making that window have an 'ok' choice that closes it, or cancelling it closes it
  • Making it so that while this window is on screen, it has focus, so the cursor doesn't move underneath it.



I have found a way to open a window on top of other windows, which shows the message, but I can't find a way to clear that message, and it doesn't have focus, so the menu underneath is still moved/accessed. I'm sure this is easy to do, I just don't know where to look. Anyone wanna help me out here?
 

Kino

EIS Game Dev
Veteran
Joined
Nov 27, 2015
Messages
556
Reaction score
794
First Language
English
Primarily Uses
RMMV
If you want to give the window focus over other windows, you can. But if we're talking about touch input, the window classes only recognize inputs that are within their frame with touch.


So,  what you can do is set a window inactive I believe inside of the menu scene when your help window is active. 


Take a look at the shop scene; windows get disabled when another window is active.
 

ramza

Lunatic Coder
Veteran
Joined
Jan 28, 2013
Messages
776
Reaction score
487
First Language
English
Primarily Uses
RMMV
If you want to give the window focus over other windows, you can. But if we're talking about touch input, the window classes only recognize inputs that are within their frame with touch.


So,  what you can do is set a window inactive I believe inside of the menu scene when your help window is active. 


Take a look at the shop scene; windows get disabled when another window is active.
Thanks for the help, but I actually found a plugin that does exactly what I needed.


Iavra Generic Popup


Just had to change the position of the popup window, and was good to go. Thanks anyway, though.


optimized.png


It doesn't take focus, but it clears on it's own in a set amount of time, so it's workable.
 

Kino

EIS Game Dev
Veteran
Joined
Nov 27, 2015
Messages
556
Reaction score
794
First Language
English
Primarily Uses
RMMV
Glad to hear you got what you needed! Also, I'm glad you're taking the time out to learn this JavaScript stuff; it's pretty fun.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,575
Latest member
akekaphol101
Top