| 赞 | 0 |
| VIP | |
| 好人卡 | |
| 积分 | 1 |
| 经验 | |
| 最后登录 | 2017-6-7 |
| 在线时间 | 543 小时 |
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 543 小时
- 注册时间
- 2009-7-13
- 回帖
- 56
|
发表于 2011-10-6 10:31:48
|
显示全部楼层
如果窗口大小不变的话……- def refresh
- self.contents.clear
- @item_max = $game_party.members.size
- actor_number = 0
- for actor in $game_party.members
- return if actor_number == 2 and !$game_switches[25] #开关号
- return if actor_number == 3 and $game_switches[25] #同上
- draw_actor_face(actor, 2, actor.index * 96 + 2, 92)
- x = 104
- y = actor.index * 96 + WLH / 2
- draw_actor_name(actor, x, y)
- draw_actor_class(actor, x + 120, y)
- draw_actor_level(actor, x, y + WLH * 1)
- draw_actor_state(actor, x, y + WLH * 2)
- draw_actor_hp(actor, x + 120, y + WLH * 1)
- draw_actor_mp(actor, x + 120, y + WLH * 2)
- actor_number += 1
- end
- end
复制代码 换掉原来的refresh
如果窗口大小也变的话- def initialize(x, y)
- super(x, y, 384, 216) if !$game_switches[25] #开关号
- super(x, y, 384, 324) if $game_switches[25] #同上
- refresh
- self.active = false
- self.index = -1
- end
复制代码 换原来的initialize |
|