Commit Graph

2658 Commits

Author SHA1 Message Date
Michael Bayne 629c40f631 Increased the padding around the icon and between the icon and text. We're
going to need to make this customizable by derived classes at some point.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2670 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-19 22:12:51 +00:00
Michael Bayne e7a7c2ba09 Pulled icon lookup into method that can be overridden.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2669 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-19 22:03:14 +00:00
Ray Greenwell 3d8e053a7f Added the ability to add dynamic bundles which can be downloaded and added
in while the game is running.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2668 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-19 01:30:27 +00:00
Ray Greenwell b4f2c4c526 Added isUnpacked(), which lets us know if the bundle is downloaded and
ready to go.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2667 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-19 01:12:59 +00:00
Ray Greenwell 5398ce5656 Added support for adding a new bundle on the fly.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2666 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-19 01:12:32 +00:00
Michael Bayne ab2a627f1a Report our time calculations always so that we can do a better job of
debugging weird server delta calculations.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2665 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-18 17:17:21 +00:00
Michael Bayne 629a61d6b5 Report the error directly when we fail to create a jar file.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2664 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-18 16:54:17 +00:00
Michael Bayne cbe229ccb7 Revamped BundledTileSetRepository to make it easier to add bundles on the
fly in the future; it also now provides efficient tileset name to tileset
id mappings which is exported via the TileSetRepository interface. Lastly,
TileManager now relies on TileSetRepository to efficiently provide tiles
by name or id and no longer maintains its own cache (because the
BundledTileSetRepository already maintains the same mappings).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2663 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-18 05:48:45 +00:00
Ray Greenwell 572570de75 Added a static createBundle() to create a jar file from an already prepared
TileSetBundle.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2662 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-18 00:34:47 +00:00
Ray Greenwell 3fb9a4272d Maximally compress jar files that we create.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2661 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-17 23:29:33 +00:00
Michael Bayne 8e158dd1e8 Let's get the class name in there as well.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2660 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-15 16:47:33 +00:00
Michael Bayne aacca4ca02 Only log if we have a user message but no speak object.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2659 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-14 06:23:41 +00:00
Eric Lundberg b9271233ac Har, lets be scanning down, not up.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2658 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-14 01:55:42 +00:00
Michael Bayne 3701cef1d7 Only track UserMessage since we only care to log things other players
said; prune any big history when a new message is noted.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2657 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-14 01:18:27 +00:00
Michael Bayne 1523629ef6 Provide the option to deliver listener body oids or usernames.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2656 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-14 00:59:24 +00:00
Michael Bayne f1ac86936e Be speaker aware. Big brother loves us.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2655 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-14 00:55:40 +00:00
Michael Bayne 61168c737c Don't double note UserMessage instead specifically note tells() which is
the only circumstance where we're not getting sent our own message back to
us.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2654 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-14 00:55:19 +00:00
Michael Bayne e6dc5c38d7 The basis for logging all recent chat on the server. Now I have to make
every type of chat object known to man capable of reporting who's
listening.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2653 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-14 00:47:16 +00:00
Michael Bayne 7d98a59c1c Enable unit profiling and keep an eye out for exceptionally long running
units.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2652 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-12 22:10:07 +00:00
Michael Bayne 105aa7384d Added toArray().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2651 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-12 05:24:08 +00:00
Michael Bayne 1c7fbbdccf Need to name this differently to avoid conflicts.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2650 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-11 17:06:42 +00:00
Michael Bayne 575337b429 Added support for dispatching scene updates made to the currently occupied
scene.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2649 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-11 04:14:11 +00:00
Michael Bayne 087f26b41b Further work on dynamic scene updating.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2648 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-11 02:48:07 +00:00
Ray Greenwell d9e38c1d35 Don't hork if there is a config for a music key, but it's empty.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2647 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-07 00:41:25 +00:00
Ray Greenwell 092299d23f Updated SpeakMarshaller import, which I missed the other day because
I was just search .java files.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2646 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-06 23:58:53 +00:00
Michael Bayne ef6fe1c6ee Whoops, left in a call to System.gc().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2644 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-06 00:20:41 +00:00
Michael Bayne e6c3d54905 Disabled scene memory usage reporting as we get a good enough idea from
periodic cache stats at the moment.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2643 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-05 18:41:36 +00:00
Michael Bayne d0ad3559cd Use SoftReference rather than WeakReference, the former apparently being
subtly more appropriate for what we're doing.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2642 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-05 17:32:03 +00:00
Michael Bayne 52e5206ff4 Keep a single colorization record around for each ColorRecord rather than
creating the same Colorization instance over and over each time we're
asked for one.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2641 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-05 17:31:21 +00:00
Ray Greenwell d1e2c532e4 Fixed typo with previous checkin. Must get sleep.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2640 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-05 00:33:43 +00:00
Ray Greenwell 7dd942b673 Start out the ping interval id at -1 so we can tell if it needs to be
unregistered.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2639 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-05 00:29:45 +00:00
Ray Greenwell 6cb3d605d7 Be sure to unregister the interval, even if the the reader exits before
we logoff.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2638 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-05 00:26:16 +00:00
Michael Bayne 10f5536a6a Not to create a key every time we do a lookup. Only create a key when we
know we're adding a new entry.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2637 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-04 22:00:59 +00:00
Ray Greenwell 35f7f0806b Make sure that the transparent color is first in the colormap so that
Java's png encoder doesn't get confused and merge black pixels into
the transparency.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2636 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-04 05:56:58 +00:00
Ray Greenwell 5f515133c3 Chat revamp, phase 2.
- FeedbackMessage has been subsumed into SystemMessage, which now has three
  modes: INFO, FEEDBACK, or ATTENTION.
