#-------------------------------------------------------------------------------# * [ACE] Khas Ultra Graphics - Compatibility Add-on (Todd's Autosave)#-------------------------------------------------------------------------------# * By Nilo K. (Khas)# * Version: 1.00# * Released on: 08/21/2015## Blog: arcthunder.blogspot.com# Facebook: facebook.com/khasarc# Twitter: twitter.com/arcthunder# Youtube: youtube.com/c/khasarc##-------------------------------------------------------------------------------# * Terms of Use#-------------------------------------------------------------------------------# This is a free compatibility add-on to Khas Ultra Lighting script.# The Khas Ultra Lighting requires the purchase of a license to be used.# #-------------------------------------------------------------------------------# * Requirements#-------------------------------------------------------------------------------# 1. Todd's Autosave script# Place the "Autosave" script before "Khas Core Library"## 2. Khas Core Library# Place the "Khas Core Library" script before this add-on.## 3. Khas Graphics Library# Place the "Khas Graphics Library" script before this add-on.## 4. Khas Ultra Lighting# Place the "Khas Ultra Lighting" script before this add-on.##-------------------------------------------------------------------------------# * Instructions#-------------------------------------------------------------------------------# This script makes the Todd's Autosave compatible with Ultra Lighting.##-------------------------------------------------------------------------------# * Requirements#-------------------------------------------------------------------------------unless $khas_graphics && $khas_graphics[:ultra_lighting] >= 1.0 warning = Sprite.new warning.bitmap = Bitmap.new(Graphics.width,Graphics.height) warning.bitmap.fill_rect(0,0,Graphics.width,Graphics.height,Color.new(255,255,255)) warning.bitmap.font = Font.new("Verdana", 32) warning.bitmap.font.bold = true warning.bitmap.font.outline = false warning.bitmap.font.color.set(255,144,9) warning.bitmap.draw_text(0,Graphics.height/2-32,Graphics.width,32,"PLEASE INSTALL",1) warning.bitmap.draw_text(0,Graphics.height/2,Graphics.width,32,"KHAS ULTRA LIGHTING 1.0",1) while !Input.trigger?(:C) Input.update Graphics.update end warning.bitmap.dispose warning.dispose exitend#-------------------------------------------------------------------------------# * Scene Manager#-------------------------------------------------------------------------------module SceneManager def self.dispose_ultra_graphics if @scene.is_a?(Scene_Map) @scene.spriteset.dispose_ultra_graphics else @stack.reverse.each do |s| if s.is_a?(Scene_Map) s.spriteset.dispose_ultra_graphics return end end end end def self.restore_ultra_graphics if @scene.is_a?(Scene_Map) @scene.spriteset.initialize_ultra_graphics else @stack.reverse.each do |s| if s.is_a?(Scene_Map) s.spriteset.initialize_ultra_graphics return end end end end end#-------------------------------------------------------------------------------# * Autosave#-------------------------------------------------------------------------------module Autosave def self.call SceneManager.dispose_ultra_graphics DataManager.save_game_without_rescue($game_variables[ToddAutoSaveAce::VARIABLE]) SceneManager.restore_ultra_graphics end end#-------------------------------------------------------------------------------# * End#-------------------------------------------------------------------------------