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

|
发表于 2008-3-10 05:30:15
|
显示全部楼层
在Window_Base里最後一个end前面插入:
[code]
def draw_actor_exp_gauge(actor, x, y, width = 120)
gw = width * actor.exp_s / actor.next_rest_exp_s
gc1 = Color.new(255, 255, 0, 128)
gc2 = Color.new(255, 255, 0, 255)
self.contents.fill_rect(x, y + WLH - 8, width, 6, gauge_back_color)
self.contents.gradient_fill_rect(x, y + WLH - 8, gw, 6, gc1, gc2)
end[code]
然後在Window_Status里面相应处调用 draw_actor_exp_gauge(角色, x, y)
系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~ |
|