赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 765 |
最后登录 | 2014-3-27 |
在线时间 | 1 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 1 小时
- 注册时间
- 2008-3-3
- 帖子
- 85
|
#--------------------------------------------------------------------------
# ● 初始化状态
#--------------------------------------------------------------------------
def initialize
super(80, 304, 480, 160)
self.contents = Bitmap.new(width - 32, height - 32)
self.visible = false
self.z = 9998
..........
# 生成角色头像窗口
@name_win = Window_Base.new(name_x, name_y, @pic_width + 5, @pic_height + 5)
@name_win.windowskin = RPG::Cache.windowskin(skin)
@name_win.back_opacity =0
@name_win.z = self.z + 1
@name_contents = Sprite.new
@name_contents.x = name_x + 2
@name_contents.y = name_y + 2
@name_contents.bitmap = bmp
#@name_contents.z = @name_win.z + 2 #这个用了似乎效果不好<- bbschat
else
@face_pic_txt = 0 #名字窗口使用文字<- bbschat
# 生成名字
name_width = mes_name.size / 2 * FUKI::NAME_FONT_SIZE
name_height = FUKI::NAME_FONT_SIZE
name_x = self.x + FUKI::NAME_SHIFT_X
name_y = self.y - name_height - 16 + FUKI::NAME_SHIFT_Y
# 生成角色名字窗口(只有边框)
@name_win = Window_Base.new(name_x, name_y, name_width + 16, name_height + 16)
@name_win.windowskin = RPG::Cache.windowskin(skin)
@name_win.back_opacity = FUKI::NAME_OPACITY
@name_win.z = self.z + 1
# 为了使空白比Windows类限定的更小使用双重结构
@name_contents = Sprite.new
@name_contents.x = name_x + 12
@name_contents.y = name_y + 8
@name_contents.bitmap = Bitmap.new(name_width, name_height)
@name_contents.z = @name_win.z + 2
怎么代入?? 好象不行啊。///{/ll}{/ll}
|
|