| 赞 | 4 |
| VIP | |
| 好人卡 | |
| 积分 | 7 |
| 经验 | |
| 最后登录 | 2013-8-9 |
| 在线时间 | 184 小时 |
天仙
- 梦石
- 0
- 星屑
- 720
- 在线时间
- 184 小时
- 注册时间
- 2008-4-15
- 回帖
- 4872

|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有账号?注册会员
×
有人要所以写了
只要头像图档名称为 $ 开头,就可以读取
在编辑器里选择时还是只能选择 1/8 但是在游戏中还是读取整个
- class Window_Base < Window
- def draw_face(face_name, face_index, x, y, size = 96)
- bitmap = Cache.face(face_name)
- sign = face_name[/^[\$]./]
- rect = Rect.new(0, 0, 0, 0)
- if sign != nil and sign.include?('$')
- rect.x = 0
- rect.y = 0
- else
- rect.x = face_index % 4 * 96 + (96 - size) / 2
- rect.y = face_index / 4 * 96 + (96 - size) / 2
- end
- rect.width = size
- rect.height = size
- self.contents.blt(x, y, bitmap, rect)
- bitmap.dispose
- end
- end
复制代码
发布页面:http://rpg.blue/web/htm/news1083.htm
vip+2 |
|