Advertisement
Zetu

Untitled

Aug 24th, 2011
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. class Scene_Battle < Scene_Base
  2.  
  3. alias zpatch_yem_u update unless $@
  4. def update
  5. correct_battlewindow_class
  6. zpatch_yem_u
  7. end
  8.  
  9. def correct_battlewindow_class
  10. return if @message_window.is_a?(Window_BattleMessageMelody) !=
  11. $game_switches[20]
  12. v = @message_window.visable
  13. @message_window.dispose
  14. if $game_switches[20]
  15. @message_window = Window_BattleMessageMelody.new
  16. else
  17. @message_window = Window_BattleMessage.new
  18. end
  19. @message_window.visible = v
  20. end
  21.  
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement