Commit Graph

656 Commits

Author SHA1 Message Date
Michael Bayne 2f80c9b057 Removed obsolete image loaders.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2456 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-25 15:51:49 +00:00
Michael Bayne ae0376d4ec Removed a bunch of obsolete stuff.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2455 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-25 15:51:34 +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 1fc693523d Add constructor that takes bounds. We love the bounds.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2438 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-20 04:52:33 +00:00
Michael Bayne 1cb3d1edb5 Added floorDiv().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2432 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-19 22:28:28 +00:00
Michael Bayne e6a1ebbd80 We need to recreate our back buffer if our frame's bounds change.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2426 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-19 01:04:29 +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 025cb91668 Ensure that any media inserted between the call to tick() and the call to
renderAllMedia() is ticked in all circumstances and ticked exactly once.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2411 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-15 21:27:22 +00:00
Michael Bayne 7aeae0d4c3 Change removeAnimation() to abortAnimation(); that's what is happening.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2410 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-15 00:39:20 +00:00
Ray Greenwell 3bdeed559f - Do time math with the last timestamp rather then precomputing the next
timestamp so that we can switch frame rate on the fly.
- added setLength() to use a subset of the sequence
- added setResetOnInit() so that the sequencer can be swapped into a new
  animation without being reset if desired.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2409 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-14 20:36:16 +00:00
Ray Greenwell c0f4ed2777 progress towards duty feedbackers
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2408 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-14 17:16:23 +00:00
Michael Bayne 98e48001dc Added bound().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2405 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-12 02:06:35 +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 fca168018e Don't freak out if we can't load our source image.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2400 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-11 18:48:05 +00:00
Michael Bayne 9c113eb8dc Not to choke if we get passed a null image.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2394 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-09 22:02:20 +00:00
Michael Bayne 6ea4264eb4 If we fail to load an image, create a blank one in its stead.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2393 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-09 22:02:05 +00:00
Ray Greenwell 46b8aace97 Don't log a bunch of crap for sounds that are missing during a LOCK
unless verbose logging is turned on.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2392 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-08 20:30:44 +00:00
Ray Greenwell 77633366cc Handle not finding a music player for a song gracefully.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2389 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-08 01:46:16 +00:00
Michael Bayne 8663535d5a Exclude the experimental music players.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2382 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-06 04:36:01 +00:00
Ray Greenwell 728ddcf575 only log that the queue is full (and the full damn contents of the queue)
when verbose logging is on.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2381 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-05 20:48:04 +00:00
Michael Bayne 628bc34eef Make sure we have clips before we try to pick one at random.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2379 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-05 19:00:28 +00:00
Ray Greenwell 02081105c8 cut down on the amount of logging we do for missing sounds
(unless verbose logging is turned on.)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2378 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-05 03:38:41 +00:00
Michael Bayne 34528419a0 We'll be needin' to use them tileset global colorizations if we got 'em.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2377 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-05 01:52:58 +00:00
Ray Greenwell 2c4c2d6b92 - only play the default sound for missing sounds if verbose sound event logging
is turned on.
- Expire PLAY requests if they are not processed within 400ms.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2376 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-04 22:34:59 +00:00
Michael Bayne ad266a629e Added ability to fetch a tileset with specific colorizations.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2375 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-04 19:36:21 +00:00
Michael Bayne 1942314cc1 Log our validations when debugging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2372 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-02 03:59:17 +00:00
Michael Bayne 1abea4cf12 Report the file we actually tried to load from the jar just for kicks.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2371 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-01 19:33:07 +00:00
Michael Bayne cb6d73e98c needsPaint() will only be called by the FrameManager *after* it has just
called tick(), therefore we don't need to incorporate _tickPaintPending
into our determinations. Additionally, we need to clear _tickPaintPending
if we return false from this method because we won't get painted in that
case and won't clear it in paint().


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2369 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-01 03:38:03 +00:00
Michael Bayne 927be852bd Added support for providing colorization assignments when fetching tiles.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2367 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-01 02:16:28 +00:00
Michael Bayne fe88ce14a6 Checkus sanitorium.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2349 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-30 02:19:56 +00:00
Michael Bayne c69a7b0f7c Allow the frame to be constructed with a graphics configuration.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2346 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-30 00:00:00 +00:00
Michael Bayne 9c54590c92 We're not generating that colorization for our health. We need to return
it to the caller!


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2345 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-29 02:30:14 +00:00
Michael Bayne 253079107c Make object base dimensions available without having to instantiate an
object tile.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2328 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-26 00:18:55 +00:00
Michael Bayne 0bd5d6728c Whoops, left in some debug logging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2326 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-25 23:06:51 +00:00
Michael Bayne 0b0757b98c Fixed up the goddamned repaint fuckola. Fucking pain in the ass, all this
Swing, AWT and frame manager interaction.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2325 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-25 23:05:58 +00:00
Michael Bayne b66e0d2584 Keep track of whether or not anything was painted each frame and avoid the
extra effort of copying the back buffer to the screen if nothing actually
changed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2322 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-25 19:06:54 +00:00
Ray Greenwell 2c7c0107e2 - don't "lock" sounds when we're using the test sound directory
- allow random picks from among some variants when using test sounds
- fixed default sound for JWS users so that it loads from a bundle


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2319 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-24 19:35:18 +00:00
Ray Greenwell 153ed8d1b9 Added a runtime adjust for verbose logging of sound playing
(useful when working with testsounds).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2318 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-23 04:10:50 +00:00
Ray Greenwell 639e08b36a Specify a fallback sound path in the constructor to be used if
a sound cannot be found.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2315 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-22 18:14:00 +00:00
Michael Bayne f6c16e6faf Allow preferred width or height to be overridden since it seems that
JScrollPane will happily return some insane value when it's wrapping an
empty JList.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2314 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-22 01:56:09 +00:00
Ray Greenwell 632366d019 Fixed bug that may occaisionally cause sound to not shut down,
removed unnecessary synchronization.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2307 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-17 18:50:18 +00:00
Ray Greenwell d1d538376f removed vestigial variable
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2306 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-17 05:28:26 +00:00
Michael Bayne ff600ddb66 Log more information if the queue is full since I saw that when entering a
sword fighting puzzle just now.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2305 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-13 18:35:03 +00:00
Ray Greenwell b0f351769c Good night Wesley, I added a runtime adjust for the output buffer size.
I'll surely remove it in the morning.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2304 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-12 00:28:05 +00:00
Ray Greenwell e3e6077e1b Don't complain if a direction for a spot is specified as '-1',
it's intentional.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2295 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-03 20:41:50 +00:00
Michael Bayne 77d0747692 Actually throw a NoSuchTileSetException when we say we're going it.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2293 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-28 02:03:43 +00:00
Michael Bayne efec457ac7 Modified tileset bundler to not rebuild bundles that are demonstrably up
to date (all files involved in the making of the bundle are older than the
built bundle file).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2292 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-28 00:46:52 +00:00
Michael Bayne d7e60e2749 Not to freak out if we can't recolor an image, just log a warning and
return the unrecolored version.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2288 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-22 01:48:21 +00:00
Michael Bayne 4db9d58cb4 Handle spot information in such a way that we can easily tell if a spot
has been provided for an object tile or not.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2260 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-12 05:33:47 +00:00
Michael Bayne 03573d2a1e Added hasSpot().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2259 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-12 05:33:18 +00:00