Advertisement
mrbubble

Increase Battle Status Window Height

Jun 27th, 2011
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.46 KB | None | 0 0
  1. #-----------------------------------------------------------------------------
  2. # ++ Snippet ++ Increase Battle Status Window Height - by Mr. Bubble
  3. #-----------------------------------------------------------------------------
  4. # Increases the heights of battle status window, actor command window,
  5. # and party command window to accommodate 5 lines of actor status and shifts
  6. # them up accordingly.
  7. #
  8. # This snippet is admittedly very crude.
  9. #-----------------------------------------------------------------------------
  10. # ++ INSTALLATION ++
  11. # Place below the Core Sideview scripts and below ATB scripts (if you are
  12. # using the ATB).
  13. #
  14. # This snippet also works with the default battle system.
  15. #
  16. # If you are using the Tankentai ATB, the ATB bars positions will be offset.
  17. # To fix this, go into the ATB Configurations and change the
  18. # coordinates for each gauge in ATB_PARTY_POSITION.
  19. #-----------------------------------------------------------------------------
  20.  
  21. class Scene_Battle < Scene_Base
  22.   V_HEIGHT = 152
  23.   alias create_info_viewport_y_extend create_info_viewport
  24.   def create_info_viewport
  25.     create_info_viewport_y_extend
  26.    
  27.     @info_viewport.rect.y = 264
  28.     @info_viewport.rect.height = V_HEIGHT
  29.     @status_window.height = V_HEIGHT
  30.     @actor_command_window.height = V_HEIGHT
  31.     if !$imported.nil? && $imported["TankentaiATB"]
  32.       @party_command_window.y -= 24
  33.     else
  34.       @party_command_window.height = V_HEIGHT
  35.     end
  36.   end
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement