Commit Graph

55 Commits

Author SHA1 Message Date
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
Ray Greenwell 54290011ae Properly document our event.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@202 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-19 23:12:53 +00:00
Ray Greenwell 8c01691397 Finished off FilterUtil.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@199 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-14 03:42:11 +00:00
Michael Bayne c8ee262b7f Added popLeftwards. Only really useful for menus without submenus.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@198 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-14 01:45:04 +00:00
Ray Greenwell a3b441fcaa Partial implementation of FilterUtil.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@197 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-14 00:17:18 +00:00
Ray Greenwell 97a7ebcab3 Removed import that turned out not to be necessary. I was so prepared
for this to be complicated!


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@196 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-12 23:54:04 +00:00
Ray Greenwell a8a3295f26 Conveniently, it appears that the extra events generated by key repeat
are all KEY_DOWN events.
So holding down a key in flash generates: DOWN, DOWN, DOWN, ... UP.
In Java, we get DOWN, UP, DOWN, UP ...

Made a little helper class that can be used to block the extra DOWN events.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@195 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-12 23:49:29 +00:00
Ray Greenwell 54fd9e0df4 Moved Mike's artvatar Button utility class here, make it a little more customizable.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@194 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-12 22:03:04 +00:00
Nathan Curtis ab19cb897e Do something sensible when people set the width on this control
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@193 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-11 22:11:58 +00:00
Robert Zubeck 2291510909 A Shape is lighter than a Sprite.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@192 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-10 00:27:13 +00:00
Robert Zubeck 1eef72d9da Adding a mask and changing some colors inside the ScrollBox.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@191 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-09 23:31:22 +00:00
Michael Bayne 47d8ed1d63 Allow a custom dispatcher to be provided because the default (dispatching on
the stage) only routes commands to the global controller, bypassing the
controller for the current place view.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@190 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-08 02:42:16 +00:00
Nathan Curtis e7c72867e5 show the standard hand cursor when hovering over any CommandButton
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@186 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-05 22:02:31 +00:00
Ray Greenwell 3a6d0d0972 Extend the flexlib scrolling menu.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@184 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-03 17:06:16 +00:00
Ray Greenwell e976920747 Removed. The scrolling menus are now part of flexlib.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@183 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-03 17:06:02 +00:00
Ray Greenwell 05b02ffc5a Log something when we unload media.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@181 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-23 21:56:26 +00:00
Ray Greenwell fd665f3f83 - Changed to display the text "fps: ", followed by the frame rate to only
2 decimal places.
- Size our width accurately.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@179 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-22 19:17:53 +00:00
Ray Greenwell 52a53ab1e9 Cope with non-Loader media objects that have set up their own masks.
God, what a disaster. I'd say the right thing to do would be to add the
mask directly to the media container, but we rely in a few places on being
able to easily decorate the media container by winging other objects off
the edges, and we don't want to just create one mask that's big enough for
the user media as well as our decorations (because then malicious user
media could alter what the user perceives as our decorations).

Perhaps the right thing to do is make MsoySprite not be a subclass
of MediaContainer, but contain one. That's a refactor I won't be
rabbit-holing right now, thankyou.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@176 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-21 01:04:49 +00:00
Ray Greenwell 68be6fbe7d Oooh. I had to do the trick of filling in the bounds with transparent
pixels so that I'd receive mouse clicks. While contemplating how bitchy
to be in my check-in comment, I wondered why I hadn't needed this when
the video was hosted inside a MediaContainer. It occurred to me that perhaps
the mask was helping, and sure enough: a sprite's mask helps define the
bounds of the sprite for mouse event purposes.

That's really good to know. I'll have to experiment further.

So: set up a mask on the VideoDisplayer, for no other reason than to
be informed of mouse events in all cases.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@175 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-20 21:21:24 +00:00
Ray Greenwell 920a9df3ac Allow a function to be specified here, too.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@174 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-20 03:47:11 +00:00
Ray Greenwell 0b8e4cf22a - Moved CommandMenu's callback handling to CommandEvent.
- Allow CommandButtons to be set up with callback too. That's much
  easier than adding a mouse listener, bla bla.
- Cleaned up CommandMenu's grabbing of menu properties.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@172 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-16 21:57:44 +00:00
Ray Greenwell 4fb21a01a9 Comment fixup.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@171 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-15 22:30:47 +00:00
Ray Greenwell f53a619edd Siner! The heart of the butterfly...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@170 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-15 22:26:49 +00:00
Ray Greenwell f475b23fb4 Clean up my comment, this is in a public API (and my comment wasn't helpful).
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@166 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-13 01:18:04 +00:00
Ray Greenwell af009cae73 A container that holds a slider (that you've set up) and a label showing
the slider value.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@165 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-13 01:13:56 +00:00
Ray Greenwell 1013a04c5c Don't rely on parentChanged().
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@164 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-12 21:52:28 +00:00
Ray Greenwell 83f2851ed1 Base class for animations that all get updated simultaneously each frame.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@163 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-06 00:56:17 +00:00
Ray Greenwell 1be723cbd5 This is general purposeish and should be here.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@162 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-02 00:39:00 +00:00
Ray Greenwell 8e791eb994 Flash components we've made, display-related utils.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@161 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-28 22:50:05 +00:00
Michael Bayne b6f5317ad2 More header patrol.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@158 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-24 00:38:17 +00:00
Ray Greenwell 26fe6018ab Momma said delete that cruft.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@147 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-03 01:16:56 +00:00
Ray Greenwell 8a063533cf We use the wee arrows for scrolling, so turn off the scrollbar.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@146 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-03 01:14:53 +00:00
Ray Greenwell a2da7a8629 Rewrote the comment in English.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@144 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-02 19:53:47 +00:00