Commit Graph

93 Commits

Author SHA1 Message Date
Dave Hoover 11f82ff097 Add hooks so that other fringers can muck around with tiles to
do art swapish stuff.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@93 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-13 21:53:10 +00:00
Michael Bayne 23f305aa81 Make the first sentence not overlong so as to play nicely with javadoc.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@92 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-05 07:00:42 +00:00
Michael Bayne 20021d7eab Fixed typo.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@91 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-05 06:59:48 +00:00
Michael Bayne 4ae22890bf Use our surprisingly handy new method.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@90 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-05 06:58:04 +00:00
Michael Bayne cd97adf00b Track bounds changes for our underlying sprite in such a way that we dirty
things properly if they do. Simply stealing our target sprite's _bounds will
not result in the necessary calls to addDirtyRegion() if they change due to
calls to setLocation() on our (now unmanaged) target sprite.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@89 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-05 06:52:54 +00:00
Michael Bayne 7850123988 Factored some duplicated code into a shared method that can be used to easily
and efficiently dirty old and new bounds when our bounds change.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@88 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-05 06:51:41 +00:00
Michael Bayne 8286ef88c4 Patch to BobbleAnimation (which we don't seem to use anywhere) from nvanderh.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@87 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-05 06:25:23 +00:00
Michael Bayne 562b1f11ab Patch from nvanderh: handle dirtying properly if our bounds change between
frames.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@86 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-05 06:21:33 +00:00
Mike Thomas e74970ac1e Also need to adjust the path to find localized resource files if we come through the getResource/getImageResource calls that pass us a resource set.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@85 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-02 01:41:28 +00:00
Andrzej Kapolka 227108e7fa Cope with the sad bastards who have only one texture unit.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@84 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-01 20:06:59 +00:00
Mike Thomas 5fda18ef31 Add two features our multi-locale yohoho is going to need:
- Ability to set a locale prefix in which to search for locale-specific images.
- Ability to clear the image cache (we want to do this when we switch locales, otherwise we end up with wrong-language images cached.)


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@83 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-01 18:49:09 +00:00
Michael Bayne 4c61406ea8 Moved Bang's handy ImageCache into our handy JME extensions library.
Note: This marks my official conversion to a 100 character line width. We've
been experimenting with it on MetaSOY for a while now and it reduces wrapping
by what feels to be a substantial amount. We also tried 120 which ended up
feeling too wide.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@82 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-26 00:11:30 +00:00
Andrzej Kapolka 8fc51080a8 OK, that wasn't so hard. Enable all of the "quick compare" flags, which
force states to be reapplied for every batch when disabled.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@81 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-17 00:16:59 +00:00
Michael Bayne 929dd438b8 The viewer is only in tests/.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@80 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-16 23:38:06 +00:00
Michael Bayne afaa0153b6 If we don't have xml-writer avoid compiling all the XML scene crap (and
unfortunately also the Miso Viewer).


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@79 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-16 23:34:01 +00:00
Michael Bayne 81cd97edc7 New libs.dir business.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@78 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-16 23:13:21 +00:00
Andrzej Kapolka cfe8c0f2df Updated to reflect changes in JME and changed hashCode to hash on the
node name instead of the identity, to ensure consistent ordering.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@77 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-16 23:11:27 +00:00
Michael Bayne a8e1855207 Use distlib.dir.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@76 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-16 21:26:58 +00:00
Mark Johnson c8d5239edc Handle the clear command in a ChatView
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@75 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-09 01:01:51 +00:00
Mike Thomas 20922a1cf1 Rather than getting the tile count from the raw image each time (as TileSet.getTileCount does for certain tilesets), keep a copy of the number of tiles we're counting.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@74 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-08 19:11:16 +00:00
Andrzej Kapolka 46616164f4 Use utility method ArrayUtil.copy.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@73 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-08 03:07:19 +00:00
Ray Greenwell 95cc9ea2ef Java 1.6 includes a javax.swing.GroupLayout, so be specific about the
things we're importing from samskivert.
(Our style nowadays is to always explicitely specify imports.)


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@72 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-07 23:56:07 +00:00
Andrzej Kapolka 09627624c6 Switch to using JME's serialization mechanism, which promises a degree
of version safety (meaning we won't necessarily have to recompile all 
the models when we add a new field) and should help avoid the frequent 
binary changes to which Java serialization is prone.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@71 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-07 03:14:35 +00:00
Michael Bayne 04a833f169 Obscure password information when we log URLs.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@70 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-06 23:57:45 +00:00
Andrzej Kapolka 434c5f86c2 Probably only need one of those.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@69 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-01 02:17:22 +00:00
Andrzej Kapolka a7c56949aa Translation for camera position option.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@68 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-01 02:10:39 +00:00
Andrzej Kapolka 261bc3a9ee Added option to show camera position.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@67 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-01 02:09:06 +00:00
Mark Johnson 61b8e6792a Added the ability to check if a sound is currently playing.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@66 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-27 18:33:24 +00:00
Michael Bayne db91a42b05 More juicy fallthrough bug finding.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@65 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-26 23:09:43 +00:00
Andrzej Kapolka e1c864ff46 Fixed NPE in model variant handling.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@64 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-24 20:59:25 +00:00
Andrzej Kapolka 3f2885496e Switched attribute name from "radpersec" to "velocity".
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@63 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-20 18:43:18 +00:00
Andrzej Kapolka 7ea2db3111 Updated to match new version of JME.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@62 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-19 18:35:35 +00:00
Mark Johnson 4175ec61da Let's allow crop mask images to be optional as well
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@61 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-19 18:29:28 +00:00
Michael Bayne a2f36abd2b These are not in the shared library directory but rather the project's
top-level library directory. Probably we need an alias for that but lib/ will
do for now.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@60 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-19 01:27:07 +00:00
Andrzej Kapolka 41d9f206d5 Moved the Max exporters here to live with the model code.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@59 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-18 00:14:16 +00:00
Mark Johnson 7bf691a518 Protect against negative bounds sizes.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@58 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-17 21:09:24 +00:00
Mark Johnson 2c9eb850da Composite masks after generating the shadows so we can mask the shadows
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@57 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-17 20:41:23 +00:00
Andrzej Kapolka 0dc6586e6a For models with locked transforms (i.e., props), don't bother trying to
keep the world bound up-to-date; it won't change, and updateWorldVectors 
has no effect.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@56 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-14 00:49:23 +00:00
Michael Bayne 95500d74f3 Use project.dir.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@55 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-13 23:59:04 +00:00
Michael Bayne b95a59c35c Updated snapshot target.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@54 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-13 22:43:08 +00:00
Michael Bayne 79901ef5e2 Added proper 'snapshot' target.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@53 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-13 22:34:05 +00:00
Michael Bayne 53e5b66308 Out with obsolete file.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@52 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-13 22:29:34 +00:00
Michael Bayne a40a420bf6 Define our library dependencies in an includable project XML file.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@51 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-13 22:25:42 +00:00
Michael Bayne 69277175c8 Build file changes to make Nenya work with the new build world order.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@50 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-13 02:13:51 +00:00
Andrzej Kapolka fd06ed1481 Added support for model variants: subconfigurations with different
textures, etc., that share the same mesh and animations.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@49 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-11 18:42:48 +00:00
Michael Bayne 3d6aa4cd15 Do the right thing with localtype.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@48 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-11 00:44:30 +00:00
Michael Bayne 4206ecd4a7 Implement the new ChatDisplay interface.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@47 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-10 21:50:26 +00:00
Andrzej Kapolka c6f1691bb7 OK, in this case the problem existed mostly between my keyboard and my
chair.  I better get that fixed.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@46 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-09 21:43:49 +00:00
Andrzej Kapolka 37e93d30c7 Rather than trying to invert the model transform, just recompute the
bounds after temporarily setting the transform to identity.  I think 
there are still issues with JME's bounding volume transformations, but 
they seem to err on the side of larger bounding volumes.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@45 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-09 18:53:41 +00:00
Michael Bayne ead4e4d89d Don't freak out if we're reinitialized. Just replace the resource manager
reference and leave the same Handler registered.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@44 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-06 21:00:18 +00:00