Commit Graph

943 Commits

Author SHA1 Message Date
Mike Thomas 81d26ec622 Dispose of graphics object when done in getSnapshot, and use simpler version of drawImage.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4091 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-05 00:17:42 +00:00
Mike Thomas 2b98453e38 New type of mirage that simply draws a list of mirages one on top of the other(s).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4090 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-04 23:41:41 +00:00
Ray Greenwell 6ddcb0c40e Remove trailing blank line I added when I was fighting with svn.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4048 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-21 23:45:59 +00:00
Ray Greenwell ba72823bcc I'm trying to fix the inconsistent line error so that this can be
checked out elsewhere.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4034 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-18 20:54:56 +00:00
Ray Greenwell 4b384ce89e re-add
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4033 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-18 20:43:37 +00:00
Ray Greenwell 82488226d4 remove/re-add
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4032 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-18 20:43:03 +00:00
Ray Greenwell 92f86774ba Fixed integer overflow that caused incorrect quantization of large images,
or an image with a lot of a particular color.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4031 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-18 20:35:28 +00:00
Ray Greenwell 4bc2481662 Added serialVersionUID.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4024 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-18 00:39:11 +00:00
Michael Bayne 5a2583470c Brought code in line with changes to Samskivert. I have not started to
genericize Narya data structures, nor make the existing code type safe. That's
going to be an extremely large project.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4007 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-10 08:59:30 +00:00
Ray Greenwell 6c3bc1cb78 Use the pan constants in a few more places to improve readability.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3982 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-25 22:46:00 +00:00
Mark Johnson 8298025a11 Added pan control for looping sounds
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3981 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-25 20:55:55 +00:00
Mark Johnson 5690a38096 Looped sounds were not checking to see if that sound type was enabled
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3980 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-25 20:49:22 +00:00
Mark Johnson b7e63c4b38 One more handy constant
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3976 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-24 22:25:03 +00:00
Ray Greenwell 02f1aaa904 Fixed bug with setting pan.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3975 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-24 22:19:16 +00:00
Ray Greenwell 9f4c7c1ae2 Use setPan() in the SoundKey constructor so that we bound to sanity the
pan value passed to us.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3974 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-24 04:12:38 +00:00
Ray Greenwell 6ab61243d9 Allow setting the pan for a sound.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3973 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-24 04:01:24 +00:00
Mark Johnson 70cb89d62d Bobble paths now with extra smoothness
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3971 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-24 00:13:06 +00:00
Mike Thomas 95ff914ab6 Deal with blank tiles by returning a 1x1 blank pixel rather than a bunch of invalid values.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3965 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-21 02:32:27 +00:00
Michael Bayne 7422b1e986 Expose getColorRecord() as it is needed externally.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3955 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-17 00:56:57 +00:00
Mike Thomas ac6e897905 Colorizer is now smart enough to handle xml files instead of just the pre-parsed dat files.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3887 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-24 01:24:34 +00:00
Mike Thomas 9472c58efb Updated recolorization tool to be more useful in creating colorizations and in viewing colorizations of art. Now has two modes:
- View all colorization mode shows all the colorizations of a selection colorization class for the image.
- Normal mode allows modification by sliders of the colorization parameters.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3886 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-23 23:53:36 +00:00
Mark Johnson c2d7b7361a Added the ability for DelayPath to set a location for the path.
Some whitespace cleanup.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3880 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-22 18:29:05 +00:00
Mike Thomas 46f61df574 Bugfix: Black screen on furniture rearranging:
- The range model was not correctly handling the case that the viewport in which we were arranging furniture was bigger than the area that the room wanted to cover.  This problem never occurred in 800x600 mode, but could occur at larger resolutions in smaller rooms (such as shacks).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3874 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-21 19:53:26 +00:00
Ray Greenwell 28ac720b98 Moved avoid animation tracking into a helper class.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3854 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-14 22:17:52 +00:00
Ray Greenwell 9faa866dba Added a method that exists in VirtualMediaPanel.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3853 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-14 22:15:55 +00:00
Ray Greenwell 39565a6d92 Occam's razor.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3827 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-03 01:02:41 +00:00
Ray Greenwell 21181e8ba3 Don't dirty our bounds if setLocation() is called with our current
location. This could possibly break something that depended on the old
behavior, so we'll have to watch for broken things and make them right.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3822 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-27 03:28:04 +00:00
Mike Thomas dfc8112277 Split out fading sprite capability from the CardSprite class so it can be extended and used elsewhere.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3819 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-24 19:46:34 +00:00
Michael Bayne bf5fff9ee1 Don't forcibly render layer components that are not currently visible; added a
mechanism for layer components that know they will never be "under-rendered" to
avoid the expense of forced rendering on every tick.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3805 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-16 21:21:22 +00:00
Mike Thomas 7ecb150627 Oops. Fixed memory leak in FrameInterval by calling cancel if we're not repeating.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3794 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-21 02:14:36 +00:00
Mike Thomas 5a57753d84 New client-side version of the Interval class which runs as a FrameParticipant, using the FrameManager's timing mechanism.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3791 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-21 01:48:15 +00:00
Ray Greenwell 7a64be94f2 Goodbye, NestableIOException.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3788 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-20 02:09:18 +00:00
Mike Thomas 12c9f86735 Add additional type of orientation to ArcPath - NONE - which keeps us from reorienting sprites following the path.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3780 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-08 21:59:12 +00:00
Mike Thomas db5de88da2 Added capability to get translated (in x and y) versions of Arc and Line Paths.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3779 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-08 19:42:11 +00:00
Mark Johnson 709c2d94bf Have the delay path call pathCompleted when it is done. Otherwise it's
going to be a very long delay.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3765 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-18 00:54:35 +00:00
Mark Johnson 9e533f3d3d Added a DelayPath convenience class.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3764 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-17 23:56:41 +00:00
Michael Bayne 596d2a4708 blank() -> isBlank().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3749 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-09 04:00:16 +00:00
Michael Bayne 4dba269585 Finished support for shadows. This is all some seriously complicated shit, but
the shadows sure look cool.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3740 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-20 22:12:45 +00:00
Ray Greenwell 8ca6e7a17c Preconcatenate the translation into the transform so that we have
that in there for hitTest().

