Commit Graph

106 Commits

Author SHA1 Message Date
Ray Greenwell cb704de5fa Pet peeve: avoid "if (true) then true else false" code.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@373 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-12 18:20:34 +00:00
Robert Zubeck accd0a0de7 Added distance function that can handle different types of spaces.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@371 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-12 03:04:33 +00:00
Tom Conkling f8b2cb19ec gee, maybe i should test my code before committing
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@370 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-12 02:00:58 +00:00
Tom Conkling 63764b85f2 unused member variable cleanup
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@369 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-12 01:58:24 +00:00
Tom Conkling dc0ae2a3e8 created DisablingButton, which extends SimpleButton and adds support for a disabledState
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@368 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-12 01:55:48 +00:00
Ray Greenwell a918c3e9e8 Adapt mx.effects.easing or Tweener functions to be used for paths.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@367 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-10 00:30:16 +00:00
Ray Greenwell fdd85f3c2b I'm not sure how a DisplayObjectContainer has a null child, but I'm seeing it.
Cope.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@366 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-05 21:17:36 +00:00
Ray Greenwell 4845965208 Document the hueShift parameter.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@365 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-04 22:31:12 +00:00
Par Winzell 9f3092e63a Let our functions escape the bondage of integers and vary freely with time.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@364 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-04 19:22:21 +00:00
Par Winzell 0ed263a6ee More silly.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@363 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-04 19:19:05 +00:00
Par Winzell 356c78e6de Oh oops, thanks Ray, this should definitely be a Number.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@362 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-04 19:06:45 +00:00
Par Winzell bc8d005179 My past as a filthy foreigner haunts me.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@361 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-04 18:58:02 +00:00
Par Winzell ce9204d858 What's a hermite spline without derivates? I suggest we add getSlope() or something like it to the interface/superclass; thoughts?
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@360 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-04 16:42:28 +00:00
Dave Hoover 8f2700dcc8 Keyword substitution.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@359 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-03 21:08:33 +00:00
Ray Greenwell 002f0d1309 So, key events are only dispatched on frames, and it seems that those happen
after timer events in the flash player.
What was happening was that a KEY_UP event was coming in so long after the
initial KEY_DOWN, that this code would think that the key was being held down
even when not.
So instead we wait until we actually see a 2nd KEY_DOWN event, at which point
we may need to dispatch that event right away, or we may need to wait a bit
if the limitRate is higher than the elapsed time between the two events.
Now also there is a Timer for each key being held down.
To top it all off, if you hold a key and then lose focus then this will
continue to fire, so it's going to need yet more complication to fix that.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@358 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-30 19:17:02 +00:00
Ray Greenwell 2aca740d15 Changed KeyRepeatBlocker into KeyRepeatLimiter, which can be used to block
key repeats, or set the repeat rate to any desired value.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@357 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-29 23:01:40 +00:00
Ray Greenwell 3b31fff153 TODO: stop hard-coding this width. This class used to live in msoy,
where this made a bit of sense, but now it doesn't.
However, I'm just going to change this here because I'm already
down a rabbit hole.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@356 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-29 02:14:11 +00:00
Ray Greenwell b9fce610da CommandLinkButton, just like CommandButton.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@355 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-29 02:08:37 +00:00
Michael Bayne b51e484605 Unwrapped.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@354 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-27 22:52:09 +00:00
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