| 赞 | 0 |
| VIP | |
| 好人卡 | |
| 积分 | 1 |
| 经验 | |
| 最后登录 | 2014-2-17 |
| 在线时间 | 37 小时 |
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 37 小时
- 注册时间
- 2012-7-30
- 回帖
- 124
|
发表于 2012-8-3 11:03:26
|
显示全部楼层
本帖最后由 devilg 于 2012-8-3 11:04 编辑
更正一下不是填充白色,要跟战斗窗口的背景色重合并且调bitmap的透明度才能做无痕框。(透明度blt(x, y, src_bitmap, src_rect[, opacity]) 这样调)
因为我对涉及图片和动画的脚本不太擅长,将就着看吧。
框和成果图都附在附件里。
修改的脚本是在window_base里的:-
- def draw_actor_face(actor, x, y, size = 96)
- draw_face(actor.face_name, actor.face_index, x, y, size)
- draw_ruler(actor.face_name, actor.face_index, x, y, size)
- end
-
- def draw_ruler(face_name, face_index, x, y, size = 96)
- bitmap = Cache.system("ivearoler")
- rect = Rect.new(0, 0, 0, 0)
- #~ rect.x = face_index % 4 * 96 + (96 - size) / 2
- #~ rect.y = face_index / 4 * 96 + (96 - size) / 2
- rect.width = size
- rect.height = size
- self.contents.blt(x, y, bitmap, rect)
- bitmap.dispose
- end
复制代码 框的名字是iveroler放在graphics/system里。如果你的战斗状态框式透明的就无效了。理论可以做到无痕的框不过我实在没法做。 |
评分
-
查看全部评分
|