赞 | 8 |
VIP | 14 |
好人卡 | 35 |
积分 | 32 |
经验 | 46931 |
最后登录 | 2024-8-10 |
在线时间 | 1442 小时 |
Lv3.寻梦者
- 梦石
- 0
- 星屑
- 3176
- 在线时间
- 1442 小时
- 注册时间
- 2009-7-27
- 帖子
- 1454
|
直接插入,自己改坐标即可。
- class Window_Base
- def draw_battler_graphic(actor, x, y)
- battler=RPG::Cache.battler(actor.battler_name, actor.battler_hue)
- w = battler.width
- h = battler.height
- self.contents.blt(x-w/2, y-h, battler, Rect.new(0, 0, w,h),255)
- end
- end
- class Window_MenuStatus < Window_Selectable
- def refresh
- self.contents.clear
- @item_max = $game_party.actors.size
- for i in 0...$game_party.actors.size
- x = 64
- y = i * 116
- actor = $game_party.actors[i]
- if (i % 2) == 0
- draw_battler_graphic(actor, x - 5, y + 95 - i * 0)
- draw_actor_name(actor, x+50, y)
- draw_actor_class(actor, x + 144+50, y)
- draw_actor_level(actor, x+50, y + 32)
- draw_actor_state(actor, x + 90+40, y + 32)
- draw_actor_exp(actor, x+50, y + 64)
- draw_actor_hp(actor, x + 236, y + 32)
- draw_actor_sp(actor, x + 236, y + 64)
- else
- draw_battler_graphic(actor, x - 5, y + 95 - i * 0)
- draw_actor_name(actor, x+50, y)
- draw_actor_class(actor, x +144+50, y)
- draw_actor_level(actor, x+50, y + 32)
- draw_actor_state(actor, x + 90+40, y + 32)
- draw_actor_exp(actor, x+50, y + 64)
- draw_actor_hp(actor, x + 236, y + 32)
- draw_actor_sp(actor, x + 236, y + 64)
- end
- end
- end
- end
复制代码 |
|