赞 | 0 |
VIP | 0 |
好人卡 | 3 |
积分 | 1 |
经验 | 1064 |
最后登录 | 2013-5-16 |
在线时间 | 518 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 518 小时
- 注册时间
- 2010-6-16
- 帖子
- 1073
|
3楼
楼主 |
发表于 2010-10-17 22:51:52
|
只看该作者
原本脚本写成这样...- def draw_item(index)
- rect = item_rect(index)
- rect.x += 4
- rect.width -= 8
- self.contents.clear_rect(rect)
- self.contents.font.color = normal_color
- @item_max = $game_party.members.size
- for actor in $game_party.members
- if actor.index == 0
- draw_actor_face(actor, 28, 5)
- draw_actor_name(actor, 28, 5)
- draw_actor_state(actor, 28, 45)
- draw_actor_hp(actor, 16, 80)
- draw_actor_mp(actor, 16, 100)
- elsif actor.index == 1
- draw_actor_face(actor, 180, 5)
- draw_actor_name(actor, 180, 5)
- draw_actor_state(actor, 180, 45)
- draw_actor_hp(actor, 168, 80)
- draw_actor_mp(actor, 168, 100)
- elsif actor.index == 2
- draw_actor_face(actor, 332, 5)
- draw_actor_name(actor, 332, 5)
- draw_actor_state(actor, 332, 45)
- draw_actor_hp(actor, 320, 80)
- draw_actor_mp(actor, 320, 100)
- elsif actor.index == 3
- draw_actor_face(actor, 484, 5)
- draw_actor_name(actor, 484, 5)
- draw_actor_state(actor, 484, 45)
- draw_actor_hp(actor, 472, 80)
- draw_actor_mp(actor, 472, 100)
复制代码 效果如下...
但会卡...
请大师指点指点.... |
|