Guest User

Face Frames - YEA Victory Aftermath Addon

a guest
Oct 3rd, 2020
56
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #===============================================================================
  2. # // Face Frames - YEA Victory Aftermath Addon
  3. # Author: Rikifive
  4. # Engine: RPG Maker VX Ace
  5. # Version: 1.0 (2020-10-03)
  6. #
  7. # /!\ Required Scripts (2)
  8. #   Yanfly | Yanfly Engine Ace - Victory Aftermath v1.04
  9. #   Rikifive | Face Frames v1.1
  10. #
  11. #===============================================================================
  12. # DESCRIPTION
  13. #===============================================================================
  14. # This is an ADDON to YEA Victory Aftermath.
  15. # Adds Face Frames to Actor Faces in the Victory Aftermath Screen.
  16. # Uses the same settings as the main script.
  17. #
  18. #===============================================================================
  19. # INSTRUCTIONS
  20. #===============================================================================
  21. # ► SCRIPT DIFFICULTY: ☆☆☆☆☆
  22. #   Plug & Play, no configuration at all.
  23. #
  24. # -=> Place script(s) below ▼ Materials; above ▼ Main Process
  25. #
  26. #===============================================================================
  27. # TERMS OF USE
  28. #===============================================================================
  29. # > You ARE allowed to use this script in non-commercial projects.
  30. # > You ARE allowed to use this script in commercial projects.
  31. #     It's just a little script, so let's not paniK lmao
  32. #     If you'd like to support my works nevertheless, donating any amount
  33. #     would be greatly appreciated. Thank you. c:
  34. #     ( https://paypal.me/rikifive )
  35. # > You ARE allowed to edit this script to your needs.
  36. # > You ARE NOT allowed to repost or post modified versions of this script
  37. #     without my permission.
  38. # > You ARE DEFINITELY NOT allowed to claim this script as your own lmao
  39. #
  40. # How to credit me: Just include my name "Rikifive" somewhere in the credits.
  41. #
  42. # Good luck!
  43. #
  44. #===============================================================================
  45. # VERSION HISTORY
  46. #===============================================================================
  47. # YYYY-MM-DD | Ver
  48. #------------------
  49. # 03-10-2020 | 1.0 - Initial Release
  50. #
  51. #===============================================================================
  52. # COMPATIBILITY INFORMATION
  53. #===============================================================================
  54. # Overwritten Methods (1)
  55. #   Window_VictoryEXP_Back - draw_actor_face
  56. #
  57. #===============================================================================
  58.  
  59. class Window_VictoryEXP_Back < Window_Selectable
  60.   #--------------------------------------------------------------------------
  61.   # ::: OVERWRITE METHOD
  62.   #--------------------------------------------------------------------------
  63.   def draw_actor_face(actor, rect)
  64.     fo = RK5_FRAMES::FACE_OFFSET
  65.     face_name = actor.face_name
  66.     face_index = actor.face_index
  67.     bitmap = Cache.face(face_name)
  68.     rw = [rect.width, 96].min
  69.     face_rect = Rect.new(face_index % 4 * 96+fo, face_index / 4 * 96+fo, rw-fo*2, 96-fo*2)
  70.     rx = (rect.width - rw) / 2 + rect.x
  71.     contents.blt(rx+fo, rect.y + line_height * 2+fo, bitmap, face_rect, 255)
  72.     unless $game_message.busy? && $game_message.face_name.empty?
  73.       if RK5_FRAMES::USE_IMAGE
  74.         draw_face_bg(rx, rect.y + line_height * 2)
  75.       else
  76.         draw_window_frame(rx, rect.y + line_height * 2, rw, 96)
  77.       end
  78.     end
  79.   end
  80. end
RAW Paste Data