MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / ConsoleMethod

Function ConsoleMethod

Engine/modules/Verve/GUI/VTimeLineControl.cpp:427–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

425}
426
427ConsoleMethod( VTimeLineControl, getSelection, const char *, 2, 2, "( )" )
428{
429 const S32 minTime = getMin( object->mSelection.StartTime, object->mSelection.EndTime );
430 const S32 maxTime = getMax( object->mSelection.StartTime, object->mSelection.EndTime );
431
432 // Fetch Return Buffer.
433 char *retBuffer = Con::getReturnBuffer( 256 );
434
435 // Write.
436 dSprintf( retBuffer, 256, "%d %d %d", object->mSelection.Active, minTime, maxTime - minTime );
437
438 // Return.
439 return retBuffer;
440}
441
442ConsoleMethod( VTimeLineControl, setSelection, void, 3, 5, "( pActive, [pTime, pDuration] )" )
443{

Callers 1

Calls 4

getMaxFunction · 0.85
getReturnBufferFunction · 0.85
dSprintfFunction · 0.85
updateDurationMethod · 0.45

Tested by

no test coverage detected