| 384 | } |
| 385 | |
| 386 | S32 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 | |
| 409 | S32 GuiParticleGraphCtrl::removePlotPoint(S32 plotID, S32 i) |
| 410 | { |
no test coverage detected