Michael Bayne
07830b303f
Nixed a bunch of redundant casts.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@304 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-17 21:52:40 +00:00
Charlie Groves
e0a22877e2
This seems like its been pretty happy on ice, so take off the training wheels
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@303 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-12 20:11:00 +00:00
Mike Thomas
8bc738c6d8
If a scene block resolution somehow gets abandoned, remove it from the list of blocks we're awaiting. I'd like to believe this is related to the mysterious YPP missing scene block bugs we've seen forever, but since I can't reproduce it - no idea if it actually is.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@302 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-10 18:15:15 +00:00
Michael Bayne
59186e034f
Added onStart function; cleaned up start().
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@301 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-09 07:30:35 +00:00
Michael Bayne
6f67eac059
Brought my path stuff into general purpose land and improved it in the process.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@300 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-09 07:17:01 +00:00
Charlie Groves
094e6b1730
Dirty SceneObjectTips as they're laid out. This was relying on tips being added and laid out before the initial paint.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@299 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-08 23:00:20 +00:00
Charlie Groves
b4417cc330
Add a switch to disable dirtying the whole screen on an invalid component on the Mac again. I can't reproduce the problem now, and I might have just been seeing some sea monster badness before. Leave the current behavior on by default though.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@298 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-03 22:10:28 +00:00
Charlie Groves
1423c03890
Incidental genericity
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@297 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-03 21:26:25 +00:00
Charlie Groves
ddb3c92fa1
Let's not make things that actually compose stuff hop about the screen by using their VolatileMirage offset in the place of their origin offset.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@296 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-09-26 22:18:27 +00:00
Charlie Groves
c45878681f
If we're creating a CompositedMultiFrameImage with only a single source image and it's a TileSetFrameImage, just use the Mirages in that TileSet rather than creating a whole new set of BufferedImages to composite them into. This halves the image memory used by anything that's just colorizing and transforming its images and doesn't really need composition.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@295 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-09-26 21:49:11 +00:00
Charlie Groves
8d5fc6c6ea
Rolling back r292 with great sadness in my heart. The non-repainting doesn't happen very often, but sure enough it does and sure enough it's awful.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@294 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-09-03 22:45:29 +00:00
Charlie Groves
68bdd9402c
Crank the CharacterManager cache up too so we're not compositing our sea monsters over and over again.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@293 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-09-01 00:45:40 +00:00
Charlie Groves
1e55b4ed7e
Haven't been able to see any non-repainting without this on my mac, and this was causing the whole screen to be dirtied once a second when the countdown timer in a seamonster battle ticked.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@292 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-08-31 17:18:35 +00:00
Charlie Groves
65b8cdbc3a
Factor in the percentage of the databuffer a BufferedMirage is using to
...
estimate its memory if its BufferedImage is a subimage of another
BufferedImage.
Include the amount of memory used by colorizations in ImageManager's cache
usage calculations.
Crank ImageManager's cache size up to 32 megs since a) it's actually seeing the
memory used by colorizations and b) the new seamonsters are pretty sizable.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@291 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-08-30 22:50:24 +00:00
Mike Thomas
37b5e58961
If a MultiTileSprite overlaps with another item, take their render priorities into account.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@290 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-08-30 18:50:16 +00:00
Michael Bayne
a1332d45ff
Use junit4.jar.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@289 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-08-28 20:26:11 +00:00
Charlie Groves
11322269c2
Redraw seems to work correctly on the Mac now, so only invalidate the shifted region like on other platforms.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@288 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-08-28 17:07:39 +00:00
Mike Thomas
95c36c22a2
Explanatory comment.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@287 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-08-22 22:26:36 +00:00
Mike Thomas
b560a045cd
Add ability for a sprite to specify that it resides in a rectangular region of tiles rather than assuming all sprites only occupy one tile.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@286 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-08-22 22:24:54 +00:00
Mike Thomas
9d73fe0587
This needs to respect sprite offset.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@285 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-08-22 22:22:59 +00:00
Charlie Groves
e003d97535
Break the code for completing a fade into a method so subclasses can override it and do what they will when it finishes.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@284 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-08-10 22:00:50 +00:00
Michael Bayne
069fe85c70
A whole lot of widening, refactoring, thinking, rethinking and fiddling around
...
for what ultimately boils down adding this method to BundledComponentRepository:
@Override // from IMImageProvider
public Mirage getTileImage (String path, Rectangle bounds, Colorization[] zations)
{
// we don't need our images prepared for screen rendering
BufferedImage src = _imgr.getImage(getImageKey(path), zations);
if (bounds != null) {
src = src.getSubimage(bounds.x, bounds.y, bounds.width, bounds.height);
}
return new BufferedMirage(src);
}
So much fun to revisit code I wrote six years ago.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@283 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-08-03 22:04:04 +00:00
Michael Bayne
bbd5dd284e
Added version of getTile() that takes a rectangle into which to write the results.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@282 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-08-03 21:10:48 +00:00
Charlie Groves
205d57a7fe
Allow TileSetRuleSets to specify a custom tileset tag name, and use that to allow UniformTileSets as <uniformTileset> in addition to the existing SwissArmyTileSets as <tileset> in the bundle tasks.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@281 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-08-02 23:18:16 +00:00
Mike Thomas
1f435d582d
If our build process fails to properly trim a tile set, it's kinda a big deal, so throw a BuildException so ant hears about it and stops.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@280 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-07-30 20:59:32 +00:00
Jonathan Le Plastrier
9ba5a61ab0
Have distclean just call what it needs in common-clean
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@279 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-07-28 04:15:13 +00:00
Michael Bayne
72d93f6bd9
One more for the Gipper.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@278 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-07-25 21:47:15 +00:00
Michael Bayne
4ea0d15236
Infoization.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@277 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-07-25 21:46:42 +00:00
Dave Hoover
81dcd90c1a
Simplify and combine fading out for both moving and stationary sprites.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@276 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-07-18 18:47:37 +00:00
Ray Greenwell
0670fe26e7
Checking the value of a Loader's contentLoaderInfo.childAllowsParent
...
itself issues a security warning. This is the value to check to SEE if
a security exception would be thrown. So things worked, but now that I'm
testing security locally I cannot tolerate 10,000 warnings about security
filling my trace log, obliterating any other debug logging.
Hack it: just remember if we're loading an image and check that value later.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@275 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-07-17 00:45:19 +00:00
Dave Hoover
b5b3a5316e
Christmas comes but once a year, but svn keyword substitution day comes
...
whenever the urge strikes!
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@274 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-07-14 00:27:00 +00:00
Dave Hoover
f57c408d7f
If something goes wrong adding our tileset to the bundle, throw an exception so that
...
things fail & attract attentino, rather than trying to work around it and printing
a stack trace that will likely go unnoticed amidst a slew of other build messages.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@273 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-07-13 18:07:29 +00:00
Charlie Groves
7fdd8fee17
Add the ability to fade the sprite out without a path and fix fading out with a path so that it's actually fading out instead of fading in
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@272 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-07-11 23:49:04 +00:00
Charlie Groves
7efd53a76c
Use _minAlpha to figure out when to stop moving alpha down, don't readd the sprite in tick since shutdown is taking care of it also
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@271 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-07-09 22:49:48 +00:00
Ray Greenwell
603d6bb0d2
It's a security error to specify a non-null SecurityDomain to Loader
...
when in a local sandbox. Annoying.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@270 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-07-05 02:39:10 +00:00
Charlie Groves
640b6fe1f6
Reset the up and down timers in reset and allow the maximum level of gleam and update frequency to be specified
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@269 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-06-29 22:41:52 +00:00
Dave Hoover
717dc79c02
Tabs -> spaces
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@268 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-06-26 00:07:47 +00:00
Ray Greenwell
0250be64ac
Don't turn on variableRowHeight for every menu, but do have submenus
...
inherit their parent's setting.
It turns out, it wasn't just a problem with MediaWrapper. Using any image-based
icon seems to cause flex internal boo-boos. Too weird.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@267 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-06-16 00:33:48 +00:00
Ray Greenwell
7a6d334a99
Allow an already-instantiated IFlexDisplayObject to be used as the icon
...
for a menu item. JFC, this is pretty straightforward but was a fiasco
to get right because I was using a MediaWrapper as the icon, and something
wasn't playing nicely (not yet debugged), but the error looked like
it was with the Menu superclass.
Also set all CommandMenus to have variableRowHeight.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@266 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-06-16 00:09:23 +00:00
Ray Greenwell
25d48696ee
Update masking behavior: configure the mask to be the lesser of
...
the maximum size and the actual SWF frame size in each dimensions.
This may break some avatars that were smaller than full size but
drawing a little outside their bounds to the right or bottom. Probably
nobody was actually depending on this bug..
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@265 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-06-14 22:23:43 +00:00
Michael Bayne
300d14c438
Some layout fixes. These buttons are still really ugly, alas.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@264 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-06-14 21:45:42 +00:00
Dave Hoover
767a82128e
Actually do keyword substitution on those freshly headered files.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@263 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-06-14 18:20:16 +00:00
Michael Bayne
7a65a62927
Widening.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@262 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-06-14 17:42:52 +00:00
Michael Bayne
46248c0354
All of our code should have headers, but our redistributable code should
...
definitely have headers.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@261 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-06-14 17:40:30 +00:00
Ray Greenwell
247bf757eb
Scratch that, reverse it.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@260 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-06-14 00:50:37 +00:00
Ray Greenwell
6b8ab48d17
Pass the url to configureMask().
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@259 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-06-14 00:49:12 +00:00
Robert Zubeck
dcc950e9d5
Added missing boilerplate.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@258 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-06-12 01:40:24 +00:00
Robert Zubeck
13f361d8aa
Clamping is a useful abstraction, and easy to slip up on.
...
Maybe more math idioms will end up in here as well?
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@257 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-06-12 01:39:29 +00:00
Dave Hoover
7ca448a91e
Let us optionally not auto-reposition TransformedMirages; it was being smart
...
for things like scales and rotates so 0,0 still meant the same place, but that
meant I couldn't just reposition something, since it would promptly undo the
transform I passed in.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@256 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-06-01 18:08:34 +00:00
Jonathan Le Plastrier
9412b19145
Fix the docs link and add a link to narya.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@255 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-30 22:27:02 +00:00