#=========================================== # * Window_Base Modificado # por shadowball # 21.01.2008 # a petición de Clouall #=========================================== class Window_Base def draw_actor_hp(actor, x, y, width = 144) # Draw "HP" text string self.contents.font.color = system_color self.contents.draw_text(x, y, 32, 32, $data_system.words.hp) # Calculate if there is draw space for MaxHP eje_x(x, width) # Draw HP self.contents.font.color = actor.hp == 0 ? knockout_color : actor.hp <= actor.maxhp / 4 ? crisis_color : normal_color self.contents.draw_text(@p_x, y, 48, 32, actor.hp.to_s, 2) # Draw MaxHP self.contents.font.color = normal_color self.contents.draw_text(@p_x + 48, y, 12, 32, "/", 1) self.contents.draw_text(@p_x + 60, y, 48, 32, actor.maxhp.to_s) end def draw_actor_sp(actor, x, y, width = 144) # Draw "SP" text string self.contents.font.color = system_color self.contents.draw_text(x, y, 32, 32, $data_system.words.sp) # Calculate if there is draw space for MaxHP eje_x(x, width) # Draw SP self.contents.font.color = actor.sp == 0 ? knockout_color : actor.sp <= actor.maxsp / 4 ? crisis_color : normal_color self.contents.draw_text(@p_x, y, 48, 32, actor.sp.to_s, 2) # Draw MaxSP self.contents.font.color = normal_color self.contents.draw_text(@p_x + 48, y, 12, 32, "/", 1) self.contents.draw_text(@p_x + 60, y, 48, 32, actor.maxsp.to_s) end # método creado por shadowball def eje_x(x, width) if $scene.is_a?(Scene_Battle) @p_x = x + width - 88 elsif $scene.is_a?(Scene_Menu) @p_x = x + width - 100 end end end