Commit Graph

34 Commits

Author SHA1 Message Date
Adam Rohdin 08b3d92843 Asset for locking temporal layers (#3760) 2025-07-23 14:33:36 +02:00
Emma Broman 703db8c66e Apply "All globes" illumination action to all RenderableGlobes (#3729) 2025-07-02 09:59:26 +02:00
Emma Broman b51a3322e2 Fix toggleFade for multiple property owners, and add openspace.propertyOwner API function (#3721)
* Add a function for getting all propertyowners matching a certain regex
* Fix broken toggleFade - now works with multiple nodes
* Utilize updated toggle fade function in existing toggle actions
* Make `openspace.propertyOwner` work when only tag is included
* And make toggleFade work in a situation where tag matches both a screenspace renderable and scene graph node
* Remove mistakenly added scene graph node (it is really a screenspace renderable)
* Cleanup property check code to reuse check in both property and propertyowner function
2025-06-18 18:32:17 +02:00
Emma Broman ce50c3411d Utilize toggleFade function to clean up some toggle actions (#3718)
* Clean up some actions that should use the `fadeIn` and `fadeOut` scripts
2025-06-16 19:33:59 +02:00
Alexander Bock ae8e95e038 Print info message when hiding the UI that shows how to get it back
- Print the information message informing about the keybdining if it exists
  - Add new function `keyBindingsForAction` that returns the list of keys that are bound to a specific action
  - Change the parameter to the `keyBindings` function to be optional, causing it to return all actions bound to keys
2025-06-02 12:05:37 +02:00
Alexander Bock c3b1aec9be Unify earth_satellite and earth_satellites tags. Harmonize constellation art tags 2025-05-23 00:14:25 +02:00
Micah Acinapura 9ef8a24f1c updates to night sky assets and new actions for ui panel; (#3660)
* updates to night sky assets and new actions for ui panel;

* Apply suggestions from code review

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

* swap order of east/south declaration

* updated zeropoint_data to synched resource

* rework action to use fadeIn

* Apply suggestions from code review

update to ns navigation actions

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

* update to position function for review

* removed action based on review

* Update data/assets/actions/nightsky/createsuntrails.asset

up formatting of suntrails action

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

* update to nightsky grids for segement property name change

* updated fade distances for mercury and venus label to be visible from earth when close

* fix to nightsky grid segments

* added time actions to list of nightsky assets

* Update default UI panels to include night sky panel

* fix to add sun trails action

* Show night sky panel in nightsky profile

---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
Co-authored-by: Emma Broman <emma.broman@liu.se>
2025-05-19 10:27:49 -04:00
Emma Broman 755782d44b Do not include the old friction controls in the toggle overlay keybinds 2025-05-16 16:37:21 +02:00
Emma Broman e0df6d6c2e Default keybinds asset cleanup (#3618)
* Split default keybinds asset file into one file for the actions and one for the keybinds

* Renaming the `default_actions.asset -> solarsystem_actions.asset` and then separating the `default_keybindings.asset` into `default_keybindings` and `default_actions`

* Move time action to correct place in file

* Update ESC -> Ctrl+Q for toggling a shutdown

Also add comment to the clearKey lines to make the connection easier to see

* Remove Alt+R keybinding

* Add asset meta for keybindings asset

---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2025-04-25 14:12:26 +02:00
Alexander Bock 1260ebf309 Don't throw warnings when disabling trails where none are currently loaded 2025-02-28 19:53:25 +01:00
Alexander Bock 2cc5a53aaa Remove version numbers from asset files 2024-06-19 11:26:07 +02:00
Micah Acinapura 9f51549a2a Issue/2518 epicycle (#3195)
* added epicycle asset; updated trailFromEarth period and colors; added FromEarth trails to trail toggle;

---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2024-04-19 13:11:32 +02:00
Micah Acinapura b1048269ae Added time reversal and sidereal actions (#3159)
* added reverse and sidereal actions

* code review updates
2024-04-16 08:34:25 +02:00
Alexander Bock 67d114755c Shifting the keybindings (closes #1055)
- Add new action to instantly toggle all trails
 - Instead of 'H', the 'T' keybind now toggles all trails
 - Shift+T instantly toggles trails
 - Instead of 'W', the 'B' toggles the blackout of the rendering
2024-02-27 20:56:50 +01:00
Alexander Bock e763aeeba9 Global pass over all actions to make most of them not local 2023-09-11 20:09:37 +02:00
Alexander Bock 57fafe48f4 Rename Lua function to bring them more in line with the function naming in C++ (#2840)
* Rename Lua function to bring them more in line with the function naming in C++
2023-08-05 19:20:08 +02:00
Micah Acinapura 1c281b2545 Remove panoramas until licenced; remove currentFocus lighting action until fixed; (#2778)
* removing panoramas until licensing is sorted

* remove current focus from planet lighting until its fixed
2023-06-14 18:46:30 -04:00
Alexander Bock 3727d5ad71 Add new action to toggle dwarf planet visibility (closes #2674) 2023-06-01 10:45:41 +02:00
Alexander Bock 705c898ccd Asset File cleanup (#2713)
* Updating all assets to new coding style
* Cleaning up asset files
* Moving default_actions and default_keybindings files
* Changing procedural globes to explicitly specified globes
* Move Spice loading explicitly to the initialize part and also deinitialize
* Removing unused asset files
  * Removing asset_helper
  * Removing scale_model_helper asset
  * Removing script_scheduler_helper
  * Removing testing_keybindings
  * Remove procedural_globe
2023-05-28 17:23:20 +02:00
Micah Acinapura 5a9bb529f3 Feature/night sky items (#2613)
* added night sky items and camera event
---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2023-04-16 17:29:48 -04:00
Micah Acinapura 2caf747bc7 Added action for global lighting of all globes (closes #2494) 2023-04-13 13:48:15 +02:00
Alexander Bock 3379393af7 Harmonize capitalization of action names (#2579)
* Harmonize capitalization of action names (closes #2215)
* Fix confusion between delta time and simulation time (closes #2536)
2023-04-05 17:58:18 +02:00
Alexander Bock 80e2aaf564 Remove whitespaces at the end of files, ' and - characters 2023-04-05 16:58:45 +02:00
Adam Rohdin 28c5718959 Issue/2408: Fixed #2491 and #2476
* Moved actions that were defined in profiles to assets and updated the keybindings in the profiles

* #2476 Added actions to turn on/off minor moons and their trails (for-all and per-planet)
2023-02-10 17:04:49 +01:00
Alexander Bock 44e5b17ec9 Global pass over the code to remove trailing spaces 2022-11-22 21:06:52 +01:00
Alexander Bock 4ae50bbcb8 Fix issue with the Show All Trails / Hide All Trails action when no trails with specific capitalization are present in the profile 2022-11-21 19:22:01 +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
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
Micah Acinapura 5c3aef96c1 Remove orion neblua from base; updatedpaths for actions (#2088)
* Removed Orion nebula from base and added to default_full profile
* Updated paths for actions
* Added debug action for undoing event fading

Co-authored-by: Alexander Bock <mail@alexanderbock.eu>
2022-05-06 13:33:44 -04:00
Micah Acinapura 7d480552a9 Issue/1814 (#2077)
* Added all trail toggle
* Added actions for trails and planets/moons
* Added planet lighting assetd; updated action paths
* Add mars layers actions
* Added new layers from Carter
* Cleaned up trail action names, cleaned up some default keybindings

Co-authored-by: Alexander Bock <mail@alexanderbock.eu>
2022-05-05 19:08:58 -07:00
Alexander Bock f4115f9bea Use the new fade property for fading in the example events 2022-04-06 00:16:15 +02:00
Alexander Bock 8b74493d96 Removing the asset_helper file (#1868)
- Remove the asset_helper file and call the onInitialize and onDeinitialize functions directly
 - Small compile fix on Windows
 - Removes the need for the registerIdentifierWithMeta function by automatically doing that for all asset.export statements
 - Allow the passing of either identifiers (as before) or entire tables to the removeSceneGraphNode, removeScreenSpaceRenderable, deleteLayer, removeAction, and export methods. In that case, the Identifier key from the table is extracted and used instead
2022-02-01 23:44:36 +01:00
Micah Acinapura 56460f818e Feature/asset meta update part2 (#1855)
* changes to asset/loader/meta to support adding nodes created at runtime

* update assets meta.

* update tle helper and gui to work with changes

* fixes #1840

* group titan trail and atmosphere with globe

* license for magnetosphere

Co-authored-by: ElonOlsson <olssonelon@gmail.com>
2022-01-31 15:58:41 -05:00
Alexander Bock 76dd45e5ce Event System (#1741)
* Add implementation of the EventEngine to handle global event chains
* Add properties to SceneGraphNodes to determine two distance radii for camera-based events
2021-10-11 21:53:00 +02:00