- 注册时间
- 2006-4-20
- 最后登录
- 2007-10-15
超级版主
传说中的Bunny火神~!
 
- 积分
- 1
|
发表于 2007-1-21 22:02:15
|
显示全部楼层
先把这两个东西加入你的Window_Base里面:- def draw_actor_str(actor, x, y)
- self.contents.font.color = normal_color
- self.contents.draw_text(x, y, 120, 32, "力量" + actor.base_str.to_s)
- end
- def draw_actor_dex(actor, x, y)
- self.contents.font.color = normal_color
- self.contents.draw_text(x, y, 120, 32, "敏捷" + actor.base_dex.to_s)
- end
复制代码
然后在RTAB里面找到这段:- #--------------------------------------------------------------------------
- # 仠 儕僼儗僢僔儏
- #--------------------------------------------------------------------------
- def refresh(actor, level_up_flags = false)
- self.contents.clear
- case @status_id
- when 0
- draw_actor_name(actor, 4, 0)
- when 1
- draw_actor_hp(actor, 4, 0, 120)
- draw_actor_str(actor, x坐标自己调, y坐标自己调)
- when 2
- draw_actor_sp(actor, 4, 0, 120)
- draw_actor_dex(actor, x坐标自己调, y坐标自己调)
- when 3
- if level_up_flags
- self.contents.font.color = normal_color
- self.contents.draw_text(4, 0, 120, 32, "LEVEL UP!")
- else
- draw_actor_state(actor, 4, 0)
- end
- when 4
- draw_actor_atg(actor, 4, 0, 120)
- end
- end
复制代码 这只是修改力量和敏捷的例子,其他的可以仿造。 |
|