Commit Graph

635 Commits

Author SHA1 Message Date
Nathan Curtis f09dd1f869 Give this a style name.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@485 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-05-06 22:05:39 +00:00
Nathan Curtis 2ba42867e4 expose the AmbidextrousList scrollBarOnLeft property
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@484 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-05-06 18:10:14 +00:00
Nathan Curtis 3dc2e34e7e I knew there was a reason I backed that by a HashMap intead of a Dictionary. The class that wants
to update and remove entries from the list may very well not have a reference to the same object
that is stored in the PlayerList (base case is Names in a DSet getting updated/added/removed).  By
using a HashMap, we just need to ensure the hashCode() is the same, which is especially handy in 
the display name update case where the MemberName.hashCode() is the memberId.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@483 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-05-06 17:35:18 +00:00
Nathan Curtis 7c7b4fdd10 Add clear() functionality
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@482 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-05-06 17:03:45 +00:00
Nathan Curtis ba06889b90 I had fallen into a sketchy pattern in GamePlayerList and my hashCode() implementation, and this
works fine (better, really) with a Dictionary and pure object equality, so lets just do that.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@481 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-05-06 00:11:49 +00:00
Nathan Curtis 4fa0e70ede I'm still fiddling with several subclasses, but I believe this is mostly nailed down, and it'll
simplify my testing to check it in, so let's do just that.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@480 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-05-01 20:05:09 +00:00
Ray Greenwell ef6a5e208c Added setShutdownOnRemove(), which is disabled by default, but will
automatically shutdown (stop the loading and unload()) when removed from the stage.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@479 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-04-30 21:11:39 +00:00
Ray Greenwell ad347a4c8d Allow the defaultTextFormat initProps to be specified more conveniently.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@478 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-04-30 20:15:28 +00:00
Ray Greenwell 9eb6476126 Go back to hacking a hacky scale when snapshotting the video control.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@477 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-04-25 22:19:48 +00:00
Charlie Groves 6029530e73 Wait till willStart to create the gleaming functions so subclasses can fill in their desired alpha ranges and so on and the huge constructors aren't needed
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@476 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-04-24 01:05:10 +00:00
Charlie Groves 5cca3c2fe2 Root needs to end with a slash
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@475 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-04-22 22:45:00 +00:00
Charlie Groves c44a63c3f4 Let us not go softly into unexplained resource failure
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@474 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-04-22 20:42:54 +00:00
Charlie Groves 0b5b4f41e5 Go ahead and add a toString for NetworkResourceBundle in the style of FileResourceBundle
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@473 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-04-22 18:34:34 +00:00
Charlie Groves 65a579c583 Log the failing URL when the security manager denies access
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@472 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-04-22 18:09:18 +00:00
Charlie Groves 9b20077820 Allow the min alpha to be specified in addition to the max
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@471 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-04-21 19:03:47 +00:00
Charlie Groves 0a5fff92d3 Don't require a SpriteManager for gleamed sprites that aren't used as sprites otherwise
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@470 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-04-19 23:05:47 +00:00
Charlie Groves b01c773d20 Generalize SceneObjectTips into SceneObjectIndicators to allow things other
than tooltips to be painted for interesting objects.



git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@469 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-04-19 23:05:04 +00:00
Charlie Groves ab5729654c Keep the drift ratio between .01 and 10 for timer siestas and fiestas
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@468 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-04-18 19:01:44 +00:00
Ray Greenwell 05cd1b4048 Well, I'm not sure there's anything I can do to work around this.
I'm recreating the video and the bitmap when I change camera dimensions.
But it seems that once a video is snapshotted into a bitmap,
the camera somehow remembers the resolution, and future snapshots of
a new video object attached to that camera always end up at the same size.
It doesn't make any sense and I can't even work around it because
the first snapshot could have happened outside of this code.
I did:
- show some text behind the video, so that selecting a non-working camera
gives a little feedback.
- cleaned up NPE that happened if clearSnapshot() was called when it was
already cleared.
- Detach the camera from the old video before setting up a new one


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@467 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-04-17 00:47:38 +00:00
Ray Greenwell bc469abcdf What can I say? I try this again today and now the
snapshotting works and my scale hack throws it out of wack.
Uhhh. I know I wasn't booching it and running out-of-synch code
together, because everything's in this class and I had loads
of trace logging in here when I was working with it on monday.
I wouldn't believe myself if I hadn't been there.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@466 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-04-16 21:31:24 +00:00
Ray Greenwell 4102fd95ee Q: why isn't whirled done yet?
A: shit like this.

