Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

how to show load info when file selected

S0L0

Member

Hey there, I'm SURE someone already made this, but I relay can't find it...

My idea is pretty simple, make a menu wich support several save slots, and when I move the cursor (arrow or whateva) to over a specific "slot", on right side I see a small window showing that file information

I mean, the actual system use 4 boxes constantly with the info already integrated there, wich is pretty basic and boring that way, what I want is to have a menu splited in half, in left side I see the save files names (save 1, save 2, save 3, etc) and on right side I'll see the file information WHEN my cursor is over the specific file

because If i'm not wrong, for make this method load items/skills I would for exemple create this on the Scene_Item:

Code:
..
  def update_item
    if Input.press?(Input::DOWN) or Input.press?(Input::UP)
      @item = @item_window.item
      @information_window.refresh (@item)
      return
    end
...

while the information_window would be like:

...
  def initialize(item)
    super(400, 50, 360, 400)
    @item = item
    refresh (@item)
  end

  def refresh(item)
    self.contents.clear
    @item = item
    if item != nil
blablablabla
    end
...
I think you know what I mean, but how exactly could I make this method work for the save/load menus..., if no one knows how exactly explain me, can either tell me where are the other load/save menus wich do this or even betetr tell me a tutorial teaching this right :P

Thanks
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top