Advertisement
dsiver144

DSI Battle Log Adjustor

Jul 7th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. #===============================================================================
  2. # * Battle Log Adjustor
  3. # by dsiver144
  4. #===============================================================================
  5. module DSIVER144
  6. module BATTLE_LOG
  7. POSITION = [0,-15]
  8. BACK_COLOR = Color.new(0,0,0,255) #Solid Black (R,G,B,Alpha)
  9. end # BATTLE_LOG
  10. end # DSIVER144
  11.  
  12. class Window_BattleLog < Window_Selectable
  13. include DSIVER144::BATTLE_LOG
  14. #--------------------------------------------------------------------------
  15. # * Object Initialization
  16. #--------------------------------------------------------------------------
  17. def initialize
  18. super(POSITION[0], POSITION[1], window_width, window_height)
  19. self.z = 200
  20. self.opacity = 0
  21. @lines = []
  22. @num_wait = 0
  23. create_back_bitmap
  24. create_back_sprite
  25. refresh
  26. end
  27. #----------------------------------------------------------------------------
  28. # * overwrite method: draw_background
  29. #----------------------------------------------------------------------------
  30. def draw_background
  31. new_back_color = BACK_COLOR
  32. @back_bitmap.clear
  33. @back_bitmap.fill_rect(back_rect, new_back_color)
  34. end
  35. end # Window_BattleLog
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement