赞 | 0 |
VIP | 0 |
好人卡 | 3 |
积分 | 1 |
经验 | 1064 |
最后登录 | 2013-5-16 |
在线时间 | 518 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 518 小时
- 注册时间
- 2010-6-16
- 帖子
- 1073
|
- class Window_Base
- def draw_actor_hp(actor, x, y)
- back = Cache.system("Meter_Back")
- cw = back.width
- ch = back.height
- src_rect = Rect.new(0, 0, cw, ch)
- self.contents.blt(x + 65, y - ch + 30, back, src_rect)
- meter = Cache.system("HP_Meter")
- cw = meter.width * actor.hp / actor.maxhp
- ch = meter.height
- src_rect = Rect.new(0, 0, cw, ch)
- self.contents.blt(x + 65, y - ch + 30, meter, src_rect)
- text = Cache.system("HP_Text")
- cw = text.width
- ch = text.height
- src_rect = Rect.new(0, 0, cw, ch)
- self.contents.blt(x + 35, y - ch + 30, text, src_rect)
- self.contents.font.color = Color.new(255,255,255,255)
- self.contents.draw_text(x + 81, y - 1, 48, 32, actor.hp.to_s, 2)
- self.contents.font.color = Color.new(255,255,255,255)
- self.contents.draw_text(x + 80, y - 2, 48, 32, actor.hp.to_s, 2)
- end
- def draw_actor_mp(actor, x, y)
- back = Cache.system("Meter_Back")
- cw = back.width
- ch = back.height
- src_rect = Rect.new(0, 0, cw, ch)
- self.contents.blt(x + 65, y - ch + 30, back, src_rect)
- meter = Cache.system("MP_Meter")
- cw = meter.width * actor.mp / actor.maxmp
- ch = meter.height
- src_rect = Rect.new(0, 0, cw, ch)
- self.contents.blt(x + 65, y - ch + 30, meter, src_rect)
- text = Cache.system("MP_Text")
- cw = text.width
- ch = text.height
- src_rect = Rect.new(0, 0, cw, ch)
- self.contents.blt(x + 35, y - ch + 30, text, src_rect)
- self.contents.font.color = Color.new(255,255,255,255)
- self.contents.draw_text(x + 81, y - 1, 48, 32, actor.mp.to_s, 2)
- self.contents.font.color = Color.new(255,255,255,255)
- self.contents.draw_text(x + 80, y - 2, 48, 32, actor.mp.to_s, 2)
- end
- end
复制代码 写的不完整……望见谅…… |
|