save_state.inc   save_state.inc 
skipping to change at line 83 skipping to change at line 83
savedStates[stateName]["ObserverLocation"] = core.getObserverLocatio n(); savedStates[stateName]["ObserverLocation"] = core.getObserverLocatio n();
savedStates[stateName]["TimeIsNow"] = core.isRealTime(); savedStates[stateName]["TimeIsNow"] = core.isRealTime();
savedStates[stateName]["StateTime"] = core.getJDay(); savedStates[stateName]["StateTime"] = core.getJDay();
savedStates[stateName]["StateTimeRate"] = core.getTimeRate(); savedStates[stateName]["StateTimeRate"] = core.getTimeRate();
savedStates[stateName]["AzimuthAngle"] = core.getViewAzimuthAngle(); savedStates[stateName]["AzimuthAngle"] = core.getViewAzimuthAngle();
savedStates[stateName]["AltitudeAngle"] = core.getViewAltitudeAngle( ); savedStates[stateName]["AltitudeAngle"] = core.getViewAltitudeAngle( );
savedStates[stateName]["RaAngle"] = core.getViewRaAngle(); savedStates[stateName]["RaAngle"] = core.getViewRaAngle();
savedStates[stateName]["DecAngle"] = core.getViewDecAngle(); savedStates[stateName]["DecAngle"] = core.getViewDecAngle();
savedStates[stateName]["AppLanguage"] = core.getAppLanguage();
savedStates[stateName]["SkyLanguage"] = core.getSkyLanguage();
core.debug("saveState() - state saved with ID: " + stateName); core.debug("saveState() - state saved with ID: " + stateName);
} }
// The options parameter is a hash of option values. Supported options: // The options parameter is a hash of option values. Supported options:
// "time": "ignore" do not restore the simulation time and time rate // "time": "ignore" do not restore the simulation time and time rate
// "time": "force" always restore the saved time and time rate // "time": "force" always restore the saved time and time rate
// "time": "smart" (default) if at saveState, the time was the same as the system // "time": "smart" (default) if at saveState, the time was the same as the system
// time and normal time rate, set this when res tore is called. // time and normal time rate, set this when res tore is called.
// However, if the time rate was not like this, restore // However, if the time rate was not like this, restore
// the time and time rate as it was when the sa veState was called // the time and time rate as it was when the sa veState was called
skipping to change at line 171 skipping to change at line 174
StelSkyDrawer.setBortleScale(savedStates[stateName]["StelSkyDrawerBo rtleScale"]); StelSkyDrawer.setBortleScale(savedStates[stateName]["StelSkyDrawerBo rtleScale"]);
StelSkyDrawer.setFlagLuminanceAdaptation(savedStates[stateName]["Ste lSkyDrawerFlagLuminanceAdaptation"]); StelSkyDrawer.setFlagLuminanceAdaptation(savedStates[stateName]["Ste lSkyDrawerFlagLuminanceAdaptation"]);
StelSkyImageMgr.setFlagShow(savedStates[stateName]["StelSkyImageMgr" ]); StelSkyImageMgr.setFlagShow(savedStates[stateName]["StelSkyImageMgr" ]);
core.setMountMode(savedStates[stateName]["MountMode"]); core.setMountMode(savedStates[stateName]["MountMode"]);
core.setNightMode(savedStates[stateName]["NightMode"]); core.setNightMode(savedStates[stateName]["NightMode"]);
core.setProjectionMode(savedStates[stateName]["ProjectionMode"]); core.setProjectionMode(savedStates[stateName]["ProjectionMode"]);
core.setSkyCulture(savedStates[stateName]["SkyCulture"]); core.setSkyCulture(savedStates[stateName]["SkyCulture"]);
core.setFlagGravityLabels(savedStates[stateName]["FlagGravityLabels" ]); core.setFlagGravityLabels(savedStates[stateName]["FlagGravityLabels" ]);
core.setDiskViewport(savedStates[stateName]["DiskViewport"]); core.setDiskViewport(savedStates[stateName]["DiskViewport"]);
core.setObserverLocation(savedStates[stateName]["ObserverLocation"]) ; core.setObserverLocation(savedStates[stateName]["ObserverLocation"]) ;
core.setAppLanguage(savedStates[stateName]["AppLanguage"]);
core.setSkyLanguage(savedStates[stateName]["SkyLanguage"]);
// optional restoration options... // optional restoration options...
if (!options["time"]) if (!options["time"])
{ {
options["time"] = "smart"; options["time"] = "smart";
} }
if (options["time"] == "smart") if (options["time"] == "smart")
{ {
if (savedStates[stateName]["TimeIsNow"]) if (savedStates[stateName]["TimeIsNow"])
 End of changes. 2 change blocks. 
0 lines changed or deleted 5 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/