So I've final near completed my option scene for my game and I have one more thing I need to finish it. What I want store is the settings so when you click confirm the settings save, but when you click cancel the setting revert back to the previously saved settings. So far all I have is the default settings set:
def yes_default
DataManager.full_screen_mode if $game_system.fullscreen
$game_system.message_speed = $warconfig[:settings][:message_speed]
$game_system.fullscreen = $warconfig[:settings][:fullscreen]
$game_system.bar_style = $warconfig[:settings][:bar_style]
$game_system.autodash = $warconfig[:settings][:autodash]
$game_system.mini_map = $warconfig[:settings][:mini_map]
$game_system.item_sort = $warconfig[:sort][0]
[:bgm, :sfx].each {|v| $game_system.volume_change(v, 100)}
['bgm','bgs'].each {|v| eval "$game_system.#{v}_play($game_system.#{v}_memorize)"}
update_o_commands
cancel_default
end
But have no clue on where to start on the storing updated versions of the configurations above.
store the entire configuration in an object attached to $game_system, it the easiest way to ensure the configuration gets saved