Commit Graph

87 Commits

Author SHA1 Message Date
Ray Greenwell db23c89ec0 Don't use parentChanged() to track whether we're onscreen or not,
it's unreliable.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@352 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-21 19:47:32 +00:00
Ray Greenwell f922f965f1 Added utility methods: findInHierarchy and dumpHierarchy.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@349 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-14 20:11:10 +00:00
Ray Greenwell d5315690a6 Log -> com.threerings.util.Log
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@345 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-13 09:30:50 +00:00
Nathan Curtis e5406c5786 Thats what I get for hoping around my source tree with no regard for file location. I had no idea
this was in Nenya.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@334 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-09 03:35:15 +00:00
Par Winzell 400feab8f0 It's a bit counterintuitive that nothing in nenya/build.xml actually looks at all the ActionScript files... I keep forgetting.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@328 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-01 15:27:05 +00:00
Par Winzell 45abd9a903 If it were done, when 'tis done, then 'twer well, it were done properly.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@327 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-01 14:50:22 +00:00
Par Winzell c9ee5f1c21 Add a Hermite interpolator for the Path code. It would be sort of nice to bring Animations and Paths under a common umbrella, by the way.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@326 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-01 14:27:16 +00:00
Par Winzell 9d8d509fc7 Let the world know what's playing.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@323 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-31 22:23:15 +00:00
Ray Greenwell bce057c307 Moved chat controls here.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@320 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-30 19:07:23 +00:00
Par Winzell e89f1dbe3b Added a helpful Animation for smooth alpha transitions.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@317 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-29 16:09:39 +00:00
Par Winzell 7adc0b51f5 Let our clarification not be a blatant lie.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@316 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-29 16:02:34 +00:00
Par Winzell 17d64726a4 Clarify nature of argument.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@315 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-29 15:08:21 +00:00
Par Winzell 3f54473d60 Accept a text format to use, so the button can match the UI it appears in.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@307 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-21 21:35:25 +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
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
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
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
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
Ray Greenwell 59c6998c30 Allow subclasses to choose not to call handleFrame() when
ADDED_TO_STAGE is received.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@253 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-28 01:17:37 +00:00
Ray Greenwell 44d35eb9d3 Moved our custom hit-testing here from MsoySprite.
I was hoping to have our nice transparent-pixels-don't-count hitting
for every media container, including any game icon decoration over
an avatar's head, but after moving this I remembered that it may
be pointless, as it *never matters*- flash simply doesn't use this
method to test mouse-overness. So it may be moot, unless we do mouse-over
polling like we do in the RoomView, which is too expensive to do everywhere..


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@252 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-18 20:40:24 +00:00
Ray Greenwell 95f14a3c03 - Planted the TextField constants here. You know: thee ones that Adobe
thought it would be fun for everyone to guess.
- Added a static method to track TextFields and ensure that only
  one of those tracked ever has a selection.
- On linux, automatically put selected text (in one of these tracked
  TextFields) into the clipboard. Untested: it at least doesn't work with
  the standalone player.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@251 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-16 22:48:19 +00:00
Ray Greenwell c49e3102e9 Default to unselectable text.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@250 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-16 22:45:46 +00:00
Ray Greenwell 345895c32c Comment fixup.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@240 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-10 23:47:29 +00:00
Ray Greenwell ab892bcd9d Handles some boilerplate functionality.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@239 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-10 23:46:34 +00:00
Ray Greenwell d43eabc156 We should be removing ourselves from our parent when we're finished.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@225 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-04 00:41:32 +00:00
Michael Bayne ab6252cee7 Widened. Added getMirage(String).
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@222 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-03 21:13:32 +00:00
Ray Greenwell a855fa8340 Comment fixup.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@220 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-02 00:13:29 +00:00
Ray Greenwell 330a99f337 Added isContentInitialized(), which should be used to help differentiate
between an MsoySprite that does not have any WhirledControl subclass in it
and those that do, but are just not yet fully loaded.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@219 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-02 00:10:00 +00:00
Ray Greenwell 86298ca832 I've decided I like setCallback() better than setFunction().
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@217 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-01 16:32:27 +00:00
Ray Greenwell 353d7213d0 Bugfix for animations that complete instantly.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@216 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-27 23:06:32 +00:00
Ray Greenwell 1d04c51070 Use TextFieldUtil.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@214 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-27 01:28:28 +00:00
Ray Greenwell f50613a913 Utility methods to attempt to make initializing a TextField easier.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@213 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-27 01:27:54 +00:00
Ray Greenwell fb1eb6026b Call updateAnimation() immediately on any starting animation.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@212 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-27 00:51:50 +00:00
Ray Greenwell 5f83a3bbcf Revamping animations to be based off of ENTER_FRAME rather than
using a rapidly-expiring Timer. Cleaned up some other bits.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@211 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-26 23:52:25 +00:00
Robert Zubeck 79c388a906 Basic 3D vector library.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@210 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-25 23:13:16 +00:00
Ray Greenwell c48aa541e8 Added hook for subclasses to initialize things prior to loading a new
piece of media.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@209 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-24 23:25:03 +00:00
Ray Greenwell 74d0b7286b More text animations, these are capable of animating each character.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@208 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-24 22:56:26 +00:00
Ray Greenwell 03e3b1b91c Some fixups. I think I'm going to want to refactor this so
that there are util methods for creating nice textfields, and then
generic animation classes for floating anything. This can then become
a convenience class that marries the two.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@207 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-24 22:55:29 +00:00
Ray Greenwell 476334e5ee It's ok to BE null, it just can't be set to null.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@206 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-24 21:28:49 +00:00
Ray Greenwell 97ff4caa41 Working towards some easy-to-use score animation type things.
Actionscript's lack of method overloading sucks. I can't have more
than one constructor, and factory methods will have to have different names.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@205 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-24 21:22:54 +00:00
Nathan Curtis b77c72220e Rather than break out a general purpose matrix algebra class that may not be needed anywhere else,
just compress those huge unneccessary functions into a couple of sensible loops for this 
specific case.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@204 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-23 22:04:03 +00:00
Nathan Curtis f6060d95af bring the functionality from UD's HueFilter into FilterUtil. I need to test this with UD to make
sure it works, and then these matrix functions should probably be put into a separate lib class 
(perhaps a new narya com.threerings.util.Matrix?)


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@203 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-23 18:44:02 +00:00