赞 | 0 |
VIP | 157 |
好人卡 | 6 |
积分 | 1 |
经验 | 113829 |
最后登录 | 2014-1-16 |
在线时间 | 26 小时 |
Lv1.梦旅人 B
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 26 小时
- 注册时间
- 2007-8-26
- 帖子
- 3693
|
本帖最后由 ONEWateR 于 2010-11-13 20:03 编辑
透明脚本(无源):- 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_Change_Turn) or
- $scene.is_a?(Scene_Save) or
- $scene.is_a?(Scene_End) or
- $scene.is_a?(Scene_Shop)
- self.back_opacity = 255
- 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_Change_Turn
- include Opacity_Menu
- alias main_old main
- def main
- create_screen
- main_old
- dispose_screen
- end
- end
复制代码 |
|