RPG Maker universe
Vous souhaitez réagir à ce message ? Créez un compte en quelques clics ou connectez-vous pour continuer.
-28%
Le deal à ne pas rater :
Précommande : Smartphone Google Pixel 8a 5G Double Sim 128Go ...
389 € 539 €
Voir le deal

Fond dans le menu

Aller en bas

Fond dans le menu Empty Fond dans le menu

Message par Nicolas Dim 20 Fév - 16:13

Ce script de heisenman rajoute un fond dans le menu est place les onglets de l'autre côter(je crois) :
Fond dans le menu 48352948

Code:
#==============================================================================
# Scene_Menu Customization
#------------------------------------------------------------------------------
# The scope of this script is to edit simple values in the Scene_Menu, such as
# windows coordinates and opacity. It also provides the option to have a picture
# as background.
#
#==============================================================================
# Instructions
#------------------------------------------------------------------------------
# Paste this script ? Materials but above ? Main in your Script Editor.
#
#==============================================================================
# Compatibility
#------------------------------------------------------------------------------
# Does not work with other Menu Scripts.
#
#==============================================================================



#==============================================================================
# Configuration start here.
#==============================================================================

module SM_S
 
  # image de fond, place inside "Graphics\System" folder.
  # Omit file extension (.jpg/.png), leave "" for no picture. Case sensitive.
  MenuBack = "Gameover"
 
  # opacité de l'image de fonde. Insert a value  between 0 and 255.
  # 0 = invisible, 255 = full opacity. 255 is default value.
  MenuBackOpacity = 255
 
  # X coordinate of the command window. 0 is default value.
  CommandsX = 0
 
  # Y coordinate of the command window. 0 is default value.
  CommandsY = 0
 
  # Opacité du windows skin (???). Insert a value  between 0 and 255.
  # 0 = invisible, 255 = full opacity. 255 is default value.
  CommandsOpacity = 255
 
  # X coordinate of the status window.
  # 160 is default value.
  StatusX = 160
 
  # Opacité de la fenêtre de statu. Insert a value  between 0 and 255.
  # 0 = invisible, 255 = full opacity. 255 is default value.
  StatusOpacity = 255
 
  # X coordinate of the gold window. 0 is default value.
  GoldX = 0
 
  # Y coordinate of the gold window. 360 is default value.
  GoldY = 360
 
  # Opacité de la fenêtre d'argent. Insert a value  between 0 and 255.
  # 0 = invisible, 255 = full opacity. 255 is default value.
  GoldOpacity = 255
 
end

#==============================================================================
# Configuration ends here.
#==============================================================================



#==============================================================================
# ** Scene_Menu
#------------------------------------------------------------------------------
#  This class performs the menu screen processing.
#==============================================================================

class Scene_Menu < Scene_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #    menu_index : command cursor's initial position
  #--------------------------------------------------------------------------
  def initialize(menu_index = 0)
    @menu_index = menu_index
  end
  #--------------------------------------------------------------------------
  # * Start processing
  #--------------------------------------------------------------------------
  def start
    super
    create_menu_background
    create_command_window
    @command_window.x = SM_S::CommandsX
    @command_window.y = SM_S::CommandsY
    @command_window.opacity = SM_S::CommandsOpacity
    @gold_window = Window_Gold.new(SM_S::GoldX, SM_S::GoldY)
    @gold_window.opacity = SM_S::GoldOpacity
    @status_window = Window_MenuStatus.new(SM_S::StatusX, 0)
    @status_window.opacity = SM_S::StatusOpacity
  end
  #--------------------------------------------------------------------------
  # * Create Menu Background
  #--------------------------------------------------------------------------
  def create_menu_background
    @menuback_sprite = Sprite.new
    @menuback_sprite.bitmap = Cache.system(SM_S::MenuBack)
    @menuback_sprite.opacity = SM_S::MenuBackOpacity
    update_menu_background
  end
end

Nicolas
Admin
Admin

Messages : 113
Date d'inscription : 20/02/2011

https://rpguniverse.forumsactifs.com

Revenir en haut Aller en bas

Revenir en haut

- Sujets similaires

 
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum