Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change the hue of pictures
#1
This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.


Here are some example of what do:

Hue in icons:
Code:
my_icon = RPG::Cache.icon("001-Weapon01",60)

Change the skin for a window:
Code:
self.windowskin = RPG::Cache.windowskin("yellow_skin",-50)

Change the skin for all windows:
Code:
$game_system.windowskin_name = "001-Blue01"
        $game_system.windowskin_hue = 50

Paste this below the Main section:
Code:
#-----------------------------------------------------------------
module RPG
#-----------------------------------------------------------------
  module Cache
#-----------------------------------------------------------------
    def self.picture(filename,hue=0)
      self.load_bitmap("Graphics/Pictures/",filename,hue)
    end
#-----------------------------------------------------------------
    def self.icon(filename,hue=0)
      self.load_bitmap("Graphics/Icons/",filename,hue)
    end
#-----------------------------------------------------------------
    def self.windowskin(filename,hue=0)
      self.load_bitmap("Graphics/Windowskins/",filename,hue)
    end
#-----------------------------------------------------------------
  end
#-----------------------------------------------------------------
end
#-----------------------------------------------------------------
class Window_Base < Window
#-----------------------------------------------------------------
  def initialize(x,y,width,height)
    super()
    @windowskin_name = $game_system.windowskin_name
    @windowskin_hue = $game_system.windowskin_hue
    self.windowskin = RPG::Cache.windowskin(@windowskin_name,@windowskin_hue)
    self.x = x
    self.y = y
    self.width = width
    self.height = height
    self.z = 100
  end
#-----------------------------------------------------------------
  def update
    super
    if $game_system.windowskin_name != @windowskin_name or
     $game_system.windowskin_hue != @windowskin_hue
      @windowskin_name = $game_system.windowskin_name
      @windowskin_hue = $game_system.windowskin_hue
      self.windowskin = RPG::Cache.windowskin(@windowskin_name,@windowskin_hue)
    end
  end
#-----------------------------------------------------------------
end
#-----------------------------------------------------------------
class Game_System
#-----------------------------------------------------------------
  attr_accessor :windowskin_hue
#-----------------------------------------------------------------
  alias sk_windowskinhue_init initialize
  def initialize
    sk_windowskinhue_init
    @windowskin_hue = 0
  end
#-----------------------------------------------------------------
end
#-----------------------------------------------------------------
}


Possibly Related Threads…
Thread Author Replies Views Last Post
  Change character script jaigai 0 2,740 11-19-2006, 01:00 PM
Last Post: jaigai
  Change menu character sprites to Pictures like in rpg maker 2003 Abyssos 0 3,630 09-28-2006, 01:00 PM
Last Post: Abyssos
  Change Color of The diferent Status Script MASTERLOKI 0 2,270 07-18-2006, 01:00 PM
Last Post: MASTERLOKI
  Change Cursor with differend commands in Battle Divinity 0 2,211 06-22-2006, 01:00 PM
Last Post: Divinity
  Change Level/Exp/Status name ryujijitei 0 1,998 04-29-2006, 01:00 PM
Last Post: ryujijitei
  Equipment Menu Change Seraphim Dark 0 2,245 07-21-2005, 01:00 PM
Last Post: Seraphim Dark
  Change hero's equipment-based stats permanently PhotonWeapon 0 1,866 07-15-2005, 01:00 PM
Last Post: PhotonWeapon
  Status change indication Derk-Jan 0 1,943 06-30-2005, 01:00 PM
Last Post: Derk-Jan
  Damage limit and formula change PhotonWeapon 0 2,063 06-17-2005, 01:00 PM
Last Post: PhotonWeapon



Users browsing this thread: