Menu tembus Pandang




Fitur

  • Membuat Scene Menu, Item, Equip, Skill, Status, Shop, File, Name, End jadi agak tembus pandang



Screenshots





Scripts

Code:
module DRAgoCFG

  def create_spriteset
    case self
    when Scene_File
      @spriteset_bgmap = (Sprite.new.bitmap = RPG::Cache.title("001-Title01"))
    when Scene_End
      @spriteset_bgmap = (Sprite.new.bitmap = RPG::Cache.title("001-Title01"))
    else; @spriteset_bgmap = Spriteset_Map.new; end
    end
   
  def dispose_spriteset; @spriteset_bgmap.dispose; end
end

class Window_Base < Window

  alias xeodrago_initialize initialize
  def initialize(x, y, w, h); xeodrago_initialize(x, y, w, h)
    self.back_opacity = 160  if $scene.is_a?(Scene_Menu) ||
      $scene.is_a?(Scene_Item) || $scene.is_a?(Scene_Skill) ||
      $scene.is_a?(Scene_Equip) || $scene.is_a?(Scene_Status) ||
      $scene.is_a?(Scene_Shop) || $scene.is_a?(Scene_File) ||
      $scene.is_a?(Scene_Name) || $scene.is_a?(Scene_End)
  end
end

class Scene_Menu;include DRAgoCFG; alias xeodrago_main main
  def main; create_spriteset; xeodrago_main; dispose_spriteset; end;end
class Scene_Item;include DRAgoCFG; alias xeodrago_main main
  def main; create_spriteset; xeodrago_main; dispose_spriteset; end;end
class Scene_Shop;include DRAgoCFG; alias xeodrago_main main
  def main; create_spriteset; xeodrago_main; dispose_spriteset; end;end
class Scene_Name;include DRAgoCFG; alias xeodrago_main main
  def main; create_spriteset; xeodrago_main; dispose_spriteset; end;end
class Scene_Skill;include DRAgoCFG; alias xeodrago_main main
  def main; create_spriteset; xeodrago_main; dispose_spriteset; end;end
class Scene_Equip;include DRAgoCFG; alias xeodrago_main main
  def main; create_spriteset; xeodrago_main; dispose_spriteset; end;end
class Scene_Status; include DRAgoCFG; alias xeodrago_main main
  def main; create_spriteset; xeodrago_main; dispose_spriteset; end;end
class Scene_File; include DRAgoCFG; alias xeodrago_main main
  def main; create_spriteset; xeodrago_main; dispose_spriteset; end;end
class Scene_End;include DRAgoCFG; alias xeodrago_main main
  def main; create_spriteset; xeodrago_main; dispose_spriteset; end;end



Cukup ditaro dibawah scene debug

Penulis : Irgi Kusuma ~ Sebuah blog yang menyediakan berbagai macam informasi

Artikel Menu tembus Pandang ini dipublish oleh Irgi Kusuma pada hari Minggu, 26 Februari 2012. Semoga artikel ini dapat bermanfaat.Terimakasih atas kunjungan Anda silahkan tinggalkan komentar.sudah ada 0 komentar: di postingan Menu tembus Pandang
 

0 komentar:

Posting Komentar