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
92c6a8a564
Complain about invalid dirty regions; ignore useless regions.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1861 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-30 00:26:53 +00:00
Walter Korman
af5b530b4c
Fixed log message formatting.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1859 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-29 23:44:23 +00:00
Walter Korman
6334b6d690
Sanity-check dirty rectangles when painting the media panel.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1858 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-29 20:33:51 +00:00
Walter Korman
092e0f110c
Sanity-check for null dirty rectangles.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1857 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-29 20:33:26 +00:00
Michael Bayne
14a313486b
Documentation repairs.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1842 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-27 18:49:51 +00:00
Michael Bayne
c3eb45bbed
Remove crack pipe; insert correct code.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1834 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-26 23:21:19 +00:00
Michael Bayne
2c2a9f819d
Documented SafeScrollPane requirement.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1833 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-26 20:31:15 +00:00
Michael Bayne
868ce6f471
Added method for obtaining the sign of a value.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1832 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-26 20:31:06 +00:00
Michael Bayne
286892639e
Removed the vestigal return as it confused the comment.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1829 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-25 21:15:27 +00:00
Walter Korman
beca9850aa
Return null in getImageSource() if the specified bundle can't be found, as
...
was documented, so that callers can do things like fall back to trying the
classpath rather than having the previously-thrown IOException circumvent
the rest of their antics.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1826 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-25 00:44:16 +00:00
Walter Korman
ea6733ba20
Log image dimensions when given a badly sized image.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1822 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-22 02:05:42 +00:00
Walter Korman
2a26c76006
Deal gracefully with images that we can't usefully tile (which includes
...
the default 1x1 transparent image we're given if the image manager failed
to load an image successfully.)
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1821 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-22 02:02:40 +00:00
Michael Bayne
3ee6e84676
Now supports loading icons from resource bundles.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1814 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-17 17:43:21 +00:00
Michael Bayne
3ec6f9301c
Added a method for creating a uniform tileset that loads its source image
...
from a resource bundle.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1813 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-17 17:42:53 +00:00
Michael Bayne
8662f12241
Further support for loading images from resource bundles.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1812 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-17 17:42:20 +00:00
Ray Greenwell
366111dbfe
small optimizations to avoid System.arraycopy()
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1810 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-17 02:11:58 +00:00
Walter Korman
efe514eb3b
Not to use a double-semicolon.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1809 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-16 23:23:32 +00:00
Walter Korman
78b0d1eae9
Added loadImage() variant that allows specifying the resource set from
...
which the image is to be loaded. Removed unused imports.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1807 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-16 15:57:12 +00:00
Ray Greenwell
be2bc4205b
Anally removed Comparator.equals() implementations that overrode
...
Object.equals() with equivalent functionality.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1799 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-15 21:01:39 +00:00
Michael Bayne
107273fce3
More debug logging for future debuggers.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1798 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-10 00:09:07 +00:00
Michael Bayne
a8e6c46f70
No more flashy flashy.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1795 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-09 06:33:00 +00:00
Michael Bayne
a8bafced3f
Target 80 fps; not to tick rather than not to checkpoint wrt the
...
performance monitor.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1794 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-09 06:31:38 +00:00
Michael Bayne
521cb7358e
Ignore JTextField's spurious claims to be a validate root.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1793 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-09 02:35:20 +00:00
Michael Bayne
bb44fedab2
Have to force serialVersionUID to avoid DashO fuckage.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1792 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-09 00:23:51 +00:00
Michael Bayne
38000b062b
These guys shouldn't be serialized.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1788 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-08 21:59:09 +00:00
Ray Greenwell
a0730067ec
Pulled out gobs of Sprite/Animation functionality into AbstractMedia.
...
Pulled out gobs of SpriteManager/AnimationManager functionality into
AbstractMediaManager.
The big change: sprites can have their render order fine-tuned like
animations.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1787 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-08 21:03:37 +00:00
Michael Bayne
b0c1f2ebc5
Allow a safe scroll pane to be constructed without its viewport view
...
(which should be set later via setViewportView()).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1783 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-06 20:57:36 +00:00
Walter Korman
09a2f8e950
Initialize the animation starting time when the animation is first ticked
...
rather than requiring that it be set via setStartTime().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1764 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-01 04:24:34 +00:00
Walter Korman
5af9b4ac19
Initial version of an animation that allows adding animations sequentially
...
with a specifiable delay between each.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1762 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-30 06:30:47 +00:00
Walter Korman
03b1dbe90d
Fixed the smallest typo in javadoc.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1761 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-30 06:18:46 +00:00
Walter Korman
25bd81e59a
Added facilities for disabling the playing of sound without shutting down
...
the sound manager wholeheartedly.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1760 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-30 06:13:36 +00:00
Michael Bayne
59c522aae5
Updated deprecated references to project.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1759 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-27 19:02:15 +00:00
Michael Bayne
4e9acda18d
Sort the mappings prior to writing the map file to enhance map file
...
stability wrt diffing.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1756 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-26 02:08:47 +00:00
Walter Korman
fd71c2a853
Take into account the x-offset of the rectangle within which the image is
...
being rendered when drawing the right edge of the image.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1754 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-25 21:49:53 +00:00
Michael Bayne
9acc27d3f3
Not to freak out if we can't load an image. Log an error and return a fake
...
image instead.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1753 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-25 07:15:16 +00:00
Michael Bayne
d675e3f970
Preserve the transparency characteristics when creating an image optimized
...
for display on screen.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1744 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-23 23:30:23 +00:00
Michael Bayne
f7e383d667
Terser toString().
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1740 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-23 21:52:43 +00:00
Michael Bayne
82cd152a6f
Modified map file serialization to store things in text so that we can
...
easily see what the mappings are and properly diff mappings that are
checked into CVS.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1739 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-23 18:53:01 +00:00
Michael Bayne
4d94555e09
Added a means for looking up tilesets by name (though you should know
...
which bundle they are in to avoid scanning the whole goddamned lot).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1738 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-23 18:19:57 +00:00
Ray Greenwell
0a503148df
if the sequencer is an AnimationFrameSequencer, let it know about us.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1732 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-20 21:37:22 +00:00
Ray Greenwell
aa715a6a5a
AnimationFrameSequencer is a FrameSequencer that wants to know about
...
the Animation it's working for.
The enclosed MultiFunciton sequencer can do all sorts of neat stuff.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1731 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-20 21:36:53 +00:00
Ray Greenwell
e6d5adfb96
removed unneeded import
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1730 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-20 21:35:32 +00:00
Ray Greenwell
e790f98774
an AnimationEvent that indicates that a particular frame or frame sequence
...
index has been reached.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1729 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-20 21:35:11 +00:00
Michael Bayne
c1667c3782
Animation manager now takes into account fine grained render order when
...
rendering animations.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1728 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-20 21:28:20 +00:00
Michael Bayne
cecb5fbef5
We'll be needing the -- not the ++.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1722 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-20 02:19:53 +00:00
Michael Bayne
7e45b58f50
Modified tick() order to prevent unhappy business if a sprite removes
...
itself in tick().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1721 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-20 02:12:33 +00:00
Michael Bayne
70b2f7f494
Slightly less expensive jockeying to ensure that we do the right thing
...
when starting up and being told to switch to frame zero.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1706 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-17 22:18:42 +00:00
Ray Greenwell
bed0c21515
make sure to paint the first frame when starting an animation.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1705 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-17 22:06:26 +00:00