Commit Graph

255 Commits

Author SHA1 Message Date
Emma Broman
98c0787266 Make openspace.fadeOut also disable the object at end of fade
Needed when we now start using this function in the UI
2024-12-03 08:26:26 +01:00
Alexander Bock
86b4733eeb Reuse the same generated configuration file (closes #3449) 2024-11-05 22:19:55 +01:00
Emma Broman
68c2157dd4 Move Exoplanet creation code from C++ to Lua (#3450)
* 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>
2024-10-21 09:30:18 +02:00
Emma Broman
6e6f425a0a Issue/3337 Custom UI group ordering (#3363)
* remove code for controlling group sorting in ImGui

We only use this for debug and the sorting here is no longer relevant

* Add feature to add custom ordering to UI groups

* Tiny cleanup

* Add numerical ordering for night sky planets

* Update Lua function name and create an event when ordering updated

* Set top-level ordering

* Add function documentation

* Add a custom ordering that previously was hardcoded in UI

* Apply suggestions from code review

Co-authored-by: Alexander Bock <alexander.bock@liu.se>

* Rename GUI ordering function

* Update GUI hash

---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2024-08-22 16:51:28 +02:00
Alexander Bock
2e4b99787f Resolve ShellLink files before passing them to the drag/drop handler (closes #2544). Add new Lua function to resolve Shell links 2024-08-22 15:20:02 +02:00
Alexander Bock
a75c6f3c9e Adapt core scripts to Lua style guide 2024-08-18 13:46:17 +02:00
Alexander Bock
845724b788 Add the ability to drag and drop WMS files and add them to the current Anchor 2024-08-10 16:48:00 +02:00
Ylva Selling
1cae99ebfc Issue/2000 automatically update gui (#3289)
* Make it possible to query a propertyowner by uri with the getpropertytopic

* Remove automatic reloading of ui from drag and drop script

* Add function for uri for propertyowners

* Add uri to the to_json for the propertyowner

* Add comment for the propertyOwner function and update the comment for the property function to clearer distinguish between uris and identifiers

* Go back to the old events but with uris instead as their member

* Apply feedback from PR

* Address PR comments

---------

Co-authored-by: Ylva Selling <ylva.selling@liu.se>
2024-06-04 18:32:41 +02:00
Ylva Selling
79f5192a2c Fix issue of sorting by placing arguments in array (#3238)
Co-authored-by: Ylva Selling <ylva.selling@liu.se>
2024-05-21 11:23:26 +02:00
Alexander Bock
c1ee9079f1 Add the ability to drag-and-drop a video file to add it as a screenspacerenderable (closes #2988) 2023-12-23 22:33:53 +01:00
Emma Broman
add6df05fd Replace some more getPropertyValue function calls (deprecated) 2023-08-07 10:08:21 +02:00
Micah Acinapura
fbbf495976 Night Sky feedback and triton texture (#2740)
also adds new Lua function openspace.toggleFade

* updating nightsky feedback

---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2023-06-05 13:53:30 -04:00
Alexander Bock
db002d4cf7 Fix CMake issues when disabling unit tests, Add new CMake flag OPENSPACE_ENABLE_ALL_MODULES to change default behavior of module inclusion 2023-04-15 22:39:35 +02:00
Emma Broman
c714a7f57d Feature/geojson (#2595)
Add the option to add geojson components to globes, from geojson files. One geojson file creates one GeoJsonComponent, which in turn may contain multiple GlobeGeometryFeatures

Geojson is a format that supports points, lines, and polygons. In addition to the basic functionality, extra features have been added that will long-term allow rendering the geometry needed to represent KML files (another format for geospatial geometry data). Here are links to references for both formats:

    Geojson: https://geojson.org/
    KML: https://developers.google.com/kml/documentation/kmlreference

data/assets/examples/geojson includes some example files that I have used for testing. Any geojson file can also be added through drag-n-drop. Note however that you might need to change the AltitudeMode or HeightOffset properties for the feature to be visible.
2023-04-15 11:35:28 +02:00
Malin E
0fb624164b Issue/2272 (#2580)
* Add actions for zodiac constellations + some improvements
* Add fade to actions
* Add fade scripts that is able to take regex identifiers and fade screen space renderables
2023-04-13 21:42:35 +02:00
Emma Broman
4de3713107 Add a central function to create an identifier from string, and also expose it through Lua 2023-04-03 11:40:19 +02:00
Emma Broman
2027815157 Add some helper scripts to modify property values (appendToList, add, invertBoolean) 2023-02-08 16:00:34 +01:00
Emma Broman
1edb754437 Add nil checks for boolean parameters in config helper (closes #2364) (#2380)
* Add nil checks for boolean parameters in config helper (closes #2364)

* remove some trailing spaces
2022-12-08 10:59:33 +01:00
Alexander Bock
163ac4dcef Cleanup of mostly asset files
- Fixes for all files
 - constexpr cleanup
 - Cosmetic changes
 - Remove punctuation from the end of messages
2022-07-28 17:21:59 +02:00
Ylva Selling
0fa317d96f Fixes to comments on pull request 2022-05-17 11:40:19 -04:00
Ylva Selling
0824b59d77 Move properties for visibility from CefWebGui to OpenSpaceEngine 2022-05-12 10:11:25 -04:00
Ylva Selling
785084c318 Add developer lua script that sets property visibility to "Developer" if an environment variable called "OPENSPACE_DEVELOPER" is set 2022-05-11 14:31:41 -04:00
Alexander Bock
970536998a Multiple small fixes
- Turn the planet lighting actions from mixed case to lower case
 - Fix the openspace.rebindKey Lua function which did not work before
 - Fix the openspace.downloadFile function which would fail when not waiting for the the result
 - Rename openspace.walkDirectoryFolder to openspace.walkDirectoryFolders for consistency
 - Remove the openspace.saveLastChangeToProfile function
2022-05-06 16:13:21 -04:00
Alexander Bock
96631bcced Fix issue with specifying the ordering in the ImGUI scene list 2022-04-30 14:43:13 +02:00
Alexander Bock
3844df20c9 Feature/codegen lua (#1906)
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>
2022-03-21 09:05:37 +01:00
Alexander Bock
3f6fccb373 Correctly disable vsync if requested 2022-02-23 13:40:40 +01:00
Alexander Bock
73f6938619 Correctly specify tags and fix usage of refreshRate and vsync parameters (closes #1890) 2022-02-21 21:27:25 +01:00
Alexander Bock
ae40493627 Add function allowing insight into currently loaded assets. Don't print info message when loading asset that was already loaded 2022-02-21 21:19:13 +01:00
Alexander Bock
cbe2e6cdcf Set the default window size to 66% of the primary window size (closes #1883) 2022-02-17 17:55:43 +01:00
Emma Broman
4a3abf58ee Fix identifier being replaced with underscores on image drag drop (closes #1874)
Note: The dot selector matches all characters. Oops
2022-02-02 14:04:33 +01:00
Alexander Bock
5050b27d09 Address PR comments 2022-01-25 12:08:24 +01:00
Alexander Bock
f903adc7c1 Merge remote-tracking branch 'origin/master' into feature/sgct-json 2022-01-21 17:43:36 +01:00
Alexander Bock
4c9337a465 Fix issue when drag-dropping an image that has extra dots in the name (closes #1793) 2021-12-29 14:13:59 +01:00
Alexander Bock
6ddf62f2ab Some more cleanup for configuration_helper script 2021-12-20 22:42:32 +01:00
Alexander Bock
af1e5c8cf8 Cleanup configuration helper 2021-12-20 22:00:36 +01:00
Alexander Bock
79cca73abf First version of generating JSON 2021-12-19 19:55:25 +04:00
Alexander Bock
c28387e9c0 General cleanup of configuration helper 2021-12-19 18:01:59 +04:00
Alexander Bock
2bb93a56de Rename windowPos to pos for consistency; Additional cleanup of parameters 2021-12-19 14:38:06 +04:00
Alexander Bock
3f6b98ca38 Removing some unused parameters from the configuration script 2021-12-19 14:11:57 +04:00
GPayne
6c5a81a677 Removed hard-coded path exepectations to allow drag-drop playback 2021-09-21 14:59:39 -06:00
Alexander Bock
34985f64a6 Feature/keybindings (#1708)
* Add action manager to handle actions in replacement of keyboard shortcuts
* Implement new Action concept
* Remove the shortcutscomponent as it is no longer needed
* Update profile version from 1.0 to 1.1
* Add action dialog
* Restructure of key specification in keys.h
* Remove solid field-of-view keybind from the newhorizons profile as the setting no longer exists
2021-08-18 10:58:20 +02:00
Alexander Bock
f4a1baeeb1 Reload UI after adding screenspace renderables or assets (closes #1703) 2021-08-04 13:46:16 +02:00
Emma Broman
58c216f45c Show an info message when asset is added by drag-and-drop 2021-07-16 14:18:10 +02:00
Alexander Bock
70e71ebf55 Offload the star texture synchronization into a separate asset to enable the Gaia profile to be synched from scratch 2021-05-29 19:26:04 +02:00
Alexander Bock
d32a09ba80 Feature/strict lua (#1556)
Make all LuaState strict to check whether uninitialized variables are used
Adapt the existing assets to work with the strict state
2021-04-15 13:01:00 +02:00
Alexander Bock
52b020d836 Include strict lua file, throw error in configuration loading when overriding with unused variable
- Preventing True/true bug
 - Fix issue with unused variable in configuration_helper
2021-04-01 23:37:35 +02:00
Alexander Bock
548d673e8b Add drag and drop support for images and assets (#1497) 2021-02-11 13:43:36 +01:00
Alexander Bock
d95c6c4a47 Removing Clang on MacOS warnings. No longer create external control that doesn't work anymore 2020-12-08 00:24:24 +01:00
Gene Payne
caee77881c Launcher works with all types of SGCT/Profile settings plus commandline 2020-09-24 15:07:53 -06:00
GPayne
83ef5ed245 Switched profile-to-scene conversion from lua script to Profile class 2020-04-15 16:31:05 -06:00