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
Charlie Groves
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.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@435 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-06 21:51:04 +00:00
Mike Thomas
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.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@434 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-06 18:56:26 +00:00
Mike Thomas
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.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@433 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-06 18:31:04 +00:00
Charlie Groves
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.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@432 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-06 01:24:21 +00:00
Ray Greenwell
5e4a49e329
Don't link in flex. nenyalib.swc had mountains of flex in it.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@431 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-04 04:55:35 +00:00
Ray Greenwell
e80bef77e8
This shouldn't be here.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@430 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-27 19:43:16 +00:00
Charlie Groves
5a569a2fa3
Adjust _startStamp by the amount of drift since the previous call to elapsed rather than adjusting the entire elapsed time.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@429 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-27 19:15:08 +00:00
Ray Greenwell
5847ee1e99
Fix to work with Flex 3.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@428 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-23 01:41:51 +00:00
Ray Greenwell
d3e447398e
Should fix menus for flex 3.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@427 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-23 00:27:45 +00:00
Ray Greenwell
b18c112225
Updated for flex 3.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@426 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-22 22:41:24 +00:00
Charlie Groves
c72fea4411
Perf isn't yielding nanos, so it needs to be divided by the _milliDivider to get millis
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@425 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-20 22:56:00 +00:00
Charlie Groves
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.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@424 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-20 02:28:57 +00:00
Ray Greenwell
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.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@423 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-19 00:50:08 +00:00
Tom Conkling
474d616204
DisplayUtil.sortDisplayChildren takes a comparison function returning -1, 0, or 1, rather than a Boolean lessEqual function
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@422 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-19 00:33:16 +00:00
Tom Conkling
e8f2523515
added DisplayUtil.sortDisplayChildren, for quicksorting the contents of a DisplayObjectContainer
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@421 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-19 00:14:17 +00:00
Michael Bayne
a46e4e610c
narya.swc -> naryalib.swc.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@420 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-18 19:52:48 +00:00
Michael Bayne
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.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@419 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-18 19:12:32 +00:00
Michael Bayne
ffde63b3a5
Build a Flash library like we build Java libraries. Tidied up some other bits
...
along the way.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@418 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-18 18:34:36 +00:00
Mark Johnson
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).
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@417 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-16 01:01:14 +00:00
Robert Zubeck
ba7dadba97
Angle utility functions.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@416 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-14 20:52:38 +00:00
Robert Zubeck
d543a0574d
Convenience function to make a vector out of two points.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@415 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-14 20:49:31 +00:00
Tom Conkling
05f6e9755a
moved Vector2 from contrib.core to nenya
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@414 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-14 19:18:02 +00:00
Robert Zubeck
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
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@413 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-14 18:41:20 +00:00
Robert Zubeck
d322b94545
Chat control's child elements can now have a different height than their container.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@412 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-13 22:34:28 +00:00
Ray Greenwell
6913ba2d08
Removed buttons, made a UI-free utility for capturing camera images.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@411 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-08 22:05:43 +00:00
Ray Greenwell
f58b0bdcba
clarify
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@410 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-06 01:42:10 +00:00
Ray Greenwell
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.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@409 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-06 01:41:10 +00:00
Ray Greenwell
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.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@408 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-06 01:03:55 +00:00
Ray Greenwell
1fb449b30b
Added a long-overdue factory method.
...
I'm actually going to make this the constructor, but I'm just fixing
the build now.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@407 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-02 03:57:02 +00:00
Ray Greenwell
7f93fbcd86
Extremely simple prototype camera snapshotting image sourcer.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@406 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-01 21:23:12 +00:00
Charlie Groves
6451cfffae
Don't update the bundle until we're done iterating over it. Fuck if I know how this worked up until now
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@405 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-31 22:02:01 +00:00
Nathan Curtis
9748e422c7
Let the rest of the world use the FlexWrapper - this is pulled from LayeredContainer.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@404 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-28 22:57:13 +00:00
Ray Greenwell
7dbffa80cf
Occam's razor.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@403 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-24 21:54:26 +00:00
Dave Hoover
cc1a550a55
Oh, and roll back the compiled mac ones, too.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@402 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-18 19:51:28 +00:00