#==============================================================================
class Window_Help < Window_Base
#--------------------------------------------------------------------------
def set_enemy(enemy)
self.contents.clear
self.contents.font.color = normal_color
self.contents.draw_text(10, 0, 146, 32, enemy.name)
self.contents.font.color = system_color
self.contents.draw_text(160, 0, 86, 32, "HP:")
self.contents.draw_text(390, 0, 86, 32, "SP:")
cx = contents.text_size(enemy.maxhp.to_s).width
bx = contents.text_size(enemy.hp.to_s).width
self.contents.font.color = normal_color
self.contents.draw_text(265 - bx, 0, bx, 32, enemy.hp.to_s)
self.contents.draw_text(270, 0, 32, 32, "/")
self.contents.draw_text(285, 0, cx, 32, enemy.maxhp.to_s)
dx = contents.text_size(enemy.maxsp.to_s).width
ex = contents.text_size(enemy.sp.to_s).width
self.contents.font.color = normal_color
self.contents.draw_text(485 - ex, 0, ex, 32, enemy.sp.to_s)
self.contents.draw_text(490, 0, 32, 32, "/")
self.contents.draw_text(505, 0, dx, 32, enemy.maxsp.to_s)
state_text = make_battler_state_text(enemy, 112, false)
if state_text != ""
text += " " + state_text
end
text = enemy.name
set_text(text, 0)
end
#---------------------------------------------------------------------------
end
#==============================================================================
#==============================================================================
class Window_Help < Window_Base
#--------------------------------------------------------------------------
def set_enemy(enemy)
self.contents.clear
self.contents.font.color = normal_color
self.contents.draw_text(10, 0, 146, 32, enemy.name)
self.contents.font.color = system_color
self.contents.draw_text(160, 0, 86, 32, "HP:")
self.contents.draw_text(390, 0, 86, 32, "SP:")
cx = contents.text_size(enemy.maxhp.to_s).width
bx = contents.text_size(enemy.hp.to_s).width
self.contents.font.color = normal_color
self.contents.draw_text(265 - bx, 0, bx, 32, enemy.hp.to_s)
self.contents.draw_text(270, 0, 32, 32, "/")
self.contents.draw_text(285, 0, cx, 32, enemy.maxhp.to_s)
dx = contents.text_size(enemy.maxsp.to_s).width
ex = contents.text_size(enemy.sp.to_s).width
self.contents.font.color = normal_color
self.contents.draw_text(485 - ex, 0, ex, 32, enemy.sp.to_s)
self.contents.draw_text(490, 0, 32, 32, "/")
self.contents.draw_text(505, 0, dx, 32, enemy.maxsp.to_s)
state_text = make_battler_state_text(enemy, 112, false)
if state_text != ""
text += " " + state_text
end
text = enemy.name
set_text(text, 0)
end
#---------------------------------------------------------------------------
end
#==============================================================================