Sleek Item Popup

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
378
First Language
English
Primarily Uses
Sleek Item Popup v1.0
by V.M.


Introduction
Quick event script command you ca use to popup the name and icon of an item you obtain in a nicer format then the message window.

Screenshots

How to Use
Plug and play.
popup(type,item,amount,duration) withing event script boxes
Details within script

Script
Convenient pastebin... here!

FAQ
None yet!

Credit and Thanks
- By V.M.
- Free to use in any non-commercial or commercial project

Author's Notes
I'm not too fond of tea...
 
Last edited by a moderator:

ReconVirus

Veteran
Veteran
Joined
Sep 24, 2012
Messages
54
Reaction score
1
Primarily Uses
Thank you so much for this awesome script!

But i do notice a slight lag when the popup happens. And the popop itself doesnt stay up very long when its fully loaded on the screen

(I change the duration, but it seems its how long it takes to load up )
 

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
378
First Language
English
Primarily Uses
Thank you so much for this awesome script!

But i do notice a slight lag when the popup happens. And the popop itself doesnt stay up very long when its fully loaded on the screen

(I change the duration, but it seems its how long it takes to load up )
Hmm, I'm not sure about the lag yet, but as for duration not working as intended, that's different now. Pastebin has been updated
 

FenixFyreX

Fire Deity
Veteran
Joined
Mar 1, 2012
Messages
434
Reaction score
310
First Language
English
Primarily Uses
The lag is most likely due to you never disposing of each popup window. In your scene update alias, you never call $popup_window.dispose, thus all the window objects stay in memory. Either change it, or make the window reusable, i.e:

$popup_window.popup(blah, arg2, bluh)
 

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
378
First Language
English
Primarily Uses
The lag is most likely due to you never disposing of each popup window. In your scene update alias, you never call $popup_window.dispose, thus all the window objects stay in memory. Either change it, or make the window reusable, i.e:

$popup_window.popup(blah, arg2, bluh)
Hmm, so you're telling me that setting the variable to nil does not free up all memory objects?
 

FenixFyreX

Fire Deity
Veteran
Joined
Mar 1, 2012
Messages
434
Reaction score
310
First Language
English
Primarily Uses
Nope, you need to call #dispose on the window and then set it to nil &/or a new window

Code:
#change this:
# $popupwindow = nil if $popupwindow.opacity < 0
#to this:
if $popupwindow.opacity < 0
$popupwindow.dispose
$popupwindow = nil
end
-OR-

Keep the same window and just change its contents per popup.

Code:
#change this:
# $popupwindow = Item_Popup.new(data,amount,duration,nosound)
#to this:
$popupwindow ||= Item_Popup.new
$popupwindow.pop(data,amount,duration,nosound)
 
Last edited by a moderator:

KyleRiley

Veteran
Veteran
Joined
Oct 1, 2012
Messages
31
Reaction score
6
First Language
English (CAN)
Primarily Uses
I really like this script so I was attempting to use it but... I'm us'ng Yanfly Menu and I keep getting an error for line 103 when ever I tried to open my menu before grabbing an item. After I get an item and the "item get" popup occurs I'm allowed to open my menu just fine. I'm not so good with scripts but I took out the lines:



Code:
 def pre_terminate
	popup_preterminate
	$popupwindow.visible = false
end
These are lines 101-104 and it doesn't give me the error anymore. I have no idea if I screwed something up but I'm just letting you know. It's a very nice script and I would love to use it, but I don't want to go in and change it on you or anything. I'll just wait and see if you fix it, okay? xP
 
Last edited by a moderator:

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
378
First Language
English
Primarily Uses
Nope, you need to call #dispose on the window and then set it to nil &/or a new window

Code:
#change this:
# $popupwindow = nil if $popupwindow.opacity < 0
#to this:
if $popupwindow.opacity < 0
$popupwindow.dispose
$popupwindow = nil
end
-OR-

Keep the same window and just change its contents per popup.

