more movement options
Originally committed to SVN as r112.
This commit is contained in:
parent
6f24fdae42
commit
bfbe5c0745
1 changed files with 16 additions and 0 deletions
|
@ -285,6 +285,22 @@ void VideoDisplay::OnMouseEvent(wxMouseEvent& event) {
|
||||||
curline->Movement->Frames[localframe].Pos.x += float(x-MouseDownX);
|
curline->Movement->Frames[localframe].Pos.x += float(x-MouseDownX);
|
||||||
curline->Movement->Frames[localframe].Pos.y += float(y-MouseDownY);
|
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;
|
MouseDownX = x;
|
||||||
MouseDownY = y;
|
MouseDownY = y;
|
||||||
|
|
Loading…
Reference in a new issue