(Note: a lot of what's going on in this class is untested beyond what
I need right now).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3737 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-19 18:46:49 +00:00
Ray Greenwell 4848a3e2ca A TransformedMirage is another mirage that is transformed by any
AffineTransform.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3736 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-19 18:28:40 +00:00
Ray Greenwell 29c2cfddd1 Some optimizations and cleanup, since sprites are already sorted by
render order in our internal list.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3733 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-13 19:00:08 +00:00
Ray Greenwell bb5e7fed19 Treasure Drop depended on the previous behavior, where if the hover sprite
was still hitting it didn't check for a new one. Let's keep the
check but instead let's just make sure that we ignore sprites
that are non-action or non-hover or are disabled.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3731 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-13 08:54:25 +00:00
Michael Bayne dd2468b140 Javadoc tidying up.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3725 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-08 22:21:19 +00:00
Michael Bayne c442ce3023 Allow the sprite action handler to be customized.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3722 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-05 05:59:53 +00:00
Michael Bayne 1631093451 No longer insist that we ask the AWT to create optimal images. Instead an
interface is provided that does that in a pluggable manner.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3720 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-05 01:39:45 +00:00
Michael Bayne a9d72cf9c4 My change didn't properly "unhover" the old hover sprite when an overlapping
but higher priority hover sprite was entered. Noted a refinement that would
make getHit() more correct in the overlapping case.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3718 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-02 01:32:05 +00:00
Michael Bayne d556c79088 Removed the optimization of not recalculating the hover sprite when we were
still over a hover sprite as that prevents things from working properly if
hover sprites overlap. This isn't much of a tradeoff as most of the time the
mouse is not over a hover sprite in which case it does the full hit testing
anyway.

Also fixed a bug wherein the active sprite was not actually configured unless
it implemented HoverSprite which the rest of the code takes pains not to
require (it should be and is now possible to have action sprites that do not
implement HoverSprite but still work).

By the way, this whole action/hover/etc. sprite business is goddamned handy.
It's *so* much nicer than having to implement mouse listeners and do a bunch of
crap by hand.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3717 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-02 01:27:24 +00:00
Andrzej Kapolka f1511a8398 Fixed comment; the same prefix is used for normal-height and low walls.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3698 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-07 23:23:06 +00:00
Andrzej Kapolka 00ae2e251c Added support for "low" walls/attachments.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3697 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-07 23:19:17 +00:00
Ray Greenwell 898a3bf5d5 Not sure if this is a big deal, but it can't hurt: our media panels
shouldn't be transparent so that repaints don't travel up past them.
(Some were, but I think our repaint manager was keeping paints out of
the parents anyway, somehow).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3663 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-28 21:08:47 +00:00