Lua/Celx Reset User Settings example

All about writing scripts for Celestia in Lua and the .cel system
Topic author
don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 4 months
Location: Colorado, USA (7000 ft)

Lua/Celx Reset User Settings example

Post #1by don » 17.03.2004, 09:09

Howdy All,

This is an example script that demonstrates the use of the Celx, automatically-executed celestia_cleanup_callback() function. This function allows your script to reset the user's settings back to the way they were when your script was first run. Once you have the file, you can simply copy and paste the code into your own Celx scripts.

http://www.donandcarla.com/Celestia/celx_scripting/CleanupExample_v1-2.celx.txt (remember to remove the trailing ".txt" from the file when saving it).

Enjoy!

[Updated April 12, 2004 to version 1.2]
-Don G.
My Celestia Scripting Resources page

Avatar: Total Lunar Eclipse from our back yard, Oct 2004. Panasonic FZ1 digital camera (no telescope), 36X digital zoom, 8 second exposure at f6.5.

Return to “Scripting”