Window_Status
#============================================================================== # ■ Window_Status #------------------------------------------------------------------------------ # 显示状态画面、完全规格的状态窗口。 #============================================================================== class Window_Status < Window_Base #-------------------------------------------------------------------------- # ● 初始化对像 # actor : 角色 #-------------------------------------------------------------------------- def initialize(actor) super(0, 0, 640, 480) self.contents = Bitmap.new(width - 32, height - 32) @actor = actor refresh end #-------------------------------------------------------------------------- # ● 刷新 #-------------------------------------------------------------------------- def refresh self.contents.clear #坐标什么的自己调控一下就可以了解了 #只要对应图片的名字和游戏名字一样就好了 #立绘就自己弄了 反正图片已经有了 bitmap = RPG::Cache.picture(@actor.name.to_s) self.contents.blt(x+180, y+20, bitmap, Rect.new(0, 0, 280, 300)) self.contents.draw_text(x+160, y-30, 60, 32, @actor.name.to_s) draw_actor_graphic(@actor, 40, 112) draw_actor_name(@actor, 4, 0) draw_actor_class(@actor, 4 + 144, 0)
#==============================================================================
# ■ Window_Status
#------------------------------------------------------------------------------
# 显示状态画面、完全规格的状态窗口。
#==============================================================================
class Window_Status < Window_Base
#--------------------------------------------------------------------------
# ● 初始化对像
# actor : 角色
#--------------------------------------------------------------------------
def initialize(actor)
super(0, 0, 640, 480)
self.contents = Bitmap.new(width - 32, height - 32)
@actor = actor
refresh
end
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
self.contents.clear
#坐标什么的自己调控一下就可以了解了
#只要对应图片的名字和游戏名字一样就好了
#立绘就自己弄了 反正图片已经有了
bitmap = RPG::Cache.picture(@actor.name.to_s)
self.contents.blt(x+180, y+20, bitmap, Rect.new(0, 0, 280, 300))
self.contents.draw_text(x+160, y-30, 60, 32, @actor.name.to_s)
draw_actor_graphic(@actor, 40, 112)
draw_actor_name(@actor, 4, 0)
draw_actor_class(@actor, 4 + 144, 0)
|