Michael Bayne
b51e484605
Unwrapped.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@354 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-27 22:52:09 +00:00
Michael Bayne
d0f8f1e1d0
Turns out people had extended Sprite and added their own Comparable
...
implementation, so let's not stick a fork in that.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@353 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-22 06:45:42 +00:00
Ray Greenwell
db23c89ec0
Don't use parentChanged() to track whether we're onscreen or not,
...
it's unreliable.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@352 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-21 19:47:32 +00:00
Mike Thomas
c73ec397e0
The old way I had the Directory-based bundlers checking for out-of-dateness was prone to error in the face of new files or unfortunate subdirectory situations. Now check on an entry-by-entry basis instead, which is much happier.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@351 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-15 21:56:34 +00:00
Mike Thomas
c68df0bab2
If the directory is missing/empty, don't fail to get the last modification date.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@350 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-15 18:28:20 +00:00
Ray Greenwell
f922f965f1
Added utility methods: findInHierarchy and dumpHierarchy.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@349 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-14 20:11:10 +00:00
Mike Thomas
d6b01cab7a
Enable keyword substitution on these new files.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@348 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-13 19:24:53 +00:00
Mike Thomas
f57e973987
Rather than forcing a rebuild of our tileset and component bundles every time when we're deploying to a directory bundle, decide based on the oldest modification time stamp of any file within the directory. Otherwise, these builds get crazy long.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@347 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-13 18:29:49 +00:00
Mike Thomas
a0b5874d5f
Since we're dropping in individual files here, always assume out of date rather than using the directory's modification time. Eventually, maybe we can scan the directory for the newest file and use that, but we'll cross that bridge later.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@346 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-13 17:49:05 +00:00
Ray Greenwell
d5315690a6
Log -> com.threerings.util.Log
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@345 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-13 09:30:50 +00:00
Michael Bayne
3ea4b8b42e
Don't need net or dobj.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@344 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-13 02:36:34 +00:00
Mike Thomas
ee73dd43de
New type of ResourceBundle - NetworkResourceBundle - This bundle grabs its resources over HTTP from a root URL rather than from a local jar file. To make use of this, we need a way to put all the contents of the bundle into an appropriate directory instead of a jar, including its metadata, so some new Bundler Tasks were created to do this. Finally, allow tile set trimming to be done to a non-raw image format through passing an optional imgFormat parameter. If no parameter is passed, it'll default ot the old behavior of using raw/FastIO. Note that to use network bundles, you can set the set_type in the resource manager.properties file. (e.g. "resource.set_type.tilesets = network") If no set_type is set for a resource set, it defaults to a normal FileResourceBundle
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@343 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-13 01:12:18 +00:00
Mike Thomas
785eb10234
Other errors can occur when loading native keyboard lib, such as security exceptions, so let's catch those too and cope.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@342 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-13 00:44:53 +00:00
Mike Thomas
75152bf968
We should process the nenya classes like the narya classes so that they have proper writeObject/readObject functions and we can read/write to the non-public members properly during streaming.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@341 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-13 00:43:05 +00:00
Michael Bayne
2cdb65e32e
More comment fiddling.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@340 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-10 19:44:48 +00:00
Michael Bayne
6f93ee545b
Formatting fiddling.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@339 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-10 19:44:07 +00:00
Michael Bayne
d00e7b1873
Fix target comment.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@338 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-10 19:43:27 +00:00
Michael Bayne
93e28d42a6
Let's just install rather than build and install here as well.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@337 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-10 19:43:07 +00:00
Michael Bayne
fd64f4d460
Nix unused imports.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@336 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-10 01:19:07 +00:00
Michael Bayne
5485cf2ab4
Make our ManagedRoot available to callers.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@335 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-09 23:00:04 +00:00
Nathan Curtis
e5406c5786
Thats what I get for hoping around my source tree with no regard for file location. I had no idea
...
this was in Nenya.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@334 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-09 03:35:15 +00:00
Michael Bayne
cba2fc4f67
Freak not out when loading images from input streams in a sandbox.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@333 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-08 02:36:17 +00:00
Dave Hoover
ffd07764ee
In case something goes screwy and we come up with a bogus time to sleep waiting
...
on our sound to play, make sure we do at least our half second fudge, rather
than spewing errors as we try to sleep for negative amounts of time.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@332 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-07 18:34:40 +00:00
Dave Hoover
e46e126604
Cut this back; 16 seems to be adequate, and with how everything's structured
...
right now, we only cancel looping sounds after working with a full buffer's
worth of audio, so going too large is problematic.
It'd probably be a Good Thing to do something a little fancier for cancelling
looping sounds more immediately, but for now, we'll stick with close to what's
been the status quo for years.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@331 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-05 19:58:43 +00:00
Michael Bayne
9055539f69
We want to hear about repaints, though I need to test this more in various
...
other scenarios to really really be sure. Oh the twisty maze of AWT passages.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@330 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-03 00:45:12 +00:00
Michael Bayne
1c0e4d2678
Let us collect.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@329 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-02 23:10:31 +00:00
Par Winzell
400feab8f0
It's a bit counterintuitive that nothing in nenya/build.xml actually looks at all the ActionScript files... I keep forgetting.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@328 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-01 15:27:05 +00:00
Par Winzell
45abd9a903
If it were done, when 'tis done, then 'twer well, it were done properly.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@327 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-01 14:50:22 +00:00
Par Winzell
c9ee5f1c21
Add a Hermite interpolator for the Path code. It would be sort of nice to bring Animations and Paths under a common umbrella, by the way.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@326 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-01 14:27:16 +00:00
Dave Hoover
bbbb5a2498
Only jump through extra hoops converting our sounds to pcm if we need to
...
(e.g. decoding oggs, but not playing wavs)
And then make looping work even if we're playing something that doesn't
support resetting to marks in the stream (e.g. decoding oggs)
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@325 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-31 23:34:03 +00:00
Mike Thomas
5ab6e41f2f
Rename parameters to reflect reality.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@324 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-31 23:21:59 +00:00
Par Winzell
9d8d509fc7
Let the world know what's playing.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@323 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-31 22:23:15 +00:00
Dave Hoover
b0a9cb847e
Millis, not seconds.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@322 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-30 23:10:40 +00:00
Dave Hoover
bf50fef84c
When playing sounds, sleep for our estimated line reading time based on
...
how long we think the sound will really take to play, not how long the last
chunk of our buffer will take. With bumped up LINEBUF_SIZE, we'd sleep longer,
but would actually START sleeping much sooner, so we would truncate sounds.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@321 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-30 22:54:46 +00:00
Ray Greenwell
bce057c307
Moved chat controls here.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@320 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-30 19:07:23 +00:00
Michael Bayne
7ac169ad97
Target 1.5 when building.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@319 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-30 06:20:13 +00:00
Mike Thomas
b9d255b032
We can't reliably make the decision as to how to load the image (FastImageIO/raw v normal) at the ResourceManager level - the path name by this point may be a file in the cache which will have lost its indicative extension. Instead, make the decision before we turn the resource path into an actual file name. This fixes YPP's current image loading issues.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@318 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-29 20:15:25 +00:00
Par Winzell
e89f1dbe3b
Added a helpful Animation for smooth alpha transitions.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@317 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-29 16:09:39 +00:00
Par Winzell
7adc0b51f5
Let our clarification not be a blatant lie.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@316 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-29 16:02:34 +00:00
Par Winzell
17d64726a4
Clarify nature of argument.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@315 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-29 15:08:21 +00:00
Dave Hoover
618e688aab
Nix unnecessary cast and unused compare function.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@314 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-26 22:55:49 +00:00
Michael Bayne
cbe348db9a
Fixed warning messages.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@313 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-26 20:17:30 +00:00
Michael Bayne
ee10bb11ed
Extract FileResourceBundle into a separate subclass and hide it away from the
...
rest of the world.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@312 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-26 20:08:38 +00:00
Michael Bayne
9103590534
Load our images directly. Yay.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@311 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-26 19:52:52 +00:00
Michael Bayne
ecc173d6ad
Revamped image loading such that the ResourceManager handles loading images
...
given a resource path so that it can be smart about loading from files versus
streams depending on what works based based on where the resources are coming
from. Also moved FastImageIO into com.threerings.resource to avoid a dependence
on com.threerings.media in resource.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@310 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-26 19:50:53 +00:00
Charlie Groves
3e47134b06
Eclipse metadata
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@309 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-26 18:37:15 +00:00
Dave Hoover
0f98f64a9a
If we want to use fancier SPI things (such as the stuff to trivially let us
...
play oggs), we need to jump through slightly more hoops with our audio.
Also, bumping up LINEBUF_SIZE appears to clear up some general issues with
linux playback being worse than other platforms, but definitely solves issues
where playing ogg turned into a bowl of rice krispies on all platforms.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@308 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-23 00:08:22 +00:00
Par Winzell
3f54473d60
Accept a text format to use, so the button can match the UI it appears in.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@307 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-21 21:35:25 +00:00
Dave Hoover
1ebd28a450
Little bit of widening, type safety, and flagging overrides.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@306 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-17 23:34:32 +00:00
Michael Bayne
8e7997a061
Fixed a bunch of deprecated bits and added some type-safety.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@305 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-17 21:55:59 +00:00