- Remove toStringConversion function and move json_helper include out of numericalproperty.inl
- Optimizing some header files
- Remove duplicate Lua functions from properties.
- Move List,Option,Selection,String, and TriggerProperty into misc folder
- Move lua_helper include out of inline file
- Add lua_helper to the precompiled header
- Declare property functions as final. No longer have OptionProperty derive from IntProperty
- Remove Dictionary header from properties
* Move exoplanet creation code to Lua
* Add more descriptions and handle missing values
* Remove old creation function and move load from CSV to Lua
* Properly document all functions, including a type for the `systemData` return value
* Add `\param` documentation to the scripts
* Cleanup and move helper functions to core scripts
* Throw Lua errors when things go wrong, instead of returning empty objects
This prevents the rest of the code from being run
* Flesh out TODO comments, so future us know why they are there
---------
Co-authored-by: Alexander Bock <alexander.bock@liu.se>
* Add a tag for all exoplanet globes
* Add color to exoplanet globes based on their size
* Update color of terrestrial planets to be more deeply brown
* Change order so that the default texture for planets is shown on top
I.e. only use color if no other texture was provided
* Add descriptions of layer and planet type
* Add descriptions for some more things in the system
* Increase ambient intensity for when a planet is colored (not textured)
* Ignore GlobeBrowsing shader warning when setting camera position (closes#3405)
* Apply suggestions from code review
* Fix new constant names (from review)
---------
Co-authored-by: Alexander Bock <alexander.bock@liu.se>
* Restructuring the queueScript function
* Don't log the contents of actions that are triggered. Add the ability to do verbose logging in the scriptlog
* Add possibility to specify a default texture for added exoplanets
* Warn if exoplanet texture does not exists and provide more user friendly warnings
* Address review comments
* Add a disables label for the star for all added exoplanet systems
* Refactor queue script code a bit, to reduce duplicate code
* Apply suggestions from code review
Co-authored-by: Alexander Bock <alexander.bock@liu.se>
---------
Co-authored-by: Alexander Bock <alexander.bock@liu.se>
* Add the ability to specifiy local Sun position for the RenderableGlobe and RenderableAtmosphere
Note that for planets with atmospheres, the SunNode has to be specified for _both_ the globe and the atmosphere separately
- Closes#1745
- Closes#2243
* Add tags that can be used to set object visibility from UI
* Add module property for hiding/showing orbiting uncertainty disc
* Add tag for 1 AU ring and change color to something that's different from orbits
* Add property for circle color
* Add temporary gui hash for easier testing
* Update modules/exoplanets/exoplanetsmodule.cpp
Co-authored-by: Alexander Bock <alexander.bock@liu.se>
* Update GUI hash to correct commit on webgui master
---------
Co-authored-by: Alexander Bock <alexander.bock@liu.se>
* Rename remote scripting property to reflect better what it does
* Change the remote scripting name in all modules
* Update all scripts and action calls to use the new property for sync
* Simplify code that decides whether to send actions to nodes and peers
* Move Lua console hint text to be right top aligned
* Update Lua script topic
* Added new JSON key whether or not the script should be synced to other
nodes and peers
* Per default all scripts sync to everyone
In the next full release, we should have two separate keys that
decides whether to sync and send to nodes and peers separately
* Add some comments that explain why there is no sync for some scripts
* Make sync argument in trigger action function BooleanType
* Make reading exoplanet data from CSV during runtime work
* Add function descriptions
* Clarify an info message
* Initialize all data parameters with NaN, to prevent unpredictable values when a parameter is not included in the dataset
Co-authored-by: Alexander Bock <alexander.bock@liu.se>
---------
Co-authored-by: Alexander Bock <alexander.bock@liu.se>
Adapting Lua functions to new codegen functionality
Improve the documentation itself
Add some styling to generated documentation
Have parameter names for Lua-defined Lua function documentation
Co-authored-by: Emma Broman <emma.broman@liu.se>
* Remove Logarithmic ViewOption and instead always use exponent of NumericalProperty + set exponent of some renderables' properties
* Add MinMaxRange ViewOption for Vec2 properties
* Add MinMaxRange viewoption to some existing vec2 properties and combine some other related properties to be able to utilize it. For example Min and Max label sizes, fade in/out distances, inner and outer radius. OBS! Includes renaming several properties (**breaking change**)
* Refactor and document labels code. OBS! Includes renaming several properties (**breaking change**)
* Add comments for some assets that have labels that are not working correctly
Renderables with rename properties: RenderableLabels , GlobeLabelsComponent, RenderableBillboardsCloud, RenderableDUMeshes, RenderableRadialGrid )