Code:
#change this:
# $popupwindow = Item_Popup.new(data,amount,duration,nosound)
#to this:
$popupwindow ||= Item_Popup.new
$popupwindow.pop(data,amount,duration,nosound)
Well, that could add up to quite a leak. Good to know, thanks.

I really like this script so I was attempting to use it but... I'm us'ng Yanfly Menu and I keep getting an error for line 103 when ever I tried to open my menu before grabbing an item. After I get an item and the "item get" popup occurs I'm allowed to open my menu just fine. I'm not so good with scripts but I took out the lines:



Code:
 def pre_terminate
    popup_preterminate
    $popupwindow.visible = false
end
These are lines 101-104 and it doesn't give me the error anymore. I have no idea if I screwed something up but I'm just letting you know. It's a very nice script and I would love to use it, but I don't want to go in and change it on you or anything. I'll just wait and see if you fix it, okay? xP
That would have been a problem just with my script alone. I've updated the pastebin to fix that.
 

KyleRiley

Veteran
Veteran
Joined
Oct 1, 2012
Messages
31
Reaction score
6
First Language
English (CAN)
Primarily Uses
Oh, really? Awesome! I really like this script. :3
 

ShinGamix

DS Style 4Ever!
Veteran
Joined
Mar 18, 2012
Messages
3,905
Reaction score
451
First Language
April Fools
Primarily Uses
N/A
your pastebin file isnt working for me.
 

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
378
First Language
English
Primarily Uses
If it's not copying right, you can just hit download up near the top left to get it in a text file.
 

ShinGamix

DS Style 4Ever!
Veteran
Joined
Mar 18, 2012
Messages
3,905
Reaction score
451
First Language
April Fools
Primarily Uses
N/A
my little brother actually had the script so i got it off him.

How can you make gold popup?
 

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
378
First Language
English
Primarily Uses
You cheat by making a fake item with the gold icon and name and call the popup manually whenever you add gold, like i used item 40 so the script call would be for when adding 100 gold:

popup(0,40,100)
 

ShinGamix

DS Style 4Ever!
Veteran
Joined
Mar 18, 2012
Messages
3,905
Reaction score
451
First Language
April Fools
Primarily Uses
N/A
My little brother and me figured that out but I was hoping that was not the real it was done but it does work. thanks Vlue!
 

Acezon

Om Nom Nom
Veteran
Joined
Apr 22, 2012
Messages
131
Reaction score
25
First Language
English
Primarily Uses
N/A
I'm having an issue when it comes to multiple items: the display overlaps even though I made a wait statement in the event and adjusted the script's timing. Any ideas?

EDIT:

Also, can you make an add-on where it can be displayed even when the player is moving? It's kind of boring waiting for all items to display :D
 
Last edited by a moderator:

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
378
First Language
English
Primarily Uses
Any ideas... any ideas... Hmm... Ah, oh I know!

Just updated the script so it queues popups together, so they won't overlap if spammed and yes, if you want, you can move around with them going.

Report any bugs!
 

Acezon

Om Nom Nom
Veteran
Joined
Apr 22, 2012
Messages
131
Reaction score
25
First Language
English
Primarily Uses
N/A
Wow, this update is great! Now, I can just use the Change Items command without calling the script! Thanks! :rock-left: :D :rock-right:
 

Bob Saget

Veteran
Veteran
Joined
Jan 31, 2013
Messages
66
Reaction score
2
First Language
English
Primarily Uses
Nicely done! This is a fine script - I love how you accept members advice, and use it to your advantage when updating your scripts.

I can promise you, it really does make a difference!
 

JohnnyR

Dungeon Master
Restaff
Joined
Mar 27, 2013
Messages
275
Reaction score
135
First Language
English
Primarily Uses
RMMV
Vlue, seriously man, anybody can create an amazing game just by using your scripts. They don't need monsters, actors, nothing but your scripts! Great job, made my stupid game look waaay better now, thanks for that!  :D
 

smeros

Villager
Member
Joined
Oct 18, 2013
Messages
15
Reaction score
3
First Language
Turkish
Primarily Uses
RMMV
I love this script. You really did a good job.
 

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