| 
 
| 赞 | 1 |  
| VIP | 337 |  
| 好人卡 | 3 |  
| 积分 | 1 |  
| 经验 | 37815 |  
| 最后登录 | 2021-7-9 |  
| 在线时间 | 379 小时 |  
 Lv1.梦旅人 魔王 ⑨ 
	梦石0 星屑90 在线时间379 小时注册时间2006-10-16帖子4299 
 | 
| 
#--------------------------------------------------------------------------
x
加入我们,或者,欢迎回来。您需要 登录 才可以下载或查看,没有帐号?注册会员  # ● 描绘 HP
 #     actor : 角色
 #     x     : 描画目标 X 坐标
 #     y     : 描画目标 Y 坐标
 #     width : 描画目标的宽
 #--------------------------------------------------------------------------
 def draw_battler_hp1(actor, x, y, width = 144)
 if width - 32 >= 108
 hp_x = x + width - 108
 flag = true
 elsif width - 32 >= 48
 hp_x = x + width - 48
 flag = false
 end
 # 描绘 HP
 self.contents.font.size = 16
 self.contents.font.color = actor.hp == 0 ? knockout_color :
 actor.hp <= actor.maxhp / 4 ? crisis_color : normal_color
 self.contents.draw_text(hp_x - 96, y - 8, 48, 32, actor.hp.to_s,2)
 #end
 #def draw_battler_hp2(actor, x, y, width = 144)
 # 描绘血条
 w = 100 * actor.hp / [actor.maxhp,1].max
 bitmap = Bitmap.new("Graphics/pictures/system/hp_bar")
 self.contents.blt(x,y,bitmap,Rect.new(0,0,w,14))
 end
 然后字被血槽盖住了。。。怎么解决?
 版务信息:本贴由楼主自主结贴~
 | 
 |