RPG-Maker Index du Forum
S’enregistrerRechercherFAQMembresGroupesConnexion


 Bienvenue 
     Bienvenue sur Planette Rpg Maker. Nous sommes heureux de vous accueillir sur ce forum créer pour  RPG Maker. Vous y
   trouverez des Tutoriaux, des  Ressources,des scripts, des tests ainsi que des news regulieres sur l'actualité de l'informatique.
                                   Vous trouverez aussi de multiples solutions au problèmes concernant votre P.C
                                   Pour toutes questions ou problèmes éventuelles Planette rpg maker met à votre
                                                              disposition une adresse de messagerie     
                                                                 planette-rpg-maker@hotmail.fr

                                                                                  Bonne visites
                                                                                    ADMIN
menu a la FF

 
Répondre au sujet    RPG-Maker Index du Forum » Rpg maker » Rpg Maker VX » Script Sujet précédent
Sujet suivant
menu a la FF
Auteur Message
N♦N¥
Administrateur

Hors ligne

Inscrit le: 24 Mai 2008
Messages: 275
Localisation: St Etienne
Masculin Gémeaux (21mai-20juin) 狗 Chien
Point(s): 190
Moyenne de points: 0,69

Message menu a la FF Répondre en citant
Cela permet d'avoir un menu comme FF


Code:

#==============================================================================

# ** Scene_Title

#------------------------------------------------------------------------------

#  This class performs the title screen processing.

#==============================================================================

class Window_Basic < Window_Base

  #--------------------------------------------------------------------------

  # * Object Initialization

  #--------------------------------------------------------------------------

  def initialize(x, y, width, height)

    super(x, y, width, height)

    self.contents = Bitmap.new(width - 32, height - 32)

    @writtentext  = ""

    refresh

  end

  #--------------------------------------------------------------------------

  # * Refresh

  #--------------------------------------------------------------------------

  def refresh

    self.contents.clear

    rect = Rect.new(0, 0, self.contents.text_size(@writtentext).width, self.contents.text_size(@writtentext).height)

    self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))

    self.contents.draw_text(rect, @writtentext, 1)

  end

  

  def setText(newText)

      @writtentext  = newText

      refresh

  end

end





class Scene_Title < Scene_Base

  #--------------------------------------------------------------------------

  # * Frame Update

  #--------------------------------------------------------------------------

  def update

    super

    @command_window.update

    if Input.trigger?(Input::C)

      case @command_window.index

      when 0    #New game

        command_new_game

      when 1    # Continue

        command_continue

      when 2    # Shutdown

        command_shutdown

      end

    end

    case @command_window.index

      when 0  # New game

        @text_window.setText("Starts a New Game.")

      when 1  # Continue

        @text_window.setText("Loads an Exsisting Save.")

      when 2  # Shutdown

        @text_window.setText("Quits out of Game.")

      end

    end

      #--------------------------------------------------------------------------

  # * Dispose of Command Window

  #--------------------------------------------------------------------------

  def dispose_command_window

    @command_window.dispose

    @text_window.dispose

  end

  #--------------------------------------------------------------------------

  # * Create Command Window

  #--------------------------------------------------------------------------

  def create_command_window

    s1 = Vocab::new_game

    s2 = Vocab::continue

    s3 = Vocab::shutdown

    @text_window = Window_Basic.new(20,30,480,60)

    @text_window.setText("Starts a New Game.")

    @command_window = Window_Command.new(172, [s1, s2, s3])

    @command_window.x = 325

    @command_window.y = 95

    if @continue_enabled                    # If continue is enabled

      @command_window.index = 1             # Move cursor over command

    else                                    # If disabled

      @command_window.draw_item(1, false)   # Make command semi-transparent

    end

    @text_window.openness = 0

    @command_window.openness = 0

    @command_window.open

    @text_window.open

  end

  

    def open_command_window

    @text_window.open

    @command_window.open

    begin

      @text_window.update

      @command_window.update

      Graphics.update

    end until @command_window.openness == 255

  end

  

    def close_command_window

    @text_window.close

    @command_window.close

    begin

      @text_window.update

      @command_window.update

      Graphics.update

      @text_window.openness = @command_window.openness

    end until @command_window.openness == 0

  end

  end



_________________
http://world5.monstersgame.fr/?ac=vid&vid=324044164

Mar 10 Juin - 21:01 (2008) MSN
Publicité






Message Publicité
PublicitéSupprimer les publicités ?

Mar 10 Juin - 21:01 (2008)
Montrer les messages depuis:    
Répondre au sujet    RPG-Maker Index du Forum » Rpg maker » Rpg Maker VX » Script Toutes les heures sont au format GMT + 1 Heure
Page 1 sur 1

 
Sauter vers: 

Index | Creer un forum | Forum gratuit d’entraide | Annuaire des forums gratuits | Signaler une violation | Cookies | Charte | Conditions générales d'utilisation
Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.Traduction par : phpBB-fr.com