- Cleaned up methods for sending those system messages.
  - on the server: sendInfo(), sendFeedback(), sendAttention()
  - on the client: displayInfo(), displayFeedback(), displayAttention().


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2635 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-04 02:50:19 +00:00
Michael Bayne 01b123b9f8 Added some utility methods for selecting a random element from an array or
iteration of known size.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2634 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-04 00:03:58 +00:00
Ray Greenwell 674523b365 Tell feedback message.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2633 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-03 23:46:10 +00:00
Ray Greenwell d3f3995cb7 Allow an optional ResultListener to be passed into requestTell that will
tell us whether or not the tell succeeded.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2632 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-03 23:36:18 +00:00
Ray Greenwell 40afe3cb94 Chat revamp, phase 1.
- Repackaged crowd/chat
- All messages are delivered to the client via ChatMessage messages,
  including tells.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2631 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-03 21:41:33 +00:00
Michael Bayne 368cd940b6 Make all of our object radial menus the same size; having them scale to
the size of the object is not at all useful.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2630 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-02 18:57:15 +00:00
Michael Bayne ba73cc55df Deal as gracefully as possible if we don't have any data for the final
field or fields of a streamed object. This allows us to add new fields to
the end of a streamable without causing all existing serialized versions
to become unreadable.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2629 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-02 17:24:18 +00:00
Michael Bayne 73a4a02aa1 A few substantial changes:
- Tiles are initialized after being constructed which makes life simpler
  for custom tiles which no longer have to have their own constructor that
  passes Tile's stuff down to it.

- Tiles are no longer LRU cached (because we blow through that cache
  instantly on all but the smallest of scenes), and are now tracked by
  weak references so that we guarantee that only one instance of a tile is
  ever in memory.

- Added code to track and report memory usage of weak cached tiles as well
  as "stray" tiles which are created through other means than asking a
  TileSet for a tile (fringe tiles being the most prolific example).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2628 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-31 00:56:38 +00:00
Michael Bayne 6d3d80c58e Keep a rectangle around with our tile coordinate footprint and use that
for overlapping calculations.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2627 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-31 00:52:15 +00:00
Michael Bayne d35e7b8180 Change the default resource directory to .narya so that we can leave the
code in that blows away .naryarsrc without having it constantly conflict
with the tools that we run.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2626 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-29 16:35:59 +00:00
Ray Greenwell 3f0d839400 Noted that I had changed the QUICK constant to false.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2625 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-29 03:08:37 +00:00
Ray Greenwell c941c96141 Color reduction algorithm. From web, with modifications to support
transparency.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2624 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-29 03:02:38 +00:00
Ray Greenwell 99ccd996df Oops, remove these too.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2623 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-29 01:59:17 +00:00
Ray Greenwell af504ef8aa Added MisoUtil.getTileHash(), made both SceneBlock and AutoFringer use
it to pick random tiles based on x/y location.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2622 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-29 01:58:06 +00:00
Ray Greenwell bace19ea71 The AutoFringer picks which fringe tile to use next by querying a
Random, instead it relies on a duplicatable hashing method.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2621 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-29 01:04:58 +00:00
Ray Greenwell 5f8309f118 publicized computeTips().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2620 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-28 18:15:26 +00:00