Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #===================
- # Scene_System Fix Patch
- #=======================
- # @desc permit to add background and make the window invisible.
- # @author Nio Kasgami
- # @data 2016/05/01
- #=======================
- module NK
- module Customisation
- System ={
- :bitmap => "", #Background for Scene_System (Yanfly)
- :bitmap2 => "" #Background for Totori
- }
- end
- end
- class Scene_System < Scene_MenuBase
- include NK::Customisation
- def create_background
- @background = Sprite.new
- @background.bitmap = Cache.system(System[:bitmap])
- @background.z = 0
- end
- def dispose
- super
- dispose_background
- end
- def dispose_background
- @background.dispose
- @background.bitmap.dispose
- end
- end
- class Window_SystemOptions < Window_Command
- def initialize(help_window)
- @help_window = help_window
- super(0, @help_window.height)
- self.opacity = 0
- refresh
- end
- end
- class Scene_Alchemy < Scene_MenuBase
- def create_background
- @background = Sprite.new
- @background.bitmap = Cache.system(System[:bitmap2])
- @background.z = 0
- end
- def dispose
- super
- dispose_background
- end
- def dispose_background
- @background.dispose
- @background.bitmap.dispose
- end
- end
- class Window_SynthCategory < Window_ItemCategory
- def initialize
- super(0, 0)
- self.opacity = 0
- end
- end
- class Window_SynthesisList < Window_ItemList
- def initialize(x, y, width, height)
- super(x, y, width, height)
- @category = :none
- @data = []
- self.opacity = 0
- end
- end
- class Window_IngredientList < Window_ItemList
- def initialize(x, y, w, h, item)
- super(x, y, w, h)
- @base_item = item
- refresh
- self.opacity = 0
- end
- end
- class Window_SynthesisProp < Window_Base
- def initialize(x, y, width, height)
- super
- set_item
- self.opacity = 0
- end
- end
- class Window_ItemFamily < Window_ItemCategory
- def initialize
- super(0, 0)
- self.opacity = 0
- end
- end
- class Window_TraitList < Window_ItemList
- def initialize(x, y, w, h, p)
- @points = p
- @deleted = []
- super(x, y, w, h)
- self.opacity = 0
- end
- end
- class Window_FinalItem < Window_SynthesisProp
- def initialize(x, y, w, h, q, p, l, s)
- @quality = q
- @points = p
- @level = l
- @success = [s, 100].min
- super(x, y, w, h)
- self.opacity = 0
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement