#~ __END__ #=============================================================================== # {Press CTRL + Q on line 1 to enable/disable script.} #=============================================================================== #|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=| # - Enhanced Save [Simple] - # -------------------------- PLUG N' PLAY ------------------------------------- # # Creator: Levi Stepp # Version: 1.0 # Released: 9/12/2013 # Permission: "This may be used in Commercial and Non-Commercial Projects." # Credit: Levi Stepp, or Lankaino #|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=| # - NO CUSTOMIZATIONS - #//////////////////////////////////////////////////////////////////////////////# #////////////////////// DO NOT EDIT PASSED THIS ///////////////////////////////# #////////////////// Unless you know what you're doing. ////////////////////////# #//////////////////////////////////////////////////////////////////////////////# #|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=| #============================================================================== # * Game_Party #============================================================================== class Game_Party < Game_Unit #-------------------------------------------------------------------------- # * Face Graphics #-------------------------------------------------------------------------- def faces_for_savefile battle_members.collect do |actor| [actor.face_name, actor.face_index] end end end #============================================================================== # * DataManager #============================================================================== class << DataManager #-------------------------------------------------------------------------- # * Create Save Header #-------------------------------------------------------------------------- alias make_save_header_faces make_save_header def make_save_header header = make_save_header_faces header[:faces] = $game_party.faces_for_savefile header[:map_name] = $game_map.display_name header end end #============================================================================== # * Window_SaveFile #------------------------------------------------------------------------------ #  Display Window #============================================================================== class Window_SaveFile < Window_Base #-------------------------------------------------------------------------- # * Refresh #-------------------------------------------------------------------------- def refresh contents.clear change_color(normal_color) name = Vocab::File + " #{@file_index + 1}" draw_text(4, 0, 200, line_height, name) @name_width = text_size(name).width draw_party_faces(100, (contents_height - 96) / 2) draw_map_name(0, contents_height - line_height) draw_playtime(0, contents_height - line_height, contents.width - 4, 2) end #-------------------------------------------------------------------------- # ● Draw Party Faceset #-------------------------------------------------------------------------- def draw_party_faces(x, y) header = DataManager.load_header(@file_index) return unless header && header[:faces] header[:faces].each_with_index do |data, i| draw_face(data[0], data[1], x + i * 96, y) end end #-------------------------------------------------------------------------- # ● Draw Map Name #-------------------------------------------------------------------------- def draw_map_name(x, y, align=0) header = DataManager.load_header(@file_index) return unless header && header[:map_name] name = header[:map_name] draw_text(x, y, contents.width, line_height, name, align) end end