赞 | 0 |
VIP | 0 |
好人卡 | 2 |
积分 | 1 |
经验 | 175482 |
最后登录 | 2014-1-10 |
在线时间 | 27 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 27 小时
- 注册时间
- 2008-2-13
- 帖子
- 1740
|
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 #初始化的定义结束 系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~ |
|