#===============================================================================
# ** Edit & Play ACE
#-------------------------------------------------------------------------------
# @author .:Fênix:.
# @version 2012.01.14
# @brief Removes the "Game Test" window what blocks you to edit your game
# while you are playing. So, you do not need to open your game every
# change you make, you just need to press a key.
#===============================================================================
module Edit_and_Play
# Enable script? (true / false)
Enabled = true
# Button what updates the game
Button = Input::ALT
end
if (Edit_and_Play::Enabled)
if ($TEST)
File.rename("Data/BT_Actors.rvdata2", "Data/BT_Actors.old") if ($BTEST)
Thread.new {system("Game.exe")}
sleep(0)
exit
else
$TEST = true
if (File.exist?("Data/BT_Actors.old"))
File.rename("Data/BT_Actors.old", "Data/BT_Actors.rvdata2")
$BTEST = true
end
end
module Input
class << self
alias :editAndPlay :update
def update
if (trigger?(Edit_and_Play::Button))
DataManager.load_database
$game_map.setup($game_map.map_id) unless (($game_map == nil) || ($game_map.map_id == 0))
SceneManager.goto(SceneManager.scene.class)
end
editAndPlay
end
end
end
end