XP默认写不了,用变通方法实现:
论坛搜索截图,
在切换SCENE之前截图,然后将截图作为SCENE的背景,切换SCENE的时候再释放掉这张截图。
惯性思维真可怕……作者: rmxp 时间: 2011-9-29 08:06
貌似是这个吧。。
module Opacity_Menu
def create_screen
@screen = Spriteset_Map.new
end
def dispose_screen
@screen.dispose
end
end
class Window_Base < Window
def initialize(x, y, width, height)
super()
@windowskin_name = $game_system.windowskin_name
self.windowskin = RPG::Cache.windowskin(@windowskin_name)
self.x = x
self.y = y
self.width = width
self.height = height
self.z = 100
if $scene.is_a?(Scene_Menu) or
$scene.is_a?(Scene_Item) or
$scene.is_a?(Scene_Skill) or
$scene.is_a?(Scene_Equip) or
$scene.is_a?(Scene_Status) or
$scene.is_a?(Scene_Save) or
$scene.is_a?(Scene_End) or
$scene.is_a?(Scene_Shop)
self.back_opacity = 160
end
end
end
class Scene_Menu
include Opacity_Menu
alias main_old main
def main
create_screen
main_old
dispose_screen
end
end
class Scene_Item
include Opacity_Menu
alias main_old main
def main
create_screen
main_old
dispose_screen
end
end
class Scene_Skill
include Opacity_Menu
alias main_old main
def main
create_screen
main_old
dispose_screen
end
end
class Scene_Equip
include Opacity_Menu
alias main_old main
def main
create_screen
main_old
dispose_screen
end
end
class Scene_Status
include Opacity_Menu
alias main_old main
def main
create_screen
main_old
dispose_screen
end
end
class Scene_Save
include Opacity_Menu
alias main_old main
def main
create_screen
main_old
dispose_screen
end
end
class Scene_End
include Opacity_Menu
alias main_old main
def main
create_screen
main_old
dispose_screen
end
end
class Scene_Shop
include Opacity_Menu
alias main_old main
def main
create_screen
main_old
dispose_screen
end
end作者: rainfly 时间: 2011-9-29 08:24