Save-Point
DerVV's Simple Popup System - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Material Development (https://www.save-point.org/forum-8.html)
+--- Forum: Scripts Database (https://www.save-point.org/forum-39.html)
+---- Forum: RPGMaker XP (RGSS) Engine (https://www.save-point.org/forum-116.html)
+---- Thread: DerVV's Simple Popup System (/thread-6157.html)



DerVV's Simple Popup System - DerVVulfman - 09-09-2016

DerVV's Simple Popup System
Version: 1.2



Introduction
Seriously, this is a simple popup screen that can be used to generate windows that popup on the screen witn important texts. But I posted it as a skeleton for would-be script users to show how to make pop-up windows for their own systems.



Script
The Script



Instructions
Basically paste it below Scene_Debug and above Main.
When you want to run it, make a script call of $scene.begin_pop. The syntax is:
$scene.begin_pop( array_of_text )
where an array of text could be like [ "One line of text here.", "Another line of text" ]

The window will close either by player input or will close by itself if the timer setting is put to use.



Compatibility
Just for RPGMaker XP, though principles would work in other engines.



Terms and Conditions
Oh, this is a simple skeleton script. Nothing needed by me for its use. Heck, other people probably figured this routine out in no time.


RE: DerVV's Simple Popup System - Siletrea - 09-10-2016

(09-09-2016, 03:43 AM)DerVVulfman Wrote:
DerVV's Simple Popup System
Version: 1.0



Introduction
Seriously, this is a simple popup screen that can be used to generate windows that popup on the screen witn important texts.   But I posted it as a skeleton for would-be script users to show how to make pop-up windows for their own systems.



Script
The Script



Instructions
Basically paste it below Scene_Debug and above Main.
When you want to run it, make a script call of $scene.begin_pop.  The syntax is:
$scene.begin_pop( [i]array_of_text )
where an array of text could be like [ "One line of text here.", "Another line of text" ]




Compatibility
Just for RPGMaker XP, though principles would work in other engines.



Terms and Conditions
Oh, this is a simple skeleton script.  Nothing needed by me for its use.  Heck, other people probably figured this routine out in no time.
[/i][/i]

WAH WOAH WOAH *WHOAH*
DOES THIS ACTUALLY CREATE A FULL POPUP WINDOW SEPERATE TO THE GAME!!!! (and can you add pictures/animation!)
THIS COULD BE SO USEFUL!



RE: DerVV's Simple Popup System - DerVVulfman - 09-10-2016

It's a basic system, the Scene_Map mechanics being the basis of the Hotkey popups I use for the Lycan system. I modeled the Window class from the Window_Command class. But it's basic, so no graphics. I leave that to scripters. But you can enter one or more lines of text for things.


RE: DerVV's Simple Popup System - DerVVulfman - 09-11-2016

Minor fix BUMP time.

Nothing much.... I just added a condition so the message pop doesn't interrupt or halt the display of normal messages. Previously, it would, and that could make things look weird if a 'fading' messagebox was stuck on the screen for a time.

I didn't have to worry about that with Lycan as I used it only in the Item & Skill menus... Tongue sticking out


RE: DerVV's Simple Popup System - DerVVulfman - 10-08-2017

Well, I'm back at work on a system that includes popup text, so I figure I might as well give this skeletal script a little


BUMP!

Version 1.2 now includes a new timer system.  Rather than just relying on the player to press a key to close the popup, the end-user may decide to instead make messages last a couple of seconds.

Again, this is merely a skeleton system, designed for script-users to learn.  Nothing like custom or variable popup delays per message were added.  And it is an either/or option.  You either use the timer to make messages vanish by themselves, OR you force the player to close the popup instead. 

Still, it can be used stand-alone if desired.