MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / changePlotPoint

Method changePlotPoint

Engine/source/gui/editor/guiParticleGraphCtrl.cpp:386–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384}
385
386S32 GuiParticleGraphCtrl::changePlotPoint(S32 plotID, S32 i, Point2F v)
387{
388 //AssertFatal(plotID > -1 && plotID < MaxPlots, "Invalid plot specified!");
389
390 // Add the data and trim the vector...
391 S32 point = removePlotPoint(plotID, i);
392
393 // Argument Buffer.
394 char argBuffer[3][32];
395
396 dSprintf(argBuffer[0], 32, "%d", mSelectedPlot);
397 dSprintf(argBuffer[1], 32, "%d", point);
398 dSprintf(argBuffer[2], 32, "%f %f", v.x, v.y);
399
400 // Call Scripts.
401 Con::executef(this, "onPlotPointRemoved", argBuffer[0], argBuffer[1], argBuffer[2]);
402
403 // call the insert function
404 S32 index = addPlotPoint(plotID, v);
405
406 return index;
407}
408
409S32 GuiParticleGraphCtrl::removePlotPoint(S32 plotID, S32 i)
410{

Callers 1

Calls 2

dSprintfFunction · 0.85
executefFunction · 0.85

Tested by

no test coverage detected