| 赞 | 0 |
| VIP | |
| 好人卡 | |
| 积分 | 0 |
| 经验 | |
| 最后登录 | 2016-8-20 |
| 在线时间 | 36 小时 |
~琉璃の雪~<
- 梦石
- 0
- 星屑
- 49
- 在线时间
- 36 小时
- 注册时间
- 2008-11-6
- 回帖
- 3570
|
发表于 2009-9-6 13:47:56
|
显示全部楼层
和这段有关,这是CP槽的描绘,改改坐标应该就行了:
#--------------------------------------------------------------------------
# ○ CPメーター の描画
#--------------------------------------------------------------------------
def draw_actor_cp_meter(actor, x, y, width = 156, type = 0)
self.contents.font.color = system_color
self.contents.fill_rect(x-1, y+27, width+,6, Color.new(0, 0, 0, 255))
if actor.cp == nil
actor.cp = 0
end
w = width * [actor.cp,65535].min / 65535
self.contents.fill_rect(x, y+28, w,1, Color.new(255, 255, 128, 255))
self.contents.fill_rect(x, y+29, w,1, Color.new(255, 255, 0, 255))
self.contents.fill_rect(x, y+30, w,1, Color.new(192, 192, 0, 255))
self.contents.fill_rect(x, y+31, w,1, Color.new(128, 128, 0, 255))
end
end |
|