rpgmakervxace吧 关注:17,924贴子:51,416
  • 2回复贴,共1

【求助】使用的外站的菜单美化脚本,关于背景的问题

只看楼主收藏回复

使用的外站的脚本,脚本能在菜单加一个背景图片,并且系统默认的几个选项进去以后也能显示背景,但是自己加入菜单的选项不能显示背景,请问怎么修改能使自己加的菜单选项也能在进入之后显示背景?脚本如下:


1楼2014-09-25 23:52回复
    #--------------------------------------------------------------------------
    # ● Update Background
    #--------------------------------------------------------------------------
    def update_background
    @background_sprite.ox += $game_system.wallpaper_scroll[0]
    @background_sprite.oy += $game_system.wallpaper_scroll[1]
    end
    #--------------------------------------------------------------------------
    # ● Update Particle
    #--------------------------------------------------------------------------
    def update_particle
    return unless PARTICLES
    @particle_bitmap.each {|sprite| sprite.update }
    end
    end
    #==============================================================================
    # ● Scene Menu
    #==============================================================================
    class Scene_Menu < Scene_MenuBase
    include WALLPAPER_EX
    #--------------------------------------------------------------------------
    # ● Start
    #--------------------------------------------------------------------------
    alias mog_layout_ex_start start
    def start
    mog_layout_ex_start
    set_window_opacity
    end
    end
    #==============================================================================
    # ● Scene Item
    #==============================================================================
    class Scene_Item < Scene_ItemBase
    include WALLPAPER_EX
    #--------------------------------------------------------------------------
    # ● Start
    #--------------------------------------------------------------------------
    alias mog_layout_ex_start start
    def start
    mog_layout_ex_start
    set_window_opacity
    end
    end
    #==============================================================================
    # ● Scene Skill
    #==============================================================================
    class Scene_Skill < Scene_ItemBase
    include WALLPAPER_EX
    #--------------------------------------------------------------------------
    # ● Start
    #--------------------------------------------------------------------------
    alias mog_layout_ex_start start
    def start
    mog_layout_ex_start
    set_window_opacity
    end
    end
    #==============================================================================
    # ● Scene Equip
    #==============================================================================
    class Scene_Equip < Scene_MenuBase
    include WALLPAPER_EX
    #--------------------------------------------------------------------------
    # ● Start
    #--------------------------------------------------------------------------
    alias mog_layout_ex_start start
    def start
    mog_layout_ex_start
    set_window_opacity
    end
    end
    #==============================================================================
    # ● Scene Status
    #==============================================================================
    class Scene_Status < Scene_MenuBase
    include WALLPAPER_EX
    #--------------------------------------------------------------------------
    # ● Start
    #--------------------------------------------------------------------------
    alias mog_layout_ex_start start
    def start
    mog_layout_ex_start
    set_window_opacity
    end
    end
    #==============================================================================
    # ● Scene File
    #==============================================================================
    class Scene_File < Scene_MenuBase
    include WALLPAPER_EX
    #--------------------------------------------------------------------------
    # ● Start
    #--------------------------------------------------------------------------
    alias mog_layout_ex_start start
    def start
    mog_layout_ex_start
    set_window_opacity
    end
    end
    #==============================================================================
    # ● Scene End
    #==============================================================================
    class Scene_End < Scene_MenuBase
    include WALLPAPER_EX
    #--------------------------------------------------------------------------
    # ● Start
    #--------------------------------------------------------------------------
    alias mog_layout_ex_start start
    def start
    mog_layout_ex_start
    set_window_opacity
    end
    end
    #==============================================================================
    # ● Scene Enemy Type
    #==============================================================================
    class Scene_EnemyType < Scene_MenuBase
    include Point_Tree
    include WALLPAPER_EX
    #--------------------------------------------------------------------------
    # ● Start
    #--------------------------------------------------------------------------
    alias mog_layout_ex_start start
    def start
    mog_layout_ex_start
    set_window_opacity
    end
    end
    #==============================================================================
    # ● Scene POINT
    #==============================================================================
    class Scene_Point_Actor < Scene_MenuBase
    include Point_Tree
    include WALLPAPER_EX
    #--------------------------------------------------------------------------
    # ● Start
    #--------------------------------------------------------------------------
    alias mog_layout_ex_start start
    def start
    mog_layout_ex_start
    set_window_opacity
    end
    end
    #==============================================================================
    # ● Scene task
    #==============================================================================
    class Scene_Task_Type < Scene_MenuBase
    include WALLPAPER_EX
    #--------------------------------------------------------------------------
    # ● Start
    #--------------------------------------------------------------------------
    alias mog_layout_ex_start start
    def start
    mog_layout_ex_start
    set_window_opacity
    end
    end#==============================================================================
    # ● Window SaveFile
    #==============================================================================
    class Window_SaveFile < Window_Base
    #--------------------------------------------------------------------------
    # ● Initialize
    #--------------------------------------------------------------------------
    alias mog_wallpaper_initialize initialize
    def initialize(height, index)
    mog_wallpaper_initialize(height, index)
    self.opacity = WALLPAPER_EX::WINDOW_OPACITY if can_opacity_window?
    end
    #--------------------------------------------------------------------------
    # ● Can Opacity Window
    #--------------------------------------------------------------------------
    def can_opacity_window?
    return true
    end
    end
    $mog_rgss3_wallpaper_ex = true


    5楼2014-09-25 23:54
    回复
      2026-01-08 06:56:51
      广告
      不感兴趣
      开通SVIP免广告
      无图无真相


      IP属地:上海6楼2014-09-27 00:32
      回复