Quasi Popup Version - 1.00
by Quasi
* I'll make a better video on youtube eventually.
* The <icon:1> actually works in this release.
About
This plugin adds a popup feature to RPG Maker MV. The popups you create will appear above the character and will pick a random popup dialog that you created at a fixed interval. This plugin is not meant to be used as a custom message system, it's intended to make a map look more lively. These popups can be locked to a map coordinate or set as a Notification which will move with the screen ( if you create them manually through script call ). There's also a List feature for notifications, when a popup is added to a list and any popup that list is currently displaying will be shifted up.
Links
Github - Download
Other
The notification list doesn't have much documentation on it yet because it's done through pure js script call.
Disclaimer: This plugin is not meant to be used as a message system!
Setting up Random popups at a Set Interval
We can bring a map to life by having a random popup over an event at every X interval. There are 4 steps to doing this, 2 are optional.
Step 1 – Popup Settings
Setup the following inside a comment in the event.
<popupSettings>
interval: intervalValue
duration: durationValue
offsetX: offsetXValue
offsetY: offsetYValue
alignX: alignXValue
alignY: alignYValue
window: windowValue
</popupSettings>
intervalValue
: Set this value to how often should a popup appear ( In frames )durationValue
: Set this value to how long a popup appears for ( In frames )offsetXValue
: (Optional, default: 0)
Set this value to offset the X position of the popupoffsetYValue
: (Optional, default: 0)
Set this value to offset the Y position of the popupalignXValue
: (Optional, default: center)
Set this value to left, center, or rightalignYValue
: (Optional, default: top)
Set this value to top, center or bottomwindowValue
: (Optional, default: false)
Set this to true or false to display a windowskin
Step 2 – Popup Style
(Optional)
Setup the following inside a comment in the event.
<popupStyle>
font: fontValue
fill: fillValue
stroke: strokeValue
strokeThickness: strokeThicknessValue
align: alignValue
</popupStyle>
fontValue
: Set to font the popup will use in the format fontSize fontNamefillValue
: Set to the css color of the font to usestrokeValue
: Set to the stroke color to use, css ColorstrokeThicknessValue
: Set to the size of the strokealignValue
: Set to text align value; left, center or right
Step 3 – Popup Transition
(Optional)
Setup the following inside a comment in the event.
<popupTransition>
startFrame duration transitionName transitionSetting
</popupTransition>
startFrame
: At what frame does this transition startduration
: How long does the transition lasttransitionName
: Name of the transition to use; See -link- for detailstransitionSetting
: Settings for the transition
Step 4 – Popup Text
For popup text we will write our message inside a comment, with a label directly above it.
Label Format
Quasi Popup X
X
: Change this to the number of that popup
A Comment directly below that label will be marked as Popup #X.
Popup Examples
A bit lazy to write a proper explanation on the examples. But here as some screenshots of my sample popups.
Spoiler
Making Notifications
Making notifications will be considered “Advanced” section. You will need to do quite a bit of javascript using the script command inside event.
Script Call
Two different types of popups.
1. A normal popup
QuasiPopup.start(x, y, string, style, settings, notification);
x
: The X location for the popup to appear ( in pixels )y
: The Y location for the popup to appear ( in pixels )string
: The text inside the popupsettings
: An object will the settings, or set to null to use default settingsnotification
: set to true or false to mark as notification.
2. A popup in a list ( if another popup is added to list, existing popups will slide up )
QuasiPopup.startList =
function(id, x, y, string, style, settings);
id
: The List ID to add a new popup tox
: The X location for the popup to appear ( in pixels )y
: The Y location for the popup to appear ( in pixels )string
: The text inside the popupsettings
: An object will the settings, or set to null to use default settings
本贴来自国际rpgmaker官方论坛作者:Quxios处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/quasi-popup.58257/