Cleanup of mostly asset files

- Fixes for all files
 - constexpr cleanup
 - Cosmetic changes
 - Remove punctuation from the end of messages
This commit is contained in:
Alexander Bock
2022-07-28 17:21:59 +02:00
parent 0494343a58
commit 163ac4dcef
928 changed files with 2834 additions and 2858 deletions
+7 -8
View File
@@ -348,7 +348,7 @@ bool ScriptEngine::isLibraryNameAllowed(lua_State* state, const std::string& nam
case LUA_TSTRING:
LERROR(fmt::format("Library name '{}' specifies a string", name));
break;
case LUA_TTABLE: {
case LUA_TTABLE:
if (hasLibrary(name)) {
LERROR(fmt::format(
"Library with name '{}' has been registered before", name
@@ -358,7 +358,6 @@ bool ScriptEngine::isLibraryNameAllowed(lua_State* state, const std::string& nam
LERROR(fmt::format("Library name '{}' specifies a table", name));
}
break;
}
case LUA_TFUNCTION:
LERROR(fmt::format("Library name '{}' specifies a function", name));
break;
@@ -702,7 +701,7 @@ void ScriptEngine::addBaseLibrary() {
"",
"Logs the passed value to the installed LogManager with a LogLevel of "
"'Trace'. For Boolean, numbers, and strings, the internal values are "
"printed, for all other types, the type is printed instead."
"printed, for all other types, the type is printed instead"
},
{
"printDebug",
@@ -711,7 +710,7 @@ void ScriptEngine::addBaseLibrary() {
"",
"Logs the passed value to the installed LogManager with a LogLevel of "
"'Debug'. For Boolean, numbers, and strings, the internal values are "
"printed, for all other types, the type is printed instead."
"printed, for all other types, the type is printed instead"
},
{
"printInfo",
@@ -720,7 +719,7 @@ void ScriptEngine::addBaseLibrary() {
"",
"Logs the passed value to the installed LogManager with a LogLevel of "
"'Info'. For Boolean, numbers, and strings, the internal values are "
"printed, for all other types, the type is printed instead."
"printed, for all other types, the type is printed instead"
},
{
"printWarning",
@@ -729,7 +728,7 @@ void ScriptEngine::addBaseLibrary() {
"",
"Logs the passed value to the installed LogManager with a LogLevel of "
"'Warning'. For Boolean, numbers, and strings, the internal values are "
"printed, for all other types, the type is printed instead."
"printed, for all other types, the type is printed instead"
},
{
"printError",
@@ -738,7 +737,7 @@ void ScriptEngine::addBaseLibrary() {
"",
"Logs the passed value to the installed LogManager with a LogLevel of "
"'Error'. For Boolean, numbers, and strings, the internal values are "
"printed, for all other types, the type is printed instead."
"printed, for all other types, the type is printed instead"
},
{
"printFatal",
@@ -747,7 +746,7 @@ void ScriptEngine::addBaseLibrary() {
"",
"Logs the passed value to the installed LogManager with a LogLevel of "
"'Fatal'. For Boolean, numbers, and strings, the internal values are "
"printed, for all other types, the type is printed instead."
"printed, for all other types, the type is printed instead"
},
codegen::lua::AbsolutePath,
codegen::lua::SetPathToken,
+2 -2
View File
@@ -39,7 +39,7 @@ namespace {
"Enabled",
"This enables or disables the ScriptScheduler. If disabled, no scheduled scripts "
"will be executed. If enabled, scheduled scripts will be executed at their given "
"time as normal."
"time as normal"
};
constexpr openspace::properties::Property::PropertyInfo ShouldRunAllTimeJumpInfo = {
@@ -47,7 +47,7 @@ namespace {
"Should Run All Time Jump",
"If 'true': In a time jump, all scheduled scripts between the old time and the "
"new time is executed. If 'false': In a time jump, no scripts scheduled between "
"the new time and the old time is executed."
"the new time and the old time is executed"
};
struct [[codegen::Dictionary(ScheduledScript)]] Parameters {