Advertisement
nio_kasgami

someFix

May 1st, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 2.40 KB | None | 0 0
  1. #===================
  2. # Scene_System Fix Patch
  3. #=======================
  4. # @desc permit to add background and make the window invisible.
  5. # @author  Nio Kasgami
  6. # @data 2016/05/01
  7. #=======================
  8.  
  9. module NK
  10.   module Customisation
  11.     System ={
  12.     :bitmap => "", #Background for Scene_System (Yanfly)
  13.     :bitmap2 => "" #Background for Totori
  14.     }
  15.   end
  16. end
  17.  
  18. class Scene_System < Scene_MenuBase
  19.   include NK::Customisation
  20.  
  21.   def create_background
  22.     @background = Sprite.new
  23.     @background.bitmap = Cache.system(System[:bitmap])
  24.     @background.z = 0
  25.   end
  26.  
  27.   def dispose
  28.     super
  29.     dispose_background
  30.   end
  31.  
  32.   def dispose_background
  33.     @background.dispose
  34.     @background.bitmap.dispose
  35.   end
  36.  
  37. end
  38.  
  39. class Window_SystemOptions < Window_Command
  40.  
  41.   def initialize(help_window)
  42.     @help_window = help_window
  43.     super(0, @help_window.height)
  44.     self.opacity = 0
  45.     refresh
  46.   end
  47.  
  48. end
  49.  
  50. class Scene_Alchemy < Scene_MenuBase
  51.  
  52.   def create_background
  53.     @background = Sprite.new
  54.     @background.bitmap = Cache.system(System[:bitmap2])
  55.     @background.z = 0
  56.   end
  57.  
  58.   def dispose
  59.     super
  60.     dispose_background
  61.   end
  62.  
  63.   def dispose_background
  64.     @background.dispose
  65.     @background.bitmap.dispose
  66.   end
  67.  
  68.  
  69. end
  70.  
  71. class Window_SynthCategory < Window_ItemCategory
  72.  
  73.   def initialize
  74.     super(0, 0)
  75.     self.opacity = 0
  76.   end
  77.  
  78. end
  79.  
  80. class Window_SynthesisList < Window_ItemList
  81.     def initialize(x, y, width, height)
  82.     super(x, y, width, height)
  83.     @category = :none
  84.     @data = []
  85.     self.opacity = 0
  86.   end
  87. end
  88.  
  89. class Window_IngredientList < Window_ItemList
  90.  
  91.     def initialize(x, y, w, h, item)
  92.         super(x, y, w, h)
  93.         @base_item = item
  94.         refresh
  95.     self.opacity = 0
  96.     end
  97. end
  98.  
  99. class Window_SynthesisProp < Window_Base
  100.  
  101.     def initialize(x, y, width, height)
  102.         super
  103.         set_item
  104.     self.opacity = 0
  105.     end
  106. end
  107.  
  108.  
  109. class Window_ItemFamily < Window_ItemCategory
  110.  
  111.   def initialize
  112.     super(0, 0)
  113.     self.opacity = 0
  114.   end
  115.  
  116. end
  117.  
  118. class Window_TraitList < Window_ItemList
  119.  
  120.     def initialize(x, y, w, h, p)
  121.         @points = p
  122.         @deleted = []
  123.         super(x, y, w, h)
  124.     self.opacity = 0
  125.     end
  126. end
  127.  
  128. class Window_FinalItem < Window_SynthesisProp
  129.  
  130.     def initialize(x, y, w, h, q, p, l, s)
  131.         @quality = q
  132.         @points = p
  133.         @level = l
  134.         @success = [s, 100].min
  135.         super(x, y, w, h)
  136.     self.opacity = 0
  137.     end
  138. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement