Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # =============================================================================
- # TheoAllen - Face Graphics on Save Menu
- # Version : 1.1
- # Contact : www.rpgmakerid.com (or) http://theolized.blogspot.com
- # (This script documentation is written in informal indonesian language)
- # =============================================================================
- ($imported ||= {})[:Theo_SaveMenuFace] = true
- # =============================================================================
- # CHANGE LOGS:
- # -----------------------------------------------------------------------------
- # 2013.06.03 - Include map name as save header
- # 2013.06.02 - Started and finished script
- # =============================================================================
- =begin
- Perkenalan :
- Script ini untuk nampilin face di save menu
- Cara penggunaan :
- Pasang dibawah material namun diatas main
- Terms of use :
- Ga ada kondisi khusus. Feel free buat dipake-pake
- Note :
- Script ini cuman ngehandle tampilan save default. Jika seandainya u pake
- script orang yg ngehandle tampilan menu save, kemungkinan besar ga kompatible
- =end
- # =============================================================================
- Include_Mapname = true # Set true / false untuk nampilin nama map ato kaga
- # =============================================================================
- module DataManager
- def self.make_save_header
- header = {}
- header[:characters] = $game_party.characters_for_savefile
- header[:playtime_s] = $game_system.playtime_s
- header[:faces] = $game_party.faces_for_savefile
- header[:map_name] = $game_map.display_name
- header
- end
- end
- class Window_SaveFile
- 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_characters(152, 58)
- draw_party_faces(80, 0)
- draw_mapname(0,0,contents.width,2)
- draw_playtime(0, contents.height - line_height, contents.width - 4, 2)
- end
- def draw_mapname(x,y,width,align)
- return unless Include_Mapname
- header = DataManager.load_header(@file_index)
- return unless header
- draw_text(x,y,width,line_height,header[:map_name],align)
- end
- def draw_party_faces(x, y)
- header = DataManager.load_header(@file_index)
- return unless header && header[:faces]
- puts header[:faces].size
- header[:faces].each_with_index do |data, i|
- draw_face(data[0], data[1], x + i * 96, y)
- end
- end
- end
- class Game_Party < Game_Unit
- def faces_for_savefile
- battle_members.collect do |actor|
- [actor.face_name,actor.face_index]
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment