TheoAllen

Theo - Simple Menu Background

May 2nd, 2013
452
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.93 KB | None | 0 0
  1. # =============================================================================
  2. # TheoAllen - Simple Menu Background
  3. # Version : 0.9
  4. # Contact : www.rpgmakerid.com
  5. # (This script documentation is written in informal indonesian language)
  6. # =============================================================================
  7. $imported = {} if $imported.nil?
  8. $imported[:Theo_MenuBG] = true
  9. # =============================================================================
  10. # CHANGE LOGS:
  11. # -----------------------------------------------------------------------------
  12. # 2013.05.02 - Started and Finished script
  13. # =============================================================================
  14. =begin
  15.  
  16.   PENGENALAN :
  17.   Script ini ngebikin kamu bisa nampilin background pas di menu
  18.  
  19.   CARA PEMAKAIAN :
  20.   Pasang script ini diatas main tapi dibawah material
  21.   edit konfigurasinya
  22.  
  23.   TERMS OF USE :
  24.   Karena scriptnya mayan simple, jadi ga ada kondisi khusus. Pake aja terserah.
  25.   Credit jg ga diharuskan
  26.  
  27.   NOTE :
  28.   Karena picture gw masukin Scene MenuBase, jadi semua scene yg ngambil dari
  29.   MenuBase bakal ketimpa gambar background menu jg
  30.  
  31. =end
  32. # =============================================================================
  33. # Konfigurasi
  34. # =============================================================================
  35. module THEO
  36.   module MENU
  37.    
  38.     # ganti nama filenya disini
  39.     # gambar harus ada di folder Graphics/system
  40.     BACKGROUND = "test"
  41.    
  42.   end
  43. end
  44. # =============================================================================
  45. # Akhir dari konfigurasi
  46. # =============================================================================
  47. class Scene_MenuBase < Scene_Base
  48.  
  49.   alias menu_background create_background
  50.   def create_background
  51.     begin
  52.       @background_sprite = Sprite.new
  53.       @background_sprite.bitmap = Cache.system(THEO::MENU::BACKGROUND)
  54.     rescue
  55.       menu_background
  56.     end
  57.   end
  58.  
  59. end
Advertisement
Add Comment
Please, Sign In to add comment