Commit Graph

451 Commits

Author SHA1 Message Date
Michael Bayne 1f44f241c3 Logging cleanups.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1918 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-06 01:39:32 +00:00
Walter Korman 7acc400904 Added toString().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1917 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-06 00:05:16 +00:00
Michael Bayne 10c2251bdb This is tricky business; we need to be more careful about how we handle
animations triggered on the completion of previous animations so as not to
booch things if a triggered animation is queued up after all previous
animations have already been started.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1916 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 23:56:35 +00:00
Michael Bayne 562111a95d Better debug logging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1915 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 21:53:56 +00:00
Michael Bayne 07ee41afef Whoops! Didn't finish the job prior to that last checkin.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1914 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 21:29:00 +00:00
Michael Bayne b24800922a Changed addAnimation() to startAnimation(), made it protected. Removed
getAnimationCount() because it's no longer valid.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1913 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 21:27:49 +00:00
Michael Bayne 913264c225 Documentation cleanup; removed vestigal _lastidx.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1912 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 21:23:55 +00:00
Michael Bayne f3fd0744ec Further clean up. We love helper classes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1911 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 21:17:32 +00:00
Michael Bayne da1119b61a Cleaned up and robustified. There were issues.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1910 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 21:12:55 +00:00
Michael Bayne a1fb4647a5 Removed vestigal test logging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1909 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 21:03:31 +00:00
Ray Greenwell 2ab8861dba - Set the resource freeing timer to operate in non-repeating mode, since I
previously stopped it every time it fired anyway.
- Enforce a maximum queue size for played sounds so that things don't get
  out of hand.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1908 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 21:02:03 +00:00
Michael Bayne 3eba0dcf13 Animation sequencer revamp: animations can be added incrementally;
animations can be cued on the completion of the previous animation;
runnables can be provided for invocation upon animation completion or
in place of an animation in the chain.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1907 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 20:53:53 +00:00
Michael Bayne d5dbc514ca Use observer lists.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1906 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 20:52:39 +00:00
Michael Bayne 400b8ca638 Use ObserverList; provide timestamp to animation events.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1905 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 20:51:50 +00:00
Michael Bayne 144cf2299a Provide a timestamp with animation events.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1904 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 20:51:13 +00:00
Michael Bayne ece79bc86c Use observer lists for our observers instead of array lists.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1903 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 20:50:42 +00:00
Ray Greenwell 6a2cc6a16f optimize common case of having no dirty rectangles
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1902 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 18:52:11 +00:00
Michael Bayne e05341f035 When the JViewport scrolls its components, it simply calls setLocation()
which results in the component (and every other component in between that
component and the Sun) becoming invalid. Unfortunately, it isn't kind
enough to also let the RepaintManager know about its jokey business, and
so things simply remain invalid until some other joker comes along and
invalidates everything on God's green earth (like the JTextField). We hack
in a call to revalidate() on our poor unsuspecting scrolled component so
that everything will work properly.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1901 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 05:51:18 +00:00
Michael Bayne b69e92c992 The joy of Swing. We have to refuse to acknowlege JScrollPane instances as
validate roots because when their children are invalidated, it causes the
entire hierarchy to be invalidated, which we then must revalidate lest
they live the rest of their mortal lives as invalids.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1900 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 05:49:31 +00:00
Michael Bayne 0608a27c67 Set the sprite's location to exactly what it needs to be in order for its
image to render in the upper left of where we want it.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1897 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 03:40:06 +00:00
Michael Bayne 118f6b2363 Provide access to the x and y origin offsets.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1896 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 03:38:59 +00:00
Ray Greenwell 271d0ffb85 a timorous transition from listening to stop events to just calculating
the time at which the sound will stop. Stop events are flawed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1886 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-02 01:49:20 +00:00
Ray Greenwell 4cbca95044 Sound manager revamp.
- let the AudioSystem figure out the file format from the sound data.
- LRU cache for clip data
- Don't free system resources from clips until at least 4 seconds after
  they're finished playing. Reuse clips (and their resources) when possible.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1883 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-02 00:26:55 +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 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