#=============================================================================== # // Face Frames - YEA Victory Aftermath Addon # Author: Rikifive # Engine: RPG Maker VX Ace # Version: 1.0 (2020-10-03) # # /!\ Required Scripts (2) # Yanfly | Yanfly Engine Ace - Victory Aftermath v1.04 # Rikifive | Face Frames v1.1 # #=============================================================================== # DESCRIPTION #=============================================================================== # This is an ADDON to YEA Victory Aftermath. # Adds Face Frames to Actor Faces in the Victory Aftermath Screen. # Uses the same settings as the main script. # #=============================================================================== # INSTRUCTIONS #=============================================================================== # ► SCRIPT DIFFICULTY: ☆☆☆☆☆ # Plug & Play, no configuration at all. # # -=> Place script(s) below ▼ Materials; above ▼ Main Process # #=============================================================================== # TERMS OF USE #=============================================================================== # > You ARE allowed to use this script in non-commercial projects. # > You ARE allowed to use this script in commercial projects. # It's just a little script, so let's not paniK lmao # If you'd like to support my works nevertheless, donating any amount # would be greatly appreciated. Thank you. c: # ( https://paypal.me/rikifive ) # > You ARE allowed to edit this script to your needs. # > You ARE NOT allowed to repost or post modified versions of this script # without my permission. # > You ARE DEFINITELY NOT allowed to claim this script as your own lmao # # How to credit me: Just include my name "Rikifive" somewhere in the credits. # # Good luck! # #=============================================================================== # VERSION HISTORY #=============================================================================== # YYYY-MM-DD | Ver #------------------ # 03-10-2020 | 1.0 - Initial Release # #=============================================================================== # COMPATIBILITY INFORMATION #=============================================================================== # Overwritten Methods (1) # Window_VictoryEXP_Back - draw_actor_face # #=============================================================================== class Window_VictoryEXP_Back < Window_Selectable #-------------------------------------------------------------------------- # ::: OVERWRITE METHOD #-------------------------------------------------------------------------- def draw_actor_face(actor, rect) fo = RK5_FRAMES::FACE_OFFSET face_name = actor.face_name face_index = actor.face_index bitmap = Cache.face(face_name) rw = [rect.width, 96].min face_rect = Rect.new(face_index % 4 * 96+fo, face_index / 4 * 96+fo, rw-fo*2, 96-fo*2) rx = (rect.width - rw) / 2 + rect.x contents.blt(rx+fo, rect.y + line_height * 2+fo, bitmap, face_rect, 255) unless $game_message.busy? && $game_message.face_name.empty? if RK5_FRAMES::USE_IMAGE draw_face_bg(rx, rect.y + line_height * 2) else draw_window_frame(rx, rect.y + line_height * 2, rw, 96) end end end end