Sign in to follow this  
Followers 0
Fegarur

Título 'Inteligente'

1 post in this topic

Descripción:
Como pone en el script: Edita la pantalla del tí­tulo para mostrar la opción Continuar sólo si está disponible, es decir, si hay una partida guardada.

Screen:
[SPOILER]user posted image[/SPOILER]

Script:
[SPOILER]
CODE
#==============================================================================
#  Edita la pantalla del tí­tulo para mostrar la opción Continuar sólo si
#  esta opción está disponible (si hay una partida guardada)
#------------------------------------------------------------------------------
#  Autor: RisingPhoenix
#==============================================================================

class Scene_Title < Scene_Base
   def update
       super
       @command_window.update
       if Input.trigger?(Input::C)
           # Comprueba si 'Continuar' está disponible
           if @continue_enabled
               # Si lo está, hace que se muestren las tres opciones
               case @command_window.index
               when 0    # Nueva Partida
                   command_new_game
               when 1    # Continuar
                   command_continue
               when 2    # Salir
                   command_shutdown
               end
           else
               # De lo contrario, sólo se muestran 'Empezar' y 'Salir'
               case @command_window.index
               when 0    # Nueva Partida
                   command_new_game
               when 1    # Salir
                   command_shutdown
               end
           end
       end
   end # Termina update
   
   def create_command_window
       s1 = Vocab::new_game
       s2 = Vocab::continue
       s3 = Vocab::shutdown
       # Elimina la opción 'Continuar' si no está disponible
       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
       # Comenzando la localización del cursor...
       if @continue_enabled
           @command_window.index = 1
       else
           @command_window.index = 0
       end
       @command_window.openness = 0
       @command_window.open
   end
end
[/SPOILER]

Instrucciones:
Nada especial, simplemente colocad el script encima de Main.

Créditos:
Script creado por RisingPhoenix. Edited by Fegarur
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0