Scripting: render tekst in windows corners

The place to discuss creating, porting and modifying Celestia's source code.
Avatar
Topic author
Marco Klunder
Posts: 181
Joined: 20.02.2008
Age: 62
With us: 16 years 9 months
Location: The Netherlands

Scripting: render tekst in windows corners

Post #1by Marco Klunder » 28.10.2009, 19:23

Like pressing the [v] key on the keyboard, during online usage of Celestia, it should be nice if a scripting render option could be developed to turn on/off or expand the text in the winows corners within a script. Like setting this option, there's also the need to get this option of course, for instance for usage in the function celestia_cleanup_callback().

Marco
Marco Klunder
email: marco.klunder@xs4all.nl
Windows10 PD 3.0 GHz, 2 GB of RAM, Nvidia GeForce 6700 XL
Celestia161 / SVN + Lua Edu Tools v1.2 Beta9, Celestia160-ED and Celestia1621

Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Re: Scripting: render tekst in windows corners

Post #2by Vincent » 29.10.2009, 09:04

Marco,

The celestia:setoverlayelements celx command lets you turn on/off each element of the overlay text separately.
As an example, to turn off the whole overlay text, just use :

Code: Select all

celestia:setoverlayelements{Time = false, Velocity = false, Selection = false, Frame = false}


There's no scripting command to set the HUD verbosity, yet.
@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3

Avatar
Topic author
Marco Klunder
Posts: 181
Joined: 20.02.2008
Age: 62
With us: 16 years 9 months
Location: The Netherlands

Re: Scripting: render tekst in windows corners

Post #3by Marco Klunder » 30.10.2009, 08:17

Hi Vincent,

Thx for this update. Reading the wiki books on this celestia method, I never understood the meaning of it, but with this explenation I do now and will certainly going to use it now and include it in my celestia_cleanup_callback() definitions.

Probably it also helps to put part of my question AND your explanation in this post as an additional comment in the wiki books, to explain the celestia:setoverlayelements() method a bit further.
I hereby also offer to do that myself, by the way ...

Thx again for the explenation,
Marco
Marco Klunder
email: marco.klunder@xs4all.nl
Windows10 PD 3.0 GHz, 2 GB of RAM, Nvidia GeForce 6700 XL
Celestia161 / SVN + Lua Edu Tools v1.2 Beta9, Celestia160-ED and Celestia1621

Avatar
Topic author
Marco Klunder
Posts: 181
Joined: 20.02.2008
Age: 62
With us: 16 years 9 months
Location: The Netherlands

Re: Scripting: render tekst in windows corners

Post #4by Marco Klunder » 30.10.2009, 16:07

I aready saw the update in the wiki books.
Thx, post closed.

Marco
Marco Klunder
email: marco.klunder@xs4all.nl
Windows10 PD 3.0 GHz, 2 GB of RAM, Nvidia GeForce 6700 XL
Celestia161 / SVN + Lua Edu Tools v1.2 Beta9, Celestia160-ED and Celestia1621


Return to “Development”