Commit Graph

31 Commits

Author SHA1 Message Date
Ray Greenwell 6acbd15c2f Small fix: if we're bypassing the copyArea scrolling on a macintosh
and just dirtying the entire panel, we don't want to set _dx and _dy, as
that will trigger the actual use of copyArea and so forth during painting.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3232 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-23 23:38:43 +00:00
Landon Fuller 660ff94fc1 On Mac OS X, mark the entire panel as dirty when scrolling to fix artifact issues.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3229 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-23 20:09:23 +00:00
Michael Bayne cd51c78619 Added support for using sprites that are fixed in relation to a
potentially scrolling view. Also added a means for non-sprites and
animations to hear about view scrolls.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3209 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-11 23:52:43 +00:00
Michael Bayne 4481cd5f6c Added an import for a javadoc comment.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3191 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-29 19:33:16 +00:00
Michael Bayne 1f8c4578b7 LGPLed the library. Hello world.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3098 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-27 02:12:55 +00:00
Ray Greenwell 15b1d7137c Dead code pruning.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2985 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-03-28 00:36:39 +00:00
Michael Bayne d618d3c771 Eclipse suggested cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2971 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-25 14:50:28 +00:00
Eric Lundberg 596f55e315 Adding in ye' old McHack until I can figure out what is actually booched with the macs copyarea. This lets the game play all happy like.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2950 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-05 18:53:00 +00:00
Ray Greenwell 708008b65f Changed so that to follow a pathable you pass in the pathable and one of the
public follow mode constants, instead of having a different method for
enabling each different follow mode.
Added a new follow mode: track, which aligns the upper-left coordinate of the
view with the hotspot of the pathable.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2851 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-11-12 21:47:09 +00:00
Ray Greenwell 8f0ec22267 Undid my last revision; the X/Y coordinates of a pathable are actually the
hotspot, which does not need to be the upper left coordinate. So we let
the sprite do the right thing and we just center on the hotspot.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2681 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-24 18:02:58 +00:00
Ray Greenwell 0d79024b5c When centering on a pathable, center on its center rather than its
upper-left coordinate.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2677 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-24 02:24:54 +00:00
Michael Bayne 704cee77d1 No more regions of interest, now we follow pathables.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2555 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-08 16:10:50 +00:00
Ray Greenwell 4d267ebc8c Allow specification of a background image to tile the background
of the panel in an aligned manner.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2553 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-08 04:52:24 +00:00
Michael Bayne df50d9fb0d Only do the Windows copyArea() workaround on Windows because it crashes
the MacOS JVM (though the MacOS JVM has the same fricking bug, it's just
that the workaround doesn't "work").


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2534 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-02 23:49:57 +00:00
Michael Bayne e6126a4787 If FPS display is on, dirty it properly when the view scrolls.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2521 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-02 15:11:51 +00:00
Michael Bayne 1274fbb7c0 Let's inform the derived classes of the delta rather than the new _vbounds
upper left which is something they're already much more likely to be
making use of directly.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2443 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-22 18:12:40 +00:00
Michael Bayne d5701962a3 The big fat bernie revamp! Er, big fat miso revamp rather:
- Combined SceneViewPanel and IsoSceneView into one happy panel.
- Ditched the DisplayMisoScene notion; the new MisoScenePanel now manages
  resolved scene information (like base, object and fringe tiles) itself
  so that it can...
- ...support scrolling scenes by keeping blocks of resolved base, fringe
  and object information loaded only for what is potentially visible
  rather than for the whole scene.

Other things were surely cleaned up or broken in the process to keep a
keen eye out.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2413 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-17 19:21:17 +00:00
Michael Bayne a8c6d62913 Immediately update our scene location when we are requested to track a
pathable.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2404 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-12 01:26:29 +00:00
Michael Bayne 3dbd1c77dd Maintain a view bounds rectangle and make it available to callers.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1977 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-20 22:15:34 +00:00
Walter Korman d9f7ebc792 Busted a cap in the accidentally-left-in verbose logging that pissed me
off so much while I was sailing around.  Take that you little fucker!  How
do you like that, huh?


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1867 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-30 09:34:08 +00:00
Michael Bayne 6b651c2f9c Don't request to dirty an invalid region if we scroll more than an entire
screen vertically, instead request to dirty one with zero height.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1862 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-30 00:27:37 +00:00
Michael Bayne ce424d616d Useful debugging info.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1685 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-16 23:34:55 +00:00
Walter Korman fa21a78242 Override setBounds() to capture resizing and movement rather than creating
a component listener.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1631 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-08-08 20:58:32 +00:00
Walter Korman c671f5a1c8 Update the panel's absolute screen coordinates whenever the component is
moved or resized, in addition to when it is laid out.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1630 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-08-08 20:16:07 +00:00
Walter Korman 627ee5a1db Javadoc fixes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1557 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-07-02 23:15:53 +00:00
Michael Bayne 7562ba50f5 Fixed bug when rendering scrolling view (need to set the clip properly
before scrolling); added encloses pathable mode which is like follows
pathable except that the pathable is not tracked with the center of the
screen but instead their bounds are kept inside the visible area.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1506 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 07:49:44 +00:00
Michael Bayne b0ab364885 Zoiks! Ze bug!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1504 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 00:58:36 +00:00
Michael Bayne 8ca5fc3857 We need to ensure that dirty regions are constrained to the bounds of the
component in MediaPanel as well as VirtualMediaPanel.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1482 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-19 07:41:37 +00:00
Michael Bayne 1ef85b78d8 Worked around the Windows copyArea() bug; yay!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1481 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-19 02:34:39 +00:00
Michael Bayne 30071e79c2 Lose the magic circle.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1478 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-18 23:34:34 +00:00
Michael Bayne 7253a68c7c Death, taxes and refactoring: seriously revamped the low-level media code
to handle scrolling in a much cleaner and happier way. There's now a
VirtualMediaPanel which operates in virtual coordinates and can be made to
"view" any location in those virtual coordinates. By changing the view,
the view can be scrolled and the view can be made to center on a pathable
(generally a sprite) which will cause it to scroll around as the pathable
moves around in the virtual coordinate space.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1475 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-18 22:25:33 +00:00