- 注册时间
- 2008-9-20
- 最后登录
- 2019-5-19
⑤进阶
- 积分
- 777
|
描绘条子的时候怎么由下往上涨啊
我写的是由上往下的
-   def this_exp_s
-     return @exp_list[@level] > 0 ? @exp_list[@level] : "-------"
-   end
- def draw_actor_exp_gauge(actor, x, y, width = 120)
-     exp = Cache.custommenu("exp")
-     aw = exp.width  
-     ah = exp.height * (actor.exp - actor.this_exp_s.to_i) / (actor.next_exp_s.to_i - actor.this_exp_s.to_i)
-     src_rect = Rect.new(0, 0, aw, ah)
-    self.contents.blt(x, y , exp ,src_rect)
- end  
复制代码 |
|