"Load" option from the ingame menu?

Status
Not open for further replies.

Gamingstar

****** Gang Leader
Veteran
Joined
Jul 17, 2017
Messages
51
Reaction score
11
First Language
English
Primarily Uses
RMVXA
Hello, I need help with adding the a "Load" option above "Save" in the ingame menu. (Without yanfly's menu script) Any help is appreciated!
https://i.imgur.com/r2uesZd.png
 
Last edited:

Heirukichi

Veteran
Veteran
Joined
Sep 24, 2015
Messages
1,421
Reaction score
596
First Language
Italian
Primarily Uses
RMVXA
This should work for you.

Code:
class Window_MenuCommand < Window_Command
 
  alias hml_add_original_commands_old add_original_commands
  def add_original_commands
    hml_add_original_commands_old
    add_command("Load", :load, load_possible)
  end
 
  def load_possible
    DataManager.save_file_exists?
  end
 
end

class Scene_Menu < Scene_MenuBase
 
  alias hml_create_command_window_old create_command_window
  def create_command_window
    hml_create_command_window_old
    @command_window.set_handler(:load, method(:command_load))
  end
 
  def command_load
    SceneManager.call(Scene_Load)
  end
 
end
Just copy/paste it in your scripts, below Materials.
 
Last edited:
  • Like
Reactions: mar

Gamingstar

****** Gang Leader
Veteran
Joined
Jul 17, 2017
Messages
51
Reaction score
11
First Language
English
Primarily Uses
RMVXA
This should work for you.

Code:
class Window_MenuCommand < Window_Command
 
  alias hml_add_original_commands_old add_original_commands
  def add_original_commands
    hml_add_original_commands_old
    add_command("Load", :load, load_possible)
  end
 
  def load_possible
    DataManager.save_file_exists?
  end
 
end

class Scene_Menu < Scene_MenuBase
 
  alias hml_create_command_window_old create_command_window
  def create_command_window
    hml_create_command_window_old
    @command_window.set_handler(:load, method(:command_load))
  end
 
  def command_load
    SceneManager.call(Scene_Load)
  end
 
end
Just copy/paste it in your scripts, below Materials.
THANKS! Works perfectly! (PS. Do I owe you credit in my game credits when I publish it? I'm gonna credit you for now)
 

Heirukichi

Veteran
Veteran
Joined
Sep 24, 2015
Messages
1,421
Reaction score
596
First Language
Italian
Primarily Uses
RMVXA
Do I owe you credit in my game credits when I publish it? I'm gonna credit you for now
Giving proper credit to people who help you is always the right thing to do. Anyway for that one I only used a few built-in methods already existing in Window_TitleCommand and Scene_Title so it wasn't much work, it took around 5 minutes to get that done (even less probably).

I won't die if you do not give credit to me even if being credited is always appreciated.
 

Gamingstar

****** Gang Leader
Veteran
Joined
Jul 17, 2017
Messages
51
Reaction score
11
First Language
English
Primarily Uses
RMVXA
Giving proper credit to people who help you is always the right thing to do. Anyway for that one I only used a few built-in methods already existing in Window_TitleCommand and Scene_Title so it wasn't much work, it took around 5 minutes to get that done (even less probably).

I won't die if you do not give credit to me even if being credited is always appreciated.
Alright, I'mma give you credit.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,981
Members
137,563
Latest member
cexojow
Top