Commit Graph

37 Commits

Author SHA1 Message Date
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
Ray Greenwell 7ff794343c Moved these here from inside metasoy.
Grid changed into GridUtil.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@143 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-02 19:44:04 +00:00
Ray Greenwell d49e50db89 Cleaned up some issues:
- While Menu.popUpMenu() takes a DisplayObjectContainer as a parent,
  it will hork unless the parent is really a UIComponent.
  Omit that parameter from our convenience function and allow the parent
  to be set to the application.
- Changed show() with no args to show at the mouse location.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@131 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-01-31 21:45:57 +00:00
Ray Greenwell 5ed0513644 - Added Scrollable menus, written by Doug McCune, aka Some Guy. This
is the first time I've felt a real benefit to using flex. It's standard!
  People are fixing the deficiencies!
- Have CommandMenu extend that, and Bob's your uncle!


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@128 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-01-31 03:18:22 +00:00
Ray Greenwell 06f7f75fde Moved CommandEvent back, update imports.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@127 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-01-31 03:03:17 +00:00
Ray Greenwell 76074998f4 Moved here.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@126 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-01-31 02:59:09 +00:00