File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -1360,6 +1360,7 @@ Get Custom Function parameters
1360
1360
* `mode` (number) mode (only returned only returned if action is **not** play track, sound or script)
1361
1361
* `param` (number) parameter (only returned only returned if action is **not** play track, sound or script)
1362
1362
* `active` (number) 0 = disabled, 1 = enabled
1363
+ * `repetition` (number) -1 to 60, range and meaning depend on function
1363
1364
1364
1365
@status current Introduced in 2.0.0, TODO rename function
1365
1366
*/
@@ -1380,6 +1381,7 @@ static int luaModelGetCustomFunction(lua_State *L)
1380
1381
lua_pushtableinteger (L, " param" , cfn->all .param );
1381
1382
}
1382
1383
lua_pushtableinteger (L, " active" , CFN_ACTIVE (cfn));
1384
+ lua_pushtableinteger (L, " repetition" , cfn->repeat );
1383
1385
}
1384
1386
else {
1385
1387
lua_pushnil (L);
@@ -1433,6 +1435,9 @@ static int luaModelSetCustomFunction(lua_State *L)
1433
1435
else if (!strcmp (key, " active" )) {
1434
1436
CFN_ACTIVE (cfn) = luaL_checkinteger (L, -1 );
1435
1437
}
1438
+ else if (!strcmp (key, " repetition" )) {
1439
+ cfn->repeat = luaL_checkinteger (L, -1 );
1440
+ }
1436
1441
}
1437
1442
storageDirty (EE_MODEL);
1438
1443
}
You can’t perform that action at this time.
0 commit comments