more movement options

Originally committed to SVN as r112.
This commit is contained in:
tentacle 2006-02-22 19:24:17 +00:00
parent 6f24fdae42
commit bfbe5c0745

View file

@ -285,6 +285,22 @@ void VideoDisplay::OnMouseEvent(wxMouseEvent& event) {
curline->Movement->Frames[localframe].Pos.x += float(x-MouseDownX);
curline->Movement->Frames[localframe].Pos.y += float(y-MouseDownY);
}
else if( MovementEdit==3 )
{
for( int i=0;i<=localframe;i++ )
{
curline->Movement->Frames[i].Pos.x += float(x-MouseDownX);
curline->Movement->Frames[i].Pos.y += float(y-MouseDownY);
}
}
else if( MovementEdit==4 )
{
for( int i=localframe;i<curline->Movement->Frames.size();i++ )
{
curline->Movement->Frames[i].Pos.x += float(x-MouseDownX);
curline->Movement->Frames[i].Pos.y += float(y-MouseDownY);
}
}
}
MouseDownX = x;
MouseDownY = y;