Page 1 of 1

Modified version for KeplerParamBox

Posted: 15.10.2018, 13:00
by Croc
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

Posted: 15.10.2018, 18:31
by Croc
Post Gironde moved to Croc

workflow in pictures

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


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


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


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


Sans titre 5.jpg
Sans titre 5.jpg (16.39 KiB) Viewed 11189 times

Posted: 15.10.2018, 18:49
by Croc
Post Gironde moved to Croc

modified version for KeplerParamBox

the planets without atmosphere triggered an error.
this new version fixes the problem

Posted: 15.10.2018, 18:50
by Croc
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:

Posted: 16.10.2018, 02:31
by SpaceFanatic64
Croc, why have you locked your Lua Universal Tools topic?

Posted: 16.10.2018, 02:59
by Croc
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

Posted: 16.10.2018, 03:12
by SpaceFanatic64
Oh, ok.