TheoAllen

Addon - Title Fogs

Oct 4th, 2013
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 2.57 KB | None | 0 0
  1. # =============================================================================
  2. # TheoAllen - Title Fog (Addon)
  3. # Version : 1.0
  4. # Contact : www.rpgmakerid.com (or) http://theolized.blogspot.com
  5. # (This script documentation is written in informal indonesian language)
  6. # -----------------------------------------------------------------------------
  7. # Requires :
  8. # >> Theo - Fog Screen v2.0 or later
  9. # =============================================================================
  10. ($imported ||= {})[:Theo_TitleFog] = true
  11. # =============================================================================
  12. # CHANGE LOGS:
  13. # -----------------------------------------------------------------------------
  14. # 2013.10.05 - Finished script
  15. # =============================================================================
  16. =begin
  17.  
  18.   Perkenalan :
  19.   Script ini membuat kamu bisa menambahkan fog dalam titlescreen
  20.  
  21.   Cara penggunaan :
  22.   Pasang script ini dibawah Theo - Fog Screen v2.0
  23.   Edit konfigurasinya
  24.  
  25.   Terms of use :
  26.   Credit gw, TheoAllen. Kalo semisal u bisa ngedit2 script gw trus jadi lebih
  27.   keren, terserah. Ane bebasin. Asal ngga ngeklaim aja. Kalo semisal mau
  28.   dipake buat komersil, jangan lupa, gw dibagi gratisannya.  
  29.  
  30. =end
  31. # =============================================================================
  32. # Konfigurasi
  33. # =============================================================================
  34.  
  35.   Title_Fogs = ["kabut"]
  36. # Di dalam ini adalah key untuk fog. Key disini sama dengan key yang ada di
  37. # konfigurasi script Fog Screen v2.0
  38.  
  39. # =============================================================================
  40. # Akhir dari konfigurasi
  41. # =============================================================================
  42. class TitleFogs < PlaneFogs
  43.  
  44.   def initialize(viewport = nil)
  45.     @z = 0
  46.     super(viewport)
  47.   end
  48.  
  49.   def init_used_fog
  50.     Title_Fogs.each do |fogname|
  51.       self[fogname].z = @z
  52.     end
  53.   end
  54.  
  55.   def update_basic
  56.   end
  57.  
  58.   def z=(value)
  59.     @data.values.each do |fog|
  60.       fog.z = value
  61.     end
  62.   end
  63.  
  64.   def z
  65.     @z
  66.   end
  67.  
  68. end
  69.  
  70. class Scene_Title < Scene_Base
  71.  
  72.   alias theo_titlefog_cmd_window create_command_window
  73.   def create_command_window
  74.     @titlefog = TitleFogs.new
  75.     @titlefog.z = 10
  76.     theo_titlefog_cmd_window
  77.     @command_window.viewport = @viewport
  78.   end
  79.  
  80.   alias theo_titlefog_update update
  81.   def update
  82.     theo_titlefog_update
  83.     @titlefog.update
  84.   end
  85.  
  86.   alias theo_titlefog_terminate terminate
  87.   def terminate
  88.     theo_titlefog_terminate
  89.     @titlefog.dispose
  90.   end
  91.  
  92. end
Advertisement
Add Comment
Please, Sign In to add comment