| 赞 | 0 |
| VIP | |
| 好人卡 | |
| 积分 | 1 |
| 经验 | |
| 最后登录 | 2023-2-12 |
| 在线时间 | 278 小时 |
尽头
- 梦石
- 0
- 星屑
- 119
- 在线时间
- 278 小时
- 注册时间
- 2010-6-20
- 回帖
- 1204
|
发表于 2010-8-5 06:59:08
|
显示全部楼层
在Window_Base中的描绘状态的方法加一个判定。
原来的方法:- def draw_actor_state(actor, x, y, width = 120)
- text = make_battler_state_text(actor, width, true)
- self.contents.font.color = actor.hp == 0 ? knockout_color : normal_color
- self.contents.draw_text(x, y, width, 32, text)
- end
复制代码 修改后:- def draw_actor_state(actor, x, y, width = 120)
- text = make_battler_state_text(actor, width, true)
- self.contents.font.color = actor.hp == 0 ? knockout_color : normal_color
- self.contents.draw_text(x, y, width, 32, text)
- if text == ""# 其中某个状态
- bitmap = RPG::Cache.icon("")# icon目录下的图片
- elsif text == ""# 其中某个状态
- bitmap = RPG::Cache.icon("")
- # 如此类推……
- end
- src_rect = Rect.new(0, 0, bitmap.width, bitmap.height)
- self.contents.blt(x,y,bitmap,src_rect)
- end
复制代码 |
评分
-
查看全部评分
|