#==============================================================================
# ■ Window_Status @懒De说
#------------------------------------------------------------------------------
# 显示状态画面、完全规格的状态窗口。
#==============================================================================
class Window_Status < Window_Base
#--------------------------------------------------------------------------
# ● 初始化对像
# actor : 角色
#--------------------------------------------------------------------------
def initialize(actor)
super(100, 50, 220, 380)
self.contents = Bitmap.new(width - 32, height - 32)
@actor = actor
refresh
end
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
self.contents.clear
#draw_actor_graphic(@actor, 80, 80)
draw_actor_name(@actor, 4, 0)
draw_actor_level(@actor, 4, 32)
draw_actor_state(@actor, 100, 0)
draw_actor_hp(@actor, 0, 90, 172)
draw_actor_sp(@actor, 0, 120, 172)
draw_actor_exp(@actor,0,320,172)
draw_actor_parameter(@actor, 0, 160, 3)
draw_actor_parameter(@actor, 0, 200, 1)
draw_actor_parameter(@actor, 0, 240, 4)
draw_actor_parameter(@actor, 0, 280, 5)
self.contents.font.color = system_color
self.contents.draw_text(110, 30, 30, 32, "人气")
self.contents.draw_text(160, 30, 30, 32, $game_variables[30].to_s)
self.contents.draw_text(110, 60, 30, 32, "贡献")
self.contents.draw_text(160, 60, 30, 32, $game_variables[31].to_s)
self.contents.draw_text(0, 60, 30, 32, "门派:")
#所加门派
##############################################
case $game_variables[12]
when 0
self.contents.draw_text(30, 60, 60, 32, "无")
when 1
self.contents.draw_text(30, 60, 60, 32, "神龙教")
when 2
self.contents.draw_text(30, 60, 60, 32, "华山派")
when 3
self.contents.draw_text(30, 60, 60, 32, "逍遥派")
when 4
self.contents.draw_text(30, 60, 60, 32, "南少林")
when 5
self.contents.draw_text(30, 60, 60, 32, "华山派")
when 6
self.contents.draw_text(30, 60, 60, 32, "三清寺")
when 7
self.contents.draw_text(30, 60, 60, 32, "青城派")
end
##########################################
end
def dummy
self.contents.font.color = system_color
self.contents.draw_text(320, 112, 96, 32, $data_system.words.weapon)
self.contents.draw_text(320, 176, 96, 32, $data_system.words.armor1)
self.contents.draw_text(320, 240, 96, 32, $data_system.words.armor2)
self.contents.draw_text(320, 304, 96, 32, $data_system.words.armor3)
self.contents.draw_text(320, 368, 96, 32, $data_system.words.armor4)
draw_item_name($data_weapons[@actor.weapon_id], 320 + 24, 144)
draw_item_name($data_armors[@actor.armor1_id], 320 + 24, 208)
draw_item_name($data_armors[@actor.armor2_id], 320 + 24, 272)
draw_item_name($data_armors[@actor.armor3_id], 320 + 24, 336)
draw_item_name($data_armors[@actor.armor4_id], 320 + 24, 400)
end
end