Modified version for KeplerParamBox

All Lua-tools for Celestia in one forum.
Avatar
Topic author
Croc M
Forum Admin
Posts: 437
Joined: 10.08.2016
With us: 8 years 3 months
Location: Udomlya, Tver region, Russia

Modified version for KeplerParamBox

Post #1by Croc » 15.10.2018, 13:00

by gironde
Hello,

I have completed the informations accessible in KeplerParamBox.
In addition, I added a second frame that is used to compare 2 objects

KeplerParamBox.lua installs itself as a replacement for the old file and KeplerParamCompareFrame.lua is added to the 'tools' folder.
There is no need to touch config.lua since the new module is loaded by KeplerParamBox.

Gironde-1-1.jpg
Attachments
KeplerParamBox .zip
(12.16 KiB) Downloaded 299 times
Creator of the GUI "Lua Universal Tools"
25/V/1947 - 30/III/2019

Avatar
Topic author
Croc M
Forum Admin
Posts: 437
Joined: 10.08.2016
With us: 8 years 3 months
Location: Udomlya, Tver region, Russia

Post #2by Croc » 15.10.2018, 18:31

Post Gironde moved to Croc

workflow in pictures

Sans titre 1.jpg
Sans titre 1.jpg (16.42 KiB) Viewed 11176 times


Sans titre 2.jpg
Sans titre 2.jpg (14.01 KiB) Viewed 11176 times


Sans titre 3.jpg
Sans titre 3.jpg (16.53 KiB) Viewed 11176 times


Sans titre 4.jpg
Sans titre 4.jpg (17.8 KiB) Viewed 11176 times


Sans titre 5.jpg
Sans titre 5.jpg (16.39 KiB) Viewed 11176 times
Creator of the GUI "Lua Universal Tools"
25/V/1947 - 30/III/2019

Avatar
Topic author
Croc M
Forum Admin
Posts: 437
Joined: 10.08.2016
With us: 8 years 3 months
Location: Udomlya, Tver region, Russia

Post #3by Croc » 15.10.2018, 18:49

Post Gironde moved to Croc

modified version for KeplerParamBox

the planets without atmosphere triggered an error.
this new version fixes the problem
Attachments
KeplerParamBox modified.zip
(12.26 KiB) Downloaded 294 times
Creator of the GUI "Lua Universal Tools"
25/V/1947 - 30/III/2019

Avatar
Topic author
Croc M
Forum Admin
Posts: 437
Joined: 10.08.2016
With us: 8 years 3 months
Location: Udomlya, Tver region, Russia

Post #4by Croc » 15.10.2018, 18:50

Post Gironde moved to Croc

it looks like some people are having trouble launching new KeplerParamBox with KeplerParamCompareFrame.
check your celestia.cfg at font level (fonts for Celestia)

I have this:

Code: Select all

# -----------------------
   SmallFont "sans10.txf"
   Font "sans12_ru.txf"
   LabelFont "sans14_ru.txf"
   TitleFont "sansbold20_ru.txf"


In addition the fonts names are declared in utils / textlayout.lua for use in LUT5
For using new KeplerParamBox you must have this in textlayout.lua

Code: Select all

textlayout.getfonts =
   function(this)
      -- Use preferably 'sansbold20.txf' as titlefont.
      titlefont = celestia:loadfont("fonts/sansbold20.txf")
      if not titlefont then
         -- If 'sansbold20.txf' is not available, then use titlefont defined in celestia.cfg.
         titlefont = celestia:gettitlefont()
      end
      -- Use preferably 'sans14.txf' as labelfont.
      labelfont = celestia:loadfont("fonts/sans14_ru.txf")
      if not labelfont then
         labelfont = normalfont
      end
      -- Use preferably 'sans12.txf' as normalfont.
      normalfont = celestia:loadfont("fonts/sans12.txf")
      if not normalfont then
         -- If 'sans12.txf' is not available, then use normalfont defined in celestia.cfg.
         normalfont = celestia:getfont()
      end
      -- Use preferably 'sans10.txf' as smallfont.
      smallfont = celestia:loadfont("fonts/sans10.txf")
      if not smallfont then
         smallfont = normalfont
      end
   end


here is the file 'textlayout.lua' modifié. The file is in lua-applications/lua_universal_tools_v5/utils

And the fonts for Celestia

Added after 2 hours 33 minutes:
Precision:
the KeplerParamBox module with the Compare function is not an official Lut5 update.
This is a personal work that will be tested by Croc and it is he who will distribute the final version.
Nevertheless, you can test it too and make your comments and suggestions.

:wink: :hi:
Attachments
textlayout 15-10-2018.zip
(1.27 KiB) Downloaded 275 times
fonts.zip
(4.34 MiB) Downloaded 296 times
Creator of the GUI "Lua Universal Tools"
25/V/1947 - 30/III/2019

Avatar
SpaceFanatic64
Posts: 427
Joined: 16.08.2018
Age: 18
With us: 6 years 3 months
Location: Southern California

Post #5by SpaceFanatic64 » 16.10.2018, 02:31

Croc, why have you locked your Lua Universal Tools topic?
If you see that I made a dumb or nonsensical post years ago, please forgive me in advance.

Avatar
Topic author
Croc M
Forum Admin
Posts: 437
Joined: 10.08.2016
With us: 8 years 3 months
Location: Udomlya, Tver region, Russia

Post #6by Croc » 16.10.2018, 02:59

SpaceFanatic64
Croc, why have you locked your Lua Universal Tools topic?

In order not to litter the topic with comments.

Please, comments to graphical interface leave in topic, see ./viewtopic.php?f=11&t=17418
Creator of the GUI "Lua Universal Tools"
25/V/1947 - 30/III/2019

Avatar
SpaceFanatic64
Posts: 427
Joined: 16.08.2018
Age: 18
With us: 6 years 3 months
Location: Southern California

Post #7by SpaceFanatic64 » 16.10.2018, 03:12

Oh, ok.
If you see that I made a dumb or nonsensical post years ago, please forgive me in advance.


Return to “Lua-Tools”