| 赞 | 6 |
| VIP | |
| 好人卡 | |
| 积分 | 7 |
| 经验 | |
| 最后登录 | 2018-6-28 |
| 在线时间 | 215 小时 |
仙木精灵
- 梦石
- 0
- 星屑
- 651
- 在线时间
- 215 小时
- 注册时间
- 2012-4-16
- 回帖
- 460
|
发表于 2012-5-4 20:53:20
|
显示全部楼层
喔喔
需要改一处脚本!
Window_SaveFile 52-59行左右改成这样
for i in 0...@characters.size
draw_face_in_sl_window(@characters[0], 96 + i*64, 0)
#bitmap = RPG::Cache.character(@characters[0], @characters[1])
#cw = bitmap.rect.width / 4
#ch = bitmap.rect.height / 4
#src_rect = Rect.new(0, 0, cw, ch)
#x = 300 - @characters.size * 32 + i * 64 - cw / 2
#self.contents.blt(x, 68 - ch, bitmap, src_rect)
end
也就是加上#把那一堆注释掉,添上描绘头像语句。
再新建一个脚本:
输入:
class Window_Base < Window
def draw_face_in_sl_window(name, x, y)
face_file = "Graphics/Pictures/" + name + ".png"
self.contents.blt(x + 4, y + 4, RPG::Cache.picture(name + ".png"), Rect.new(0, 0, 64, 64))
end
end
这是描绘头像的语句。
然后在Graphics/Pictures加入命名为该角色行走图的名称_f的命名的头像
就可以完成了!
|
|