7c67df8e37
Made the initResourceDir method public so that we can reconfigure the resource directory in tools.
Andrzej Kapolka
2008-05-23 19:30:47 +00:00
c243740190
- Allow the override dispatcher to be specified in our factory convenience method. - Style changes.
Ray Greenwell
2008-05-23 02:35:20 +00:00
bde434eb88
Remove some spurious debugging.
Mike Thomas
2008-05-23 01:18:22 +00:00
25be8e02df
Need to include the bundle's ident in our lookup to the resource list.
Mike Thomas
2008-05-23 01:11:29 +00:00
ef15781c28
Add the ability for network resource bundles to have an index file which tells them which files they should expect to find. This turns out to be pretty useful since resources try to grab a locale-specific version first, which often fails, and then they have to grab their generic version. This allows us to bypass some of this latency when we're able to know ahead of time which resources we will have.
Mike Thomas
2008-05-22 18:34:37 +00:00
7835b083b8
Nixed some if true then true (ITTT?) stylings. Ray happiness++.
Michael Bayne
2008-05-21 11:19:51 +00:00
a012977741
Need to use floating point numbers if you want floating point math
Charlie Groves
2008-05-20 22:04:13 +00:00
14dd85bb45
Switch to fixed-delay scheduling from fixed-rate so our interval being blocked won't cause multiple calls to calibrate. Since a fixed-delay Interval can't be used with a RunQueue, move the calibrate interval onto the Timer's thread and switch to floats for the drift ratio so synchronization isn't needed around updating it as a double.
Charlie Groves
2008-05-20 21:05:46 +00:00
551475ce8d
Don't include the source for native libs in the jar
Charlie Groves
2008-05-19 20:56:42 +00:00
c0b0b9c94a
Start with no alpha so getting a paint before we're ticked doesn't blow up
Charlie Groves
2008-05-14 21:18:54 +00:00
731c6fe082
Expose isResolved so things changing the block can decide if they should add or remove objects from it
Charlie Groves
2008-05-14 06:30:35 +00:00
65ff4b70b9
Bad Nathan! Avoid "if true then true" coding. I need a snappier name for this ugly pattern. FYI, CommandButton also has buttonMode follow enabled-ness.
Ray Greenwell
2008-05-14 00:29:43 +00:00
0378cabcaa
That last bug would have been a lot easier to track down if a disabled link button didn't still look like it should be clickable. Let's turn buttonMode off when we get disabled.
Nathan Curtis
2008-05-13 23:41:32 +00:00
54ac003a1b
Encapsulate the annoyance in a method.
Ray Greenwell
2008-05-09 21:33:59 +00:00
51c01493f2
Type safety, redundant case removal, other cleanup.
Michael Bayne
2008-05-09 11:39:45 +00:00
95400b6050
verbose-stacktraces=true
Ray Greenwell
2008-05-07 21:52:26 +00:00
9783a6a320
remove these two, as they've been moved.
Nathan Curtis
2008-05-07 00:23:25 +00:00
db22e56c07
That was exciting to track down. If your supplied sort.compareFunction(...) returns a value other than -1, 0 or 1, Sort.findItem() goes into an infinite loop. Guard against that here.
Nathan Curtis
2008-05-07 00:03:47 +00:00
812ab955b4
Actually, the list creator can assign a style name to the specific instance. Internally we need to assign a style name to the List instance. Also made the default renderer always use a transparent background.
Nathan Curtis
2008-05-06 22:13:30 +00:00
f09dd1f869
Give this a style name.
Nathan Curtis
2008-05-06 22:05:39 +00:00
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.
Nathan Curtis
2008-05-06 17:35:18 +00:00
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.
Nathan Curtis
2008-05-06 00:11:49 +00:00
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.
Nathan Curtis
2008-05-01 20:05:09 +00:00
ef6a5e208c
Added setShutdownOnRemove(), which is disabled by default, but will automatically shutdown (stop the loading and unload()) when removed from the stage.
Ray Greenwell
2008-04-30 21:11:39 +00:00
ad347a4c8d
Allow the defaultTextFormat initProps to be specified more conveniently.
Ray Greenwell
2008-04-30 20:15:28 +00:00
9eb6476126
Go back to hacking a hacky scale when snapshotting the video control.
Ray Greenwell
2008-04-25 22:19:48 +00:00
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
Charlie Groves
2008-04-24 01:05:10 +00:00
5cca3c2fe2
Root needs to end with a slash
Charlie Groves
2008-04-22 22:45:00 +00:00
c44a63c3f4
Let us not go softly into unexplained resource failure
Charlie Groves
2008-04-22 20:42:54 +00:00
0b5b4f41e5
Go ahead and add a toString for NetworkResourceBundle in the style of FileResourceBundle
Charlie Groves
2008-04-22 18:34:34 +00:00
65a579c583
Log the failing URL when the security manager denies access
Charlie Groves
2008-04-22 18:09:18 +00:00
9b20077820
Allow the min alpha to be specified in addition to the max
Charlie Groves
2008-04-21 19:03:47 +00:00
0a5fff92d3
Don't require a SpriteManager for gleamed sprites that aren't used as sprites otherwise
Charlie Groves
2008-04-19 23:05:47 +00:00
b01c773d20
Generalize SceneObjectTips into SceneObjectIndicators to allow things other than tooltips to be painted for interesting objects.
Charlie Groves
2008-04-19 23:05:04 +00:00
ab5729654c
Keep the drift ratio between .01 and 10 for timer siestas and fiestas
Charlie Groves
2008-04-18 19:01:44 +00:00
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
Ray Greenwell
2008-04-17 00:47:38 +00:00
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.
Ray Greenwell
2008-04-16 21:31:24 +00:00
4102fd95ee
Q: why isn't whirled done yet? A: shit like this.
Ray Greenwell
2008-04-15 05:08:10 +00:00
e0d275a09b
Oh hey, you can set the size of video capture. Me likey!
Ray Greenwell
2008-04-15 04:32:38 +00:00
d62ed1884c
AmbidextrousList, can have its scrollbar on the left or right side. In fact, it can be swapped while the user is dragging it...
Ray Greenwell
2008-04-15 02:20:29 +00:00
e011601295
Get our dependencies either from a local build or Maven.
Michael Bayne
2008-04-10 15:47:17 +00:00
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.
Ray Greenwell
2008-04-08 19:37:53 +00:00
17829f4ae5
DisplayUtil.sortDisplayChildren now uses ArrayUtil.stableSort
Tom Conkling
2008-04-08 19:19:43 +00:00
81c5760863
Added an AL context. Provide a method in the sound manager to preload sound data.
Eric Woroshow
2008-04-07 18:57:41 +00:00
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.
Ray Greenwell
2008-03-28 00:36:31 +00:00
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.
Ray Greenwell
2008-03-26 03:14:15 +00:00
9d792434dc
Don't choke if our url is set to null, instead just clear any previous media.
Ray Greenwell
2008-03-22 02:45:41 +00:00
10b2587fba
I don't remember putting that there!
Andrzej Kapolka
2008-03-21 02:02:09 +00:00
fcb5fa200c
Removed dependency on JME for OggStreamDecoder (use JOrbis directly).
Andrzej Kapolka
2008-03-21 02:00:20 +00:00
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.
Ray Greenwell
2008-03-20 03:49:27 +00:00
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.
Ray Greenwell
2008-03-17 23:02:04 +00:00
11fd3858d1
PopUp utilities for centering or fitting a popup inside a rectangle (or the stage).
Ray Greenwell
2008-03-17 22:58:27 +00:00
3afd587398
Added centerRectInRect(), minor optimization for fitRectInRect().
Ray Greenwell
2008-03-17 22:57:43 +00:00
2d3ab6fc94
We need logging and beanutils to run cbundles and tsbundles in the tests directory.
Michael Bayne
2008-03-16 18:20:41 +00:00
a973b63aea
Just find java in the path.
Michael Bayne
2008-03-16 18:20:24 +00:00
5798172e60
Don't import flex stuff. Just don't worry about rawChildren in a flex component. Nothing is really using this method anyway.
Ray Greenwell
2008-03-14 20:57:36 +00:00
03dec963f1
Add an accessor for our chatInput field.
Michael Bayne
2008-03-14 01:04:07 +00:00
5a654ebd99
Don't compound the problem of the timer going into the past by sticking the drift at 0 for 5 seconds
Charlie Groves
2008-03-13 01:27:04 +00:00
902e338a09
GraphicsUtil. Contains dashRect() and dashTo() that Robert wrote for room editing.
Ray Greenwell
2008-03-12 22:00:57 +00:00
2f411f5c2d
Expose the xmlization of ObjectInfo for use by other RuleSets and Writers
Charlie Groves
2008-03-12 06:10:25 +00:00
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
Charlie Groves
2008-03-12 00:06:00 +00:00
d349c1f91a
Pull out our drift range to constants, and tighten it up a little bit.
Dave Hoover
2008-03-11 18:16:16 +00:00
3d4241540f
Let us clear our CalibratedTimer's memory about drifts we've seen.
Dave Hoover
2008-03-11 18:12:21 +00:00
381bfd239b
Have CalibratingTimer remember the largest drift it's seen, and let us get at that via our FrameManager.
Dave Hoover
2008-03-10 16:58:45 +00:00
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
Charlie Groves
2008-03-08 00:35:55 +00:00
55ac76bd0b
Let's have a header on that file.
Michael Bayne
2008-03-06 22:17:40 +00:00
35bd324394
Fix.
Ray Greenwell
2008-03-06 22:05:58 +00:00
017a81072f
Rollback yesterday's commit to use a calibration interval since we're actually pretty good about only having the ticker call getElapsed. It actually appears that the problems arise from the time between calibrations being influenced by timer time. Since we're explicitly trying to work around someone jacking their timer to several times normal speed, relying on it to decide when to calibrate is a bad idea as it can lead to tiny, quick calibrations with varying numbers of underlying millis. Instead, schedule calibrations with an Interval on the AWT thread since that will be run based on System.currentTimeMillis and hope the third time's the charm.
Charlie Groves
2008-03-06 21:51:04 +00:00
8a10f090da
Apparently only yohoho ever uses the runtimeadjust stuff, so we don't care about backwards compatibility and this naming scheme is better. We now have ClientImageManager and ImageManager.
Mike Thomas
2008-03-06 18:56:26 +00:00
f00ff51a7b
Split the runtime-adjustment functionality of ImageManager out. In order to preserve backwards compatibility, the complete functionality including runtime-adjustment can be found in ImageManager which now extends BaseImageManager. The bulk of functionality is now in BaseImageManager and anyone who wants an image manager without the RuntimeAdjustment bits (it uses ClientPrefs and thus isn't friendly in server-land) should use that directly.
Mike Thomas
2008-03-06 18:31:04 +00:00
9c3a7e2904
Calibrate every 5 seconds instead of every 1000 calls. When many things are being animated, the timer will get a ton of calls and the variation in the number of millis elapsed per timer time may be leading to unwanted variations in the drift value.
Charlie Groves
2008-03-06 01:24:21 +00:00
5e4a49e329
Don't link in flex. nenyalib.swc had mountains of flex in it.
Ray Greenwell
2008-03-04 04:55:35 +00:00
e80bef77e8
This shouldn't be here.
Ray Greenwell
2008-02-27 19:43:16 +00:00
5a569a2fa3
Adjust _startStamp by the amount of drift since the previous call to elapsed rather than adjusting the entire elapsed time.
Charlie Groves
2008-02-27 19:15:08 +00:00
5847ee1e99
Fix to work with Flex 3.
Ray Greenwell
2008-02-23 01:41:51 +00:00
d3e447398e
Should fix menus for flex 3.
Ray Greenwell
2008-02-23 00:27:45 +00:00
b18c112225
Updated for flex 3.
Ray Greenwell
2008-02-22 22:41:24 +00:00
c72fea4411
Perf isn't yielding nanos, so it needs to be divided by the _milliDivider to get millis
Charlie Groves
2008-02-20 22:56:00 +00:00
4c002c5682
Looks like much of the speedmodding in Puzzle Pirates comes from futzing with the speed of the system timer, but that leaves System.currentTimeMillis alone. If the precise timer is moving way faster or way slower than currentTimeMillis, tack our timing to currentTimeMillis. This will make timing precision blow, but that's what you get for cheating.
Charlie Groves
2008-02-20 02:28:57 +00:00
16e17444c7
- Removed pointless "default" sorting method. - Since quicksort is unstable anyway, might as well avoid a swap if two elements are equal. - Be generous with the comparator function. It should really return -1, 0, 1, but sometimes people return positive numbers, 0, negative numbers... - If Array.sort() is a stable sort, I think we should just change this impl to put all children into an array, sort'em, then set their indexes back into the parent.
Ray Greenwell
2008-02-19 00:50:08 +00:00
474d616204
DisplayUtil.sortDisplayChildren takes a comparison function returning -1, 0, or 1, rather than a Boolean lessEqual function
Tom Conkling
2008-02-19 00:33:16 +00:00
e8f2523515
added DisplayUtil.sortDisplayChildren, for quicksorting the contents of a DisplayObjectContainer
Tom Conkling
2008-02-19 00:14:17 +00:00
a46e4e610c
narya.swc -> naryalib.swc.
Michael Bayne
2008-02-18 19:52:48 +00:00
d1d75cb263
Call the Flash libraries {library}lib.swc to match the pattern of flexlib.swc and also to make the Maven artifact not look like a meta-artifact that brings in all Narya/Nenya/Vilya dependencies.
Michael Bayne
2008-02-18 19:12:32 +00:00
ffde63b3a5
Build a Flash library like we build Java libraries. Tidied up some other bits along the way.
Michael Bayne
2008-02-18 18:34:36 +00:00
7e804e60c5
Perform a better fitting for menu's in a bounded region, so they'll position themself for maximum visibility even if they can't fully pop up/down, left/right. (Menu's larger than the bounded area will still have some issues).
Mark Johnson
2008-02-16 01:01:14 +00:00
ba7dadba97
Angle utility functions.
Robert Zubeck
2008-02-14 20:52:38 +00:00
d543a0574d
Convenience function to make a vector out of two points.
Robert Zubeck
2008-02-14 20:49:31 +00:00
05f6e9755a
moved Vector2 from contrib.core to nenya
Tom Conkling
2008-02-14 19:18:02 +00:00
6a6faeed8a
Vector3 API changes to unify with Vector2 (which will be joining nenya soon): - multiply() -> scale() - since multiplication is ambiguous in vector contexts - added destructive versions of add/subtract/cross/etc functions - length now retrievable via a getter
Robert Zubeck
2008-02-14 18:41:20 +00:00
d322b94545
Chat control's child elements can now have a different height than their container.
Robert Zubeck
2008-02-13 22:34:28 +00:00
6913ba2d08
Removed buttons, made a UI-free utility for capturing camera images.
Ray Greenwell
2008-02-08 22:05:43 +00:00
f58b0bdcba
clarify
Ray Greenwell
2008-02-06 01:42:10 +00:00
7d400e45f2
- Moved common code to internal static methods in CommandButton. - Fixed CommandButton to turn off buttonMode when disabled. - Created CommandCheckBox. All CommandButtons that are toggle buttons will use their 'selected' state as their arg if they have no regular arg. CommandCheckBoxes are of course always toggles.
Ray Greenwell
2008-02-06 01:41:10 +00:00
a6e1fbe468
Made my CommandButton factory method the constructor. I had initially been hesitant to do this because of the parameter that can be one of two things, and the Java side of me wanted to hold on to compile-time checking, but the convenience is too damn convenient.
Ray Greenwell
2008-02-06 01:03:55 +00:00
1fb449b30b
Added a long-overdue factory method. I'm actually going to make this the constructor, but I'm just fixing the build now.
Ray Greenwell
2008-02-02 03:57:02 +00:00
7f93fbcd86
Extremely simple prototype camera snapshotting image sourcer.
Ray Greenwell
2008-02-01 21:23:12 +00:00
6451cfffae
Don't update the bundle until we're done iterating over it. Fuck if I know how this worked up until now
Charlie Groves
2008-01-31 22:02:01 +00:00