29 lines
1.1 KiB
Ruby
29 lines
1.1 KiB
Ruby
#==============================================================================
|
|
# ** Window_SkillStatus
|
|
#------------------------------------------------------------------------------
|
|
# This window displays the skill user's status on the skill screen.
|
|
#==============================================================================
|
|
|
|
class Window_SkillStatus < Window_Base
|
|
#--------------------------------------------------------------------------
|
|
# * Object Initialization
|
|
# actor : actor
|
|
#--------------------------------------------------------------------------
|
|
def initialize(actor)
|
|
super(0, 64, 640, 64)
|
|
self.contents = Bitmap.new(width - 32, height - 32)
|
|
@actor = actor
|
|
refresh
|
|
end
|
|
#--------------------------------------------------------------------------
|
|
# * Refresh
|
|
#--------------------------------------------------------------------------
|
|
def refresh
|
|
self.contents.clear
|
|
draw_actor_name(@actor, 4, 0)
|
|
draw_actor_state(@actor, 140, 0)
|
|
draw_actor_hp(@actor, 284, 0)
|
|
draw_actor_sp(@actor, 460, 0)
|
|
end
|
|
end
|