Ce script permet de retirer l'option "charger partie" à l'écran titre si il n'y a aucune sauvegarde.
Auteur:RisingPhoenix
Nom:Aucun en particulier
Place: au dessus de main.
#==============================================================================
# Edit the title screen to only display continue if the option is available
# Author: RisingPhoenix
#==============================================================================
class Scene_Title < Scene_Base
def update
super
@command_window.update
if Input.trigger?(Input::C)
#Check whether continue option is available
if @continue_enabled
#If it is, set up handling for all three options
case @command_window.index
when 0 # New Game
command_new_game
when 1 # Continue
command_continue
when 2 # Shutdown
command_shutdown
end
else
#Otherwise, only new game and shutdown need handling
case @command_window.index
when 0 #New Game
command_new_game
when 1 #Shutdown
command_shutdown
end
end
end
end #ends update
def create_command_window
s1 = Vocab::new_game
s2 = Vocab::continue
s3 = Vocab::shutdown
#Remove continue option if continue isn't enabled
if @continue_enabled
@command_window = Window_Command.new(172, [s1, s2, s3])
else
@command_window = Window_Command.new(172, [s1, s3])
end
@command_window.x = (544 - @command_window.width) / 2
@command_window.y = 288
#Starting location of cursor...
if @continue_enabled
@command_window.index = 1
else
@command_window.index = 0
end
@command_window.openness = 0
@command_window.open
end
end