BaiduShurufa_2014-10-24_20-47-25.png (23.93 KB, 下载次数: 12)
BaiduShurufa_2014-10-24_20-50-39.png (43.75 KB, 下载次数: 10)
#============================================================================== # ■ Window_MenuStatus #------------------------------------------------------------------------------ # 显示菜单画面和同伴状态的窗口。 #============================================================================== class Window_MenuStatus < Window_Selectable #-------------------------------------------------------------------------- # ● 初始化目标 #-------------------------------------------------------------------------- def initialize super(0, 0, 480, 480) self.contents = Bitmap.new(width - 32, height - 32) refresh self.active = false self.index = -1 end #-------------------------------------------------------------------------- # ● 刷新 #-------------------------------------------------------------------------- def refresh @actor = $game_party.actors[0] self.contents.clear draw_actor_graphic(@actor, 40, 90) draw_actor_name(@actor, 4, 0) draw_actor_class(@actor, 4 + 144, 0) draw_actor_level(@actor, 128, 32) draw_actor_state(@actor, 128, 64) draw_actor_hp(@actor, 32, 112, 172) draw_actor_sp(@actor, 32, 144, 172) draw_actor_parameter(@actor, 32, 192, 0) draw_actor_parameter(@actor, 32, 224, 1) draw_actor_parameter(@actor, 32, 256, 2) draw_actor_parameter(@actor, 32, 304, 3) draw_actor_parameter(@actor, 32, 336, 4) draw_actor_parameter(@actor, 32, 368, 5) draw_actor_parameter(@actor, 32, 400, 6) self.contents.font.color = system_color self.contents.draw_text(250, 48, 80, 32, "EXP") self.contents.draw_text(250, 80, 80, 32, "NEXT") self.contents.font.color = normal_color self.contents.draw_text(250 + 80, 48, 84, 32, @actor.exp_s, 2) self.contents.draw_text(250 + 80, 80, 84, 32, @actor.next_rest_exp_s, 2) self.contents.font.color = system_color self.contents.draw_text(250, 160, 48, 32, "装备") draw_item_name($data_weapons[@actor.weapon_id], 250 + 16, 208) draw_item_name($data_armors[@actor.armor1_id],250 + 16, 256) draw_item_name($data_armors[@actor.armor2_id], 250 + 16, 304) draw_item_name($data_armors[@actor.armor3_id], 250 + 16, 352) draw_item_name($data_armors[@actor.armor4_id], 250 + 16, 400) end #-------------------------------------------------------------------------- # ● 刷新光标矩形 #-------------------------------------------------------------------------- def update_cursor_rect if @index < 0 self.cursor_rect.empty else self.cursor_rect.set(0, @index * 116, self.width - 32, 96) end end end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |