Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # =============================================================================
- # TheoAllen - Title Fog (Addon)
- # Version : 1.0
- # Contact : www.rpgmakerid.com (or) http://theolized.blogspot.com
- # (This script documentation is written in informal indonesian language)
- # -----------------------------------------------------------------------------
- # Requires :
- # >> Theo - Fog Screen v2.0 or later
- # =============================================================================
- ($imported ||= {})[:Theo_TitleFog] = true
- # =============================================================================
- # CHANGE LOGS:
- # -----------------------------------------------------------------------------
- # 2013.10.05 - Finished script
- # =============================================================================
- =begin
- Perkenalan :
- Script ini membuat kamu bisa menambahkan fog dalam titlescreen
- Cara penggunaan :
- Pasang script ini dibawah Theo - Fog Screen v2.0
- Edit konfigurasinya
- Terms of use :
- Credit gw, TheoAllen. Kalo semisal u bisa ngedit2 script gw trus jadi lebih
- keren, terserah. Ane bebasin. Asal ngga ngeklaim aja. Kalo semisal mau
- dipake buat komersil, jangan lupa, gw dibagi gratisannya.
- =end
- # =============================================================================
- # Konfigurasi
- # =============================================================================
- Title_Fogs = ["kabut"]
- # Di dalam ini adalah key untuk fog. Key disini sama dengan key yang ada di
- # konfigurasi script Fog Screen v2.0
- # =============================================================================
- # Akhir dari konfigurasi
- # =============================================================================
- class TitleFogs < PlaneFogs
- def initialize(viewport = nil)
- @z = 0
- super(viewport)
- end
- def init_used_fog
- Title_Fogs.each do |fogname|
- self[fogname].z = @z
- end
- end
- def update_basic
- end
- def z=(value)
- @data.values.each do |fog|
- fog.z = value
- end
- end
- def z
- @z
- end
- end
- class Scene_Title < Scene_Base
- alias theo_titlefog_cmd_window create_command_window
- def create_command_window
- @titlefog = TitleFogs.new
- @titlefog.z = 10
- theo_titlefog_cmd_window
- @command_window.viewport = @viewport
- end
- alias theo_titlefog_update update
- def update
- theo_titlefog_update
- @titlefog.update
- end
- alias theo_titlefog_terminate terminate
- def terminate
- theo_titlefog_terminate
- @titlefog.dispose
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment