Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
  2. #
  3. #Changes the actor window display when using items and skills.
  4. #Actor's face disappears, and instead the basic ability is depicted.
  5. #
  6. #★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
  7.  
  8.  
  9. #==============================================================================
  10. # ■ Window_MenuActor
  11. #------------------------------------------------------------------------------
  12. #  Window used to select the actors for items and skills.
  13. #==============================================================================
  14. module MARU_MenuActor  
  15. S_SIMPLE_STATUS = ["ATT", "DEF", "MAT", "MDF", "AGI", "LUK"]
  16. end
  17.  
  18. class Window_MenuActor < Window_MenuStatus
  19.   #--------------------------------------------------------------------------
  20.   # ● Draw items
  21.   #--------------------------------------------------------------------------
  22.   alias maru0075_draw_item draw_item
  23.   def draw_item(index)
  24.     actor = $game_party.members[index]
  25.     enabled = $game_party.battle_members.include?(actor)
  26.     rect = item_rect(index)
  27.     draw_item_background(index)
  28.     draw_actor_simple_status(actor, rect.x + 1, rect.y)
  29.   end
  30.   #--------------------------------------------------------------------------
  31.   # ● Actor status drawn
  32.   #--------------------------------------------------------------------------
  33.   alias maru0075_draw_actor_simple_status draw_actor_simple_status
  34.   def draw_actor_simple_status(actor, x, y)
  35.     draw_actor_name(actor, x, y)
  36.     draw_actor_level(actor, x + 164, y )
  37.     draw_actor_icons(actor, x + 264, y )
  38.     draw_actor_hp(actor, x + 16, y + line_height * 1)
  39.     draw_actor_mp(actor, x + 16, y + line_height * 2)
  40.     3.times {|i| draw_actor_param_m(actor, x + 164, y + line_height * (i + 1), i) }
  41.     3.times {|i| draw_actor_param_m(actor, x + 264, y + line_height * (i + 1), i+3) }
  42.   end
  43.   #--------------------------------------------------------------------------
  44.   # ● Draw actor parameters
  45.   #--------------------------------------------------------------------------
  46.   def draw_actor_param_m(actor, x, y, param_id)
  47.     change_color(system_color)
  48.     draw_text(x, y, 120, line_height, MARU_MenuActor::S_SIMPLE_STATUS[(param_id)])
  49.     change_color(normal_color)
  50.     draw_text(x + 60, y, 36, line_height, actor.param(param_id + 2), 2)
  51.   end
  52. end