| 赞 | 2 |
| VIP | |
| 好人卡 | |
| 积分 | 1 |
| 经验 | |
| 最后登录 | 2016-5-9 |
| 在线时间 | 34 小时 |
冰王子
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 34 小时
- 注册时间
- 2008-1-27
- 回帖
- 1810
|
发表于 2008-2-9 03:33:42
|
显示全部楼层
好像都重叠在一起了
改成这样试试
def HP(actor,x,y,w=80)
self.contents.fill_rect(x+2, y+16, w+4,8, Color.new(228,177,0,255))
self.contents.fill_rect(x+3, y+17, w+2,6, Color.new(0,0,0,255))
w1=w * actor.hp/actor.maxhp
self.contents.fill_rect(x+3, y+18, w1+1,2, Color.new(150,0,0,255))
self.contents.fill_rect(x+3, y+19, w1+1,2, Color.new(255,0,0,255))
self.contents.fill_rect(x+3, y+21, w1+1,2, Color.new(150,0,0,255))
end
def SP(actor,x,y,w=80)
self.contents.fill_rect(x+2, y+16, w+4,8, Color.new(228,177,0,255))
self.contents.fill_rect(x+3, y+17, w+2,6, Color.new(0,0,0,255))
w2=w * actor.sp/actor.maxsp
self.contents.fill_rect(x+3, y+19, w2+1,2, Color.new(5,0,228,255))
end
|
|