救世小树上传的图片,原本的效果 | 把窗口透明化的效果 |
#============================================================================== # 本脚本来自[url]www.66RPG.com[/url],使用和转载请保留此信息 #============================================================================== #============================================================================== # ■ Window_Base #============================================================================== class Window_Base < Window alias xrxs_mp7_initialize initialize def initialize(x, y, width, height) xrxs_mp7_initialize(x, y, width, height) 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) #有别的需要调整透明背景的窗口的话,找到脚本里Scene的名称,照样添加一行or$scene.is_a?(Scene_XXX) self.back_opacity = 160 #————这个数值可调,为透明程度 end end end module XRXS_MP7_Module def create_spriteset @spriteset = Spriteset_Map.new end def dispose_spriteset @spriteset.dispose end end class Scene_Menu include XRXS_MP7_Module alias xrxs_mp7_main main def main create_spriteset xrxs_mp7_main dispose_spriteset end end class Scene_Item include XRXS_MP7_Module alias xrxs_mp7_main main def main create_spriteset xrxs_mp7_main dispose_spriteset end end class Scene_Skill include XRXS_MP7_Module alias xrxs_mp7_main main def main create_spriteset xrxs_mp7_main dispose_spriteset end end class Scene_Equip include XRXS_MP7_Module alias xrxs_mp7_main main def main create_spriteset xrxs_mp7_main dispose_spriteset end end class Scene_Status include XRXS_MP7_Module alias xrxs_mp7_main main def main create_spriteset xrxs_mp7_main dispose_spriteset end end class Scene_Save include XRXS_MP7_Module alias xrxs_mp7_main main def main create_spriteset xrxs_mp7_main dispose_spriteset end end class Scene_End include XRXS_MP7_Module alias xrxs_mp7_main main def main create_spriteset xrxs_mp7_main dispose_spriteset end end class Scene_Shop #有其他需要透明化的窗口时,找到对应脚本Scene的名称,复制井号段间的内容, include XRXS_MP7_Module #只需修改首行的class Scene_“XXX” alias xrxs_mp7_main main def main create_spriteset xrxs_mp7_main dispose_spriteset end end # #============================================================================== # 本脚本来自[url]www.66RPG.com[/url],使用和转载请保留此信息 #==============================================================================
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |