Commit Graph

187 Commits

Author SHA1 Message Date
Andreas Engberg
666135d56f Automatically create bookmarks folder for user (#3262)
* Automatically creates user bookmarks folder if it does not exist
2024-05-20 17:08:57 +02:00
Alexander Bock
4328476d26 Use more filesystem::path where applicable 2024-04-06 23:55:59 +02:00
Alexander Bock
cdf98f7889 Optimizing the data loading. Adding more Tracy macros 2024-03-28 14:30:12 +01:00
Ylva Selling
b347659510 Merge branch 'master' into issue/2645
# Conflicts:
#	src/documentation/documentationengine.cpp
#	src/properties/propertyowner.cpp
#	src/scripting/scriptengine.cpp
#	src/util/factorymanager.cpp
2024-03-25 11:14:09 +01:00
Alexander Bock
3ba346a227 Remove fmt::format and replace with std::format 2024-03-24 20:19:14 +01:00
Alexander Bock
2759c00e4b Pass through the code to address clang-tidy linting (#3083) 2024-03-17 00:58:50 +01:00
Alexander Bock
9a6fe47d17 Fix up text formatting as path's no longer get quoted 2024-03-08 20:19:06 +01:00
Alexander Bock
fff6f8a627 General pass for code cleanup 2024-03-08 00:36:54 +01:00
Ylva Selling
2e078e4e32 Remove includes for json where they are no longer needed 2024-02-26 09:58:35 +01:00
Ylva Selling
5fdd2e9938 Move documentation generation for script engine from script engine into documentation engine 2024-02-23 15:53:28 +01:00
Alexander Bock
6e29d898cf Update copyright header 2024-02-06 15:53:24 +01:00
Malin E
4447de87f5 Issue/2768 (#2872)
* 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
2023-09-07 13:21:29 +02:00
Alexander Bock
1bb36635c6 Don't clear script documentation with every script that gets loaded (closes #2732) 2023-06-03 01:30:19 +02:00
Alexander Bock
bde840ad03 Remove a bunch of compiler warnings
* Remove compile warnings
* Coding style fix
2023-05-16 11:59:28 +02:00
Joakim Kilby
f8d7d5386a terminate ZoneScoped calls (required after Tracy update) 2023-05-16 11:07:01 +02:00
Ylva Selling
9a1e6b8002 Remove old json functions 2023-04-26 16:58:55 -04:00
Ylva Selling
e0fc813525 Update scripting documentation to be backwards compatible 2023-04-26 15:10:32 -04:00
Ylva Selling
3ad2d35cb4 Make all json keys lower case 2023-04-25 17:40:19 -04:00
Ylva Selling
d267bc0dad Remove documentation generator 2023-04-25 16:44:10 -04:00
Ylva Selling
948fdd024b Remove generateJson function from the DocumentationGenerator and move sortJson function to json_helper 2023-04-25 16:32:04 -04:00
Ylva Selling
b8b2867a20 Remove handlebars and refactor 2023-04-21 15:48:09 -04:00
Alexander Bock
ffdcbd871d Reintroduce old-style generateJson function 2023-04-15 10:11:13 +02:00
Ylva Selling
24b828b4eb Address comments on PR 2023-04-14 14:20:38 -04:00
Ylva Selling
150c1457c0 Cleanup 2023-04-12 18:27:35 -04:00
Ylva Selling
3ff6169771 Merge remote-tracking branch 'origin/master' into feature/documentation-overhaul
# Conflicts:
#	src/scripting/scriptengine.cpp
2023-04-12 17:37:28 -04:00
Ylva Selling
c5c1906b8d Dont sort function arguments as they should be sent in in a particular order 2023-03-17 17:12:05 -04:00
Ylva Selling
e463e9e598 Sort json 2023-03-17 15:46:02 -04:00
Ylva Selling
064825060c Update naming to have upper case first letter and spaces when necessary 2023-03-14 16:56:48 -04:00
Alexander Bock
ebf0454da2 Create documentation JSON correctly 2023-03-06 23:38:38 +01:00
Alexander Bock
8c7c932c78 Update codegen, make use of source location information 2023-03-06 15:50:31 +01:00
Ylva Selling
c645fa81b6 Merge remote-tracking branch 'origin/master' into feature/documentation-overhaul
# Conflicts:
#	src/properties/propertyowner.cpp
#	src/scripting/scriptengine.cpp
2023-03-02 11:28:33 -05:00
Alexander Bock
375e5c6561 Tracy Update (#2534)
* Update the Tracy repository
* Update submodules
2023-03-01 11:48:21 -07:00
Alexander Bock
c242104baf Improve the reporting of specification errors 2023-02-13 22:16:23 +01:00
Ylva Selling
0ee565027e Merge remote-tracking branch 'origin/master' into issue/2313
# Conflicts:
#	modules/skybrowser/skybrowsermodule_lua.inl
2023-02-10 13:06:38 -05:00
Alexander Bock
d52c5dd0d9 Cleanup code with designated initializer lists 2023-01-22 23:01:32 +01:00
Ylva Selling
8144fc9ea5 Rename categories in the json file to make it easier to differentiate between C++ classes and scripting 2023-01-17 15:16:03 -05:00
Ylva Selling
64c7d2c150 Unify naming and set more intuitive names 2023-01-11 11:40:38 -05:00
Ylva Selling
38fee89eec Use nlohmann::json for all documentation.
The printout is verified to be the same as before, except for 1) some escape characters which are no longer necessary and 2) strings that contained arrays have now become arrays in the json
2023-01-10 17:20:20 -05:00
Ylva Selling
5bb7dd4133 Rewrite scriptengine to use nlohmann json instead of strings 2023-01-10 12:13:37 -05:00
Alexander Bock
4f4764209f Happy new year 2023-01-02 11:19:33 +01:00
Ylva Selling
e37f3a2948 Initial draft 2022-11-22 10:49:58 -05:00
Alexander Bock
6249fa6d89 Collection of a number of changes (#2286)
* Cleanup Property code
* Remove NOLINT statements
* Return Property class types as string_view
* Remove getStringValue function
* Simplify string value retrieval
* Ensure that image paths in the ImageSequenceTileProvider are sorted (closes #2205)
* Some cleanup of OpenSpaceEngine
* Cleanup documentation
* Some more cleanup of engine classes
* Some more cleanup
* Update SGCT repository
* Use new Jenkins node identifiers as the old method broke with update
2022-10-30 12:54:14 +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
9cc4c595a8 Code Cleanup (#2191)
* constexpr const -> constexpr
* const char* -> std::string_view
2022-07-25 15:57:45 +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
Alexander Bock
99d2bddf7c Address coding style and remove compiler warnings in many places 2022-04-11 18:31:45 +02:00
Alexander Bock
73292ee54c Rename 'slave' to 'client' in the remaining code 2022-04-05 23:10:49 +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
d7d279ea16 Happy new year 2022-01-01 12:32:55 +01:00
Alexander Bock
55ee3d2785 Remove the user data from the Lua function definition 2021-11-04 16:27:54 +01:00