MCPcopy Create free account
hub / github.com/clementgallet/libTAS / startPaint

Method startPaint

src/program/ui/InputEditorModel.cpp:669–691  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

667}
668
669void InputEditorModel::startPaint(int col, int minRow, int maxRow, int value, int autofire)
670{
671 if (col < COLUMN_SPECIAL_SIZE)
672 return;
673
674 if (col == columnCount() - 1)
675 return;
676
677 paintInput = movie->editor->input_set[col-COLUMN_SPECIAL_SIZE];
678
679 /* Don't edit locked input */
680 if (movie->editor->locked_inputs.find(paintInput) != movie->editor->locked_inputs.end())
681 return;
682
683 paintOngoing = true;
684 paintMinRow = minRow;
685 paintMaxRow = maxRow;
686 paintCol = col;
687 paintValue = value;
688 if (autofire >= 0)
689 paintAutofire = autofire;
690 emit dataChanged(index(minRow, col), index(maxRow, col));
691}
692
693void InputEditorModel::endPaint()
694{

Callers 2

mousePressEventMethod · 0.80
mouseMoveEventMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected