neonblack

Window Skin Change

Jan 13th, 2013
98
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module CP
  2. New_Skin = "Window"
  3. end
  4.  
  5. class Window_ChoiceList < Window_Command
  6.   alias cp_init_do_stuff initialize
  7.   def initialize(*args)
  8.     cp_init_do_stuff(*args)
  9.     self.windowskin = Cache.system(CP::New_Skin)
  10.   end
  11. end
  12.  
  13. class Window_NumberInput < Window_Base
  14.   alias cp_init_do_stuff initialize
  15.   def initialize(*args)
  16.     cp_init_do_stuff(*args)
  17.     self.windowskin = Cache.system(CP::New_Skin)
  18.   end
  19. end
  20.  
  21. class Window_KeyItem < Window_ItemList
  22.   alias cp_init_do_stuff initialize
  23.   def initialize(*args)
  24.     cp_init_do_stuff(*args)
  25.     self.windowskin = Cache.system(CP::New_Skin)
  26.   end
  27. end
  28.  
  29. class Window_Message < Window_Base
  30.   alias cp_init_do_stuff initialize
  31.   def initialize(*args)
  32.     cp_init_do_stuff(*args)
  33.     self.windowskin = Cache.system(CP::New_Skin)
  34.   end
  35. end
RAW Paste Data