Project1
标题:
请问这个脚本的意思
[打印本页]
作者:
me12ff5be
时间:
2008-5-18 00:44
提示:
作者被禁止或删除 内容自动屏蔽
作者:
havealook
时间:
2008-5-18 00:53
def initialize #定义:初始化
unless $scene.is_a?(Scene_Skill) #如果当场景不为Scene_Skill(技能画面)这个场景
if $scene.is_a?Scene_Shop or $scene.is_a?Scene_Battle #如果场景为Scene_Shop(商店)或Scene_Battle(战斗)场景
super(0, 0, 640, 64) #在画面左上角生成个640*64的窗口
self.contents = Bitmap.new(width - 32, height - 32) #文字内容范围设定
self.opacity = 255 #窗口不透明
else #除此以外的的情况(if $scene.is_a?Scene_Shop or $scene.is_a?Scene_Battle)
super(0, 0, 640, 64) #在画面左上角生成个640*64的窗口
self.contents = Bitmap.new(width - 32, height - 32) #文字内容范围设定
self.opacity = 0 #窗口透明
end #“if $scene.is_a?Scene_Shop or $scene.is_a?Scene_Battle”的条件分歧结束
else #其它情况(unless $scene.is_a?(Scene_Skill))
super(0, 0, 640, 480) #在画面左上角生成个640*64的窗口
self.opacity = 0 #窗口透明
self.contents = Bitmap.new(width - 32, height - 32) #文字内容范围设定
end #“unless $scene.is_a?(Scene_Skill)”的分歧结束
end #初始化的定义结束 [LINE]1,#dddddd[/LINE]
系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
作者:
me12ff5be
时间:
2008-5-18 00:59
提示:
作者被禁止或删除 内容自动屏蔽
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1