|
发表于 2006-3-21 19:48:18
|
显示全部楼层
好像有个重排菜单的脚本。
#==============================================================================
# by Claimh, http://www.k3.dion.ne.jp/~claimh/
#==============================================================================
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),150)
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
if (i % 2) == 0
draw_battler_graphic(actor, x - 5, y + 180 - i * 20)
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 +315, y + 180 - i * 20)
draw_actor_name(actor, x-60, y)
draw_actor_class(actor, x +144-60, y)
draw_actor_level(actor, x-60, y + 32)
draw_actor_state(actor, x + 90-60, y + 32)
draw_actor_exp(actor, x-60, y + 64)
draw_actor_hp(actor, x +196-60, y + 32)
draw_actor_sp(actor, x +196-60, y + 64)
end
end
end
end |
|