IceDragon200

LufiaMenuPatchThingy

Mar 9th, 2012
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.82 KB | None | 0 0
  1. # // By IceDragon (rpgmakervx.net)
  2. # // Patch for Lufia Menu background
  3. module MenuBackground
  4.   BACKGROUNDS = {
  5.     0 => "Lufia Menu Back",  # // Default
  6.     1 => "Lufia Menu Back2", # // Your other
  7.     2 => "Lufia Menu Back3"  # // And another
  8.   }
  9.   BACKGROUND_VAR_ID = 1
  10. end
  11. # // Just for the sake of not having to call a crap load of stuff
  12. # // Well hell I could just dump the Constants in the class itself...
  13. class Scene_Base
  14.   include MenuBackground
  15. end  
  16.  
  17. [:Scene_Menu,:Scene_Status,:Scene_Equip,:Scene_Item,:Scene_Skill].each do |sym|
  18. eval(%Q(
  19.   class #{sym}
  20.     alias :backchange_start :start
  21.     def start(*args,&block)
  22.       backchange_start(*args,&block)
  23.       filename = BACKGROUNDS[$game_variables[BACKGROUND_VAR_ID]]
  24.       @menuback_sprite.bitmap = Cache.system(filename)
  25.     end
  26.   end
  27. ))  
  28. end
Advertisement
Add Comment
Please, Sign In to add comment