class Window_Simple_Status < Window_Base
#--------------------------------------------------------------------------
# ☆ オブジェクト初期化
#--------------------------------------------------------------------------
def initialize
y = 0
width = $game_party.members.size * 136
width = 136 if $game_party.members.size == 0
hight = MOTO::TP_GAGE ? 113 : 94
super(0, y, width, hight)
self.openness = 0
self.opacity = 255
refresh
end
#--------------------------------------------------------------------------
# ☆ ウィンドウ内容の作成
#--------------------------------------------------------------------------
def create_contents
self.contents.dispose
self.contents = Bitmap.new((512 / 4 * $game_party.members.size), height - 32)
end
#--------------------------------------------------------------------------
# ☆ リフレッシュ
#--------------------------------------------------------------------------
def refresh
create_contents
draw_contents
width_refresh
end
#--------------------------------------------------------------------------
# ☆ ウィンドウ内容の描画
#--------------------------------------------------------------------------
def draw_contents
self.contents.clear
return if $game_party.members.size == 0
for i in 0...$game_party.members.size
actor = $game_party.members[i]
actor_x = i * 512 / 4
draw_actor_name(actor, actor_x, 0)
draw_actor_hp(actor, actor_x, 20)
draw_actor_mp(actor, actor_x, 40)
draw_actor_tp(actor, actor_x, 60) if MOTO::TP_GAGE
end
end