Commit Graph

15 Commits

Author SHA1 Message Date
Alexander Bock
7df0a0e927 Handle gif files as videos instead of images 2025-02-02 11:51:31 +01: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
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
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
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
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
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
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
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
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
GPayne
6c5a81a677 Removed hard-coded path exepectations to allow drag-drop playback 2021-09-21 14:59:39 -06: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
548d673e8b Add drag and drop support for images and assets (#1497) 2021-02-11 13:43:36 +01:00