30 minutes of tweaking and trying things to get it to ACTUALLY snapshot at
specified size. The damn video control always says that videoWidth and
videoHeight are 0, but if you size the Camera correctly and attach the video
it works. Turns out that the video control, when snapshotted into a
bitmapdata, always thinks it's 160x120, but if we scale it up we can see
the pixel data that's really there. What the fuck?!
Oh well, it works now, but why does adobe make these things so difficult?
The only reason I got it working was trial and error and cargo-culting off
the example in Camera's API docs. Jeez.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@465 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-04-15 05:08:10 +00:00
Ray Greenwell e0d275a09b Oh hey, you can set the size of video capture. Me likey!
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@464 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-04-15 04:32:38 +00:00
Ray Greenwell d62ed1884c AmbidextrousList, can have its scrollbar on the left or right side.
In fact, it can be swapped while the user is dragging it...


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@463 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-04-15 02:20:29 +00:00
Michael Bayne e011601295 Get our dependencies either from a local build or Maven.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@462 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-04-10 15:47:17 +00:00
Ray Greenwell c925794d22 Don't remove and re-add children, that's much more expensive
and will trigger events. Instead, sort the children and then
set their indicies.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@461 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-04-08 19:37:53 +00:00
Tom Conkling 17829f4ae5 DisplayUtil.sortDisplayChildren now uses ArrayUtil.stableSort
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@460 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-04-08 19:19:43 +00:00
Eric Woroshow 81c5760863 Added an AL context. Provide a method in the sound manager to preload sound data.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@459 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-04-07 18:57:41 +00:00
Ray Greenwell 548de4d5c2 An UNLOAD event is not dispatched on any LoaderInfo for which INIT
has not already been dispatched. This is a pain in my ass.
Make MediaContainer dispatch UNLOAD when it unloads its business,
regardless of whether things have been initialized.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@458 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-28 00:36:31 +00:00
Ray Greenwell 8feb5df868 Let's track SecurityError events too. Normally if things are set up well
this won't happen, but it did today for folks with a cached crossdomain.xml.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@457 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-26 03:14:15 +00:00
Ray Greenwell 9d792434dc Don't choke if our url is set to null, instead just clear any previous media.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@456 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-22 02:45:41 +00:00
Andrzej Kapolka 10b2587fba I don't remember putting that there!
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@455 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-21 02:02:09 +00:00
Andrzej Kapolka fcb5fa200c Removed dependency on JME for OggStreamDecoder (use JOrbis
directly).


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@454 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-21 02:00:20 +00:00
Ray Greenwell aaaebc4a2f Flex does not support keybinding in any standard way.
That's because: flex is a pile of shit.
Created a basic KeyManager. This will probably change a lot, but it's
serving its purpose now.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@453 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-20 03:49:27 +00:00
Ray Greenwell d28031c91e Removed popUpIn().
Added popUpAtMouse(), which is like our show() (which shows at the mouse)
only also allows specifying popLeftwards and popUpwards.
Also, in our show(), just fit the damn menu onto the stage. Always.
Why have a special method for doing what should be the common case?
I suppose the old code was trying to fit the menu into the roomview bounds,
which might've been nice if it actually worked.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@452 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-17 23:02:04 +00:00
Ray Greenwell 11fd3858d1 PopUp utilities for centering or fitting a popup inside a rectangle
(or the stage).


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@451 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-17 22:58:27 +00:00
Ray Greenwell 3afd587398 Added centerRectInRect(), minor optimization for fitRectInRect().
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@450 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-17 22:57:43 +00:00
Michael Bayne 2d3ab6fc94 We need logging and beanutils to run cbundles and tsbundles in the tests
directory.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@449 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-16 18:20:41 +00:00
Michael Bayne a973b63aea Just find java in the path.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@448 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-16 18:20:24 +00:00
Ray Greenwell 5798172e60 Don't import flex stuff.
Just don't worry about rawChildren in a flex component.
Nothing is really using this method anyway.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@447 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-14 20:57:36 +00:00
Michael Bayne 03dec963f1 Add an accessor for our chatInput field.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@446 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-14 01:04:07 +00:00
Charlie Groves 5a654ebd99 Don't compound the problem of the timer going into the past by sticking the drift at 0 for 5 seconds
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@445 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-13 01:27:04 +00:00
Ray Greenwell 902e338a09 GraphicsUtil.
Contains dashRect() and dashTo() that Robert wrote for room editing.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@444 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-12 22:00:57 +00:00
Charlie Groves 2f411f5c2d Expose the xmlization of ObjectInfo for use by other RuleSets and Writers
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@443 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-12 06:10:25 +00:00
Charlie Groves f3c2097498 Cancel the calibration interval and start a new one in reset to prevent calibrate calls coming immediately after the reset from producing a crazy drift
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@442 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-12 00:06:00 +00:00
Dave Hoover d349c1f91a Pull out our drift range to constants, and tighten it up a little bit.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@441 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-11 18:16:16 +00:00
Dave Hoover 3d4241540f Let us clear our CalibratedTimer's memory about drifts we've seen.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@440 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-11 18:12:21 +00:00
Dave Hoover 381bfd239b Have CalibratingTimer remember the largest drift it's seen, and let us get at that
via our FrameManager.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@439 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-10 16:58:45 +00:00
Charlie Groves 3466303b91 Log what's actually going on in the calibration in one final attempt to figure out what's going wrong here before ripping it out and going back to business as usual
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@438 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-08 00:35:55 +00:00
Michael Bayne 55ac76bd0b Let's have a header on that file.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@437 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-06 22:17:40 +00:00
Ray Greenwell 35bd324394 Fix.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@436 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-06 22:05:58 +00:00