Jump to content


Photo

Gab Manager


  • Please log in to reply
9 replies to this topic

#1 Tsukihime

Tsukihime

    Advanced Member

  • Ace Member
  • 7,120 posts
  • LocationToronto
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 03 November 2012 - 11:10 AM

Gab Manager
-Tsukihime

The original gab window script says this
 
 
These script calls can only be used from a map. The Gab Window will not appear in battle or anywhere else.

So I added a gab window to every scene.

Download

Script: http://db.tt/EM8xWrro
Required: Gab Window

Usage

Show a gab window by calling
 
 
 
 
SceneManager.show_gab(args)

Instructions for what the gabs are can be found in the gab window script.

You can choose where to position the gab window by super'ing the `create_gab_window` method in your own scene classes and setting the x and y values.

Example

With the Gab Manager is it very easy to add extra gabs everywhere.

scene_gabs_shop.JPG

Of course, you need to fine-tune the window and gab and overall looks, but you probably would be doing that anyways.

This piece of code accomplishes the above:
 
 
 
 
class Scene_Shop < Scene_MenuBase

  def create_gab_window
    super
    @gab_window.x = 150
    @gab_window.y = -10
  end

  alias :scene_gabs_do_buy :do_buy
  def do_buy(number)
    text = sprintf("Purchased %d %s for %d %s!", number, @item.name, buying_price*number, Vocab::currency_unit)
    SceneManager.show_gab(text, 0)
    scene_gabs_do_buy(number)
  end

  alias :scene_gabs_do_sell :do_sell
  def do_sell(number)
    text = sprintf("Sold %d %s for %d %s!", number, @item.name, selling_price*number, Vocab::currency_unit)
    SceneManager.show_gab(text, 0)
    scene_gabs_do_sell(number)
  end
end

Edited by Tsukihime, 16 February 2013 - 09:22 AM.

All of my work can be found on my website:

banner200x40.png

You can follow me on any of these platforms:

logo_facebook40x40.pnglogo_twitter40x40.pnglogo_youtube40x40.pnglogo_patreon40x40.png

Go here for Bugs and Requests.

 

Want to become a beta tester for my plugins before they are released to the public?


#2 estriole

estriole

    Advanced Member

  • Ace Member
  • 1,999 posts
  • LocationIndonesia
  • RM Skill - Coder

Posted 04 November 2012 - 01:10 AM

whoa... i only put in one scene(and in rough way) and you made it possible in all scene... nice one :D.
and it's only by adding it in scene_base... of course... it's parent of all scene. why don't i think about that before. :D.

but i think you should put yanfly addon in topic title. so people will now it's add on to yanfly gab window script tsuki.

#3 Caveras

Caveras

    Advanced Member

  • Ace Member
  • 565 posts
  • RM Skill - Designer

Posted 07 January 2013 - 03:32 PM

Is it possible that the shop example should actually spell

Scene_Shop < Scene_MenuBase

 

?


(You have Scene_Base, which provokes a superclass mismatch error.)


Edited by Caveras, 09 January 2013 - 03:02 AM.

Hello there!

Here are some of my icon resources ยป http://www.rpgmakerv...apons-and-more/

Posted a new set on 16 June!


#4 ekomega

ekomega

    Advanced Member

  • Ace Member
  • 268 posts

Posted 09 February 2013 - 01:59 PM

Quick question - is it possible to have the name of the map (when you enter a new map) appear in a gab window instead of the default method?  Thanks.



#5 ShinGamix

ShinGamix

    delinquent but not a law-breaker

  • April Fool Group- gotcha
  • PipPipPip
  • 681 posts
  • LocationAlien Ship
  • RM Skill - Designer

Posted 09 February 2013 - 02:50 PM

How would I get the gab message to appear  at the bottom of the screen instead of the top?


The Topic of Battle Dungeons!!

sg_bar10.png


 

userlo10.png

 

 


#6 Tsukihime

Tsukihime

    Advanced Member

  • Ace Member
  • 7,120 posts
  • LocationToronto
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 09 February 2013 - 04:50 PM

def create_gab_window
  super
  @gab_window.x = 150
  @gab_window.y = -10
end

Those are the positions play around with the values and see how they work.
Quick question - is it possible to have the name of the map (when you enter a new map) appear in a gab window instead of the default method?  Thanks.

I think yanfly had a script for that based on the gab manager but I am not sure.

All of my work can be found on my website:

banner200x40.png

You can follow me on any of these platforms:

logo_facebook40x40.pnglogo_twitter40x40.pnglogo_youtube40x40.pnglogo_patreon40x40.png

Go here for Bugs and Requests.

 

Want to become a beta tester for my plugins before they are released to the public?


#7 ekomega

ekomega

    Advanced Member

  • Ace Member
  • 268 posts

Posted 10 February 2013 - 03:49 AM

Alright, thanks.



#8 Sly

Sly

    Advanced Member

  • Ace Member
  • 128 posts
  • LocationChicago
  • RM Skill - Writer

Posted 16 February 2013 - 06:02 AM

How is this different from YF Gab window? http://yanflychannel...pts/gab-window/

I notice a lot of similarity to function in a lot of your others codes too. Not just in comparison to YF but Japanese coders as well.



#9 Galv

Galv

    Forum Defender

  • Staff Manager/Global Mod
  • 5,599 posts
  • LocationAustralia
  • RM Skill - Jack of All Trades

Awards Bar:

Users Awards

Posted 16 February 2013 - 06:05 AM

If you would read, it's an add on for that script you linked to... to make it work in all scenes, not just the map...

gs-banner_zpsfc59b073.pngp7GQmH4.png 2hjKrWv.png


#10 Tsukihime

Tsukihime

    Advanced Member

  • Ace Member
  • 7,120 posts
  • LocationToronto
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 16 February 2013 - 09:24 AM

I notice a lot of similarity to function in a lot of your others codes too. Not just in comparison to YF but Japanese coders as well.

It is not unthinkable that two or more people might come up with the same idea or the same implementation, especially if it a small script.

Someone once PM'd me accusing me of plagiarizing a whole bunch of scripters from all sorts of places and not leaving any credits whatsoever. This included scripts from XP/VX and japanese scripts that I've never seen before. Apparently I'm supposed to be crediting the original person who came up with the idea and it is my responsibility to see whether any of these scripts have already been written or not. Too much work, I'd rather "plagiarize" than try to find the original script.

Of course, the scripts themselves were written differently, but all that mattered was that I "stole ideas" without proper attribution.

Edited by Tsukihime, 16 February 2013 - 10:06 AM.

All of my work can be found on my website:

banner200x40.png

You can follow me on any of these platforms:

logo_facebook40x40.pnglogo_twitter40x40.pnglogo_youtube40x40.pnglogo_patreon40x40.png

Go here for Bugs and Requests.

 

Want to become a beta tester for my plugins before they are released to the public?





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users