Feature request: Scripts submenu

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
jan stegehuis
Posts: 27
Joined: 13.12.2010
Age: 70
With us: 13 years 11 months
Location: Hoogmade, The Netherlands

Feature request: Scripts submenu

Post #1by jan stegehuis » 26.12.2010, 12:25

Recently I needed to implement a number of specific 'goto's: select object, set clock, goto object, set distance, that kind of stuff. Because of the limited possibilities of Celestia/Celx for user interaction I ended up implementing them as as many separate celx scripts. The result is a Celestia/File/Scripts submenu that is longer than my screen is high. And a long list of files in the Celestia/Scripts directory since Celestia ignores everything that is in a Celestia/Scripts/ subdirectory. Without a doubt there will be more scripts, sortlike and others.

I can use the Celestia/File/Open Script command and still use subdirectories to bring order in the script files, but it would really be a whole lot more pleasant if Celestia would support user definable submenu's in this area. It would be so simple to implement: allow for scripts to be stored in subdirectories of the Celestia/Scripts folder and use the names of those subdirectories as the (sub)menu entries for the scripts that are stored within them. Sort of the same setup as the one for addons in the extra's directory. It would preferably need a recursive function to also allow for sub-submenu's etc.

There doesn't seem to be a way to realise this using Celx/Lua scripting and since I would not be the only one who would benefit from it, I decided to post it as a feature request.

Jan Stegehuis
jan.stegehuis at google mail
win 7 hp 64bit, intel I5, 2.53 GHz, 4GB , ATI MR HD 5470
celestia 1.6.0

Not smoking still "sucks".

surket
Posts: 15
Joined: 25.01.2011
With us: 13 years 9 months

Re: Feature request: Scripts submenu

Post #2by surket » 07.02.2011, 15:11

I know exactly what you mean, Jan. I have been having the same problem which I find frustrating. If only we had the ability to input single commands (to set any of parameters), then this problem would go away. That will give the user an effective tool to fine tune the settings directly (and not via a script file). Let's hope one day we will see this feature in Celestia.

Ben


Return to “Development”