Enhancements to support simple scrolling. A number of things don't work if

the view is scrolled, like object tiles, mouse coordinate computation and
pretty much anything other than rendering a scrolling background under
some sprites. Someday we'll probably want to sort out all that other
business, but not under current monthstone circumstances.

Note: the scrolling still feels a bit choppy (even under Windows) which is
annoying, but I'm doing everything by the book and have spent too much
time fine tuning it already, so we'll have to come back to this later if
we're not happy with the visuals.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1012 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-02-17 23:45:36 +00:00
parent fbc39605e7
commit 4b783c4482
3 changed files with 191 additions and 91 deletions
@@ -1,5 +1,5 @@
//
// $Id: SceneViewPanel.java,v 1.27 2002/02/12 08:53:59 mdb Exp $
// $Id: SceneViewPanel.java,v 1.28 2002/02/17 23:45:36 mdb Exp $
package com.threerings.miso.scene;
@@ -116,6 +116,14 @@ public class SceneViewPanel extends AnimatedPanel
_ty = (_viewmodel.bounds.height - size.height)/2;
}
/**
* If we're scrolling, we need to pass the word on to our scene view.
*/
protected void viewWillScroll (int dx, int dy)
{
_view.scrollView(dx, dy);
}
/**
* We overload this to translate mouse events into the proper
* coordinates before they are dispatched to any of the mouse