Commit Graph

215 Commits

Author SHA1 Message Date
Ray Greenwell 8ee553c3e3 New video stuffs.
- VideoPlayer is the interface to the video backend.
- Adapted my old VideoDisplayer into a FlvVideoPlayer
and the SimpleVideoDisplay frontend.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@680 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-01 03:10:21 +00:00
Ray Greenwell 7ac5d036de Dispatch a COMPLETE event when we finish loading media.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@679 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-10-31 00:10:46 +00:00
Ray Greenwell df41e4e849 Added createText() for conveniently creating a multiline text widget.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@677 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-10-27 23:42:03 +00:00
Jamie Doornbos c420e540d6 New method to allow a command button to be activated, emulating a user click
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@676 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-10-27 22:13:45 +00:00
Michael Bayne fbe0b18bb3 Bye bye log spam, hello once again readable client logs.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@674 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-10-24 19:01:36 +00:00
Ray Greenwell 7fdedc30a3 ooo-style formatting and importing.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@670 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-10-17 22:07:50 +00:00
Ray Greenwell 1df26e8813 Added LoaderUtil, which has unload.
Hmm, I'm not able to use unloadAndStop() yet.
Perhaps I need to grab an even newer version of the flex SDK,
so it's commented out for now.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@669 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-10-16 00:49:34 +00:00
Ray Greenwell a19690f205 Added countLayoutChildren(), which counts the children of a container that
have includeInLayout = true.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@668 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-10-15 20:45:27 +00:00
Ray Greenwell fcf091b5c1 Allow the up and down arrow keys to traverse the command history, like we do in Java.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@667 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-10-14 21:25:37 +00:00
Ray Greenwell c0a22fdabb Line wrappery.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@666 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-10-14 21:24:50 +00:00
Michael Bayne 8590d5650b Added createTipLabel().
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@661 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-09-25 00:54:54 +00:00
Ray Greenwell ac836c1cea New chat prompt from Bill.
Yeah, not very i18n.
We're just trying this out.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@637 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-20 22:24:42 +00:00
Ray Greenwell b7e3f617f0 Fixed NPE found by Sigalig Whirligig.
I find this super annoying about flash:
    for (propName in objRef) { // this works fine if objRef is null
    if (propName in objRef) { // this NPEs if objRef is null


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@634 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-19 02:41:30 +00:00
Ray Greenwell cbe1f76632 It's the return of the chat prompter!
What's this white box on the control bar?
Now it says "type to chat" right in there when empty and unfocused.
My life is empty and unfocused, checking this in at 11:15 on friday night.
Things like this were tried in the past, and were always screwing up
and getting in the way of chatting or using the room. This is a skin,
not actual text, so it's more fuckup-proof.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@633 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-16 06:14:41 +00:00
Ray Greenwell 1ac283e675 Provide access to the send button.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@621 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-12 05:15:45 +00:00
Ray Greenwell d657cf9f3b Convenience.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@619 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-08 23:30:43 +00:00
Ray Greenwell ce7a1c9cb8 Added getCellCount() and getCellAt(), inspired by SimpleGrid.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@618 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-08 23:11:40 +00:00
Ray Greenwell 5de8a3acf7 Added this, since we do it lots of places and it often looks like an error.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@617 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-08 23:11:16 +00:00
Ray Greenwell 51cf6b65be Make this optional, and not the default.
Turns out a bunch of shit makes the wrapper size a little bigger,
and some things seem to freak out when the wrapper has a size,
even when includeInLayout=false.
Flex you very much.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@616 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-08 03:46:11 +00:00
Ray Greenwell b08f508349 Oh, fuck that. Let's just set the explicit width/height, because if
something's never measured then it never gets these set.
This might break something.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@615 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-08 03:32:57 +00:00
Ray Greenwell 2e9282a3e5 Make our measured size the size of the thing we're wrapping.
Half the places we use FlexWrapper we do something like this anyway.
Note that you can still override this by setting the width and height
(which sets the explicitWidth, explicitHeight).


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@614 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-08 02:17:33 +00:00
Robin Barooah 0c7a95a8d0 Add a background jpeg encoder which uses the JPGEncoder to spread out encoding over a series of frames.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@586 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-07-30 01:46:22 +00:00
Robin Barooah 84be5a1da6 Hide the little helper class that came over with the JPGEncoder inside the JPGEncoder file.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@585 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-07-30 00:13:31 +00:00
Robin Barooah 5dd60e0d45 Refactor the JPG encoder to process in time slices rather than all at once.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@584 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-07-29 23:57:13 +00:00
Robin Barooah 13f7a78932 Fork the as3corelib JPEG Encoder into nenya.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@583 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-07-29 23:56:11 +00:00
Ray Greenwell 9cdc1dd3d2 Omigosh, let's capture any errors thrown while unloading media.
I was pretty sure the event handlers did this, but Annie sent me a trace
that would seem to indicate otherwise.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@573 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-07-14 19:17:43 +00:00
Tom Conkling d2c253af72 DisplayUtil.positionBounds()
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@570 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-07-11 22:00:19 +00:00
Tom Conkling 5a0b164c3f These functions aren't actually used by sortDisplayChildren
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@569 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-07-11 21:40:25 +00:00
Tom Conkling 6776b83ce6 Account for kerning by always measuring the width of the truncated text field with the truncation string
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@559 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-07-02 00:50:51 +00:00
Tom Conkling 5d6ef34d2b TextFieldUtil.setMaximumTextWidth()
So that Robert stops breaking the UI with his ridiculously long names...


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@558 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-07-01 23:14:08 +00:00
Ray Greenwell ec93c75cc2 Added setMediaBytes().
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@553 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-06-25 22:55:16 +00:00
Ray Greenwell 25d74475d9 I saved this checkin until I was feeling destructive, and that time is now.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@551 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-06-24 01:27:52 +00:00
Tom Conkling d426b70e58 This is probably not such a good idea after all
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@547 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-06-19 20:18:24 +00:00
Tom Conkling 8168128b0f small optimization for the DisplayUtil.sortDisplayChildren common case
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@546 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-06-19 20:10:06 +00:00
Nathan Curtis 2952d288fd Allow CommandMenu subclasses to provide their own item renderer.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@544 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-06-18 18:12:59 +00:00
Ray Greenwell 4148e90209 Added createLabel().
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@543 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-06-14 01:50:56 +00:00
Ray Greenwell d26f854290 Converted HermiteFunc into a standard easing function. Untested.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@542 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-06-13 01:54:12 +00:00
Ray Greenwell 284a4070ea Added updateText().
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@540 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-06-12 20:10:41 +00:00
Ray Greenwell cafdd35170 Deprecate everything in this package. Use tweener. It's better.
Unfortunately, the flex compiler is a bit thick and issues a deprecation
warning when compiling a class that is itself deprecated, so this
adds warning spew to nenya compilations.

I'll probably blow all this away soon (except maybe HermiteFunc, which
could be adapted into a standard easing function for use with Tweener
and flex easing effects- the other functions are already well represented.).


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@539 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-06-11 22:15:58 +00:00
Ray Greenwell 67cc68c1b6 Various Flex utils.
...like having a decent factory for Spacer.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@537 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-06-10 23:55:03 +00:00
Nathan Curtis 97c5206983 Added some notes about the facilities and ancestry of this class. Also modified it so that it
will scroll automagically if, even after doing its damnedest to make it fit, it still doesn't.  This
will only happen if the menu (or submenu) is so tall that the it stretches from the bottom of the 
bounds it's using, and extends past the top of the bounds.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@526 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-06-05 21:31:32 +00:00
Nathan Curtis 89fef8992b Bring back the scrollable menu. However, we leave the default as not scrolling, and only do
scrolling of any kind of the verticalScrollPolicy is set to ScrollPolicy.AUTO or ScrollPolicy.ON, 
and the maxHeight has been set.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@525 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-06-05 19:00:24 +00:00
Nathan Curtis 4b0f9e0c64 By properly using the nifty PopUpUtil, we can simplify and correct this code all at once.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@520 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-06-04 00:47:56 +00:00
Nathan Curtis 65e0f8015e Allow the creator to specify their own bounds if they don't want submenus to be constrained by the
stage.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@519 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-06-04 00:05:00 +00:00
Nathan Curtis 6b40089e52 Fixed some layout problems with _upping submenus. Also, the _fitting member variable was checked
in submenu layout, but it could never get set to anything but null.  So, now it just assumes that
it should be fitting to the stage and does that (it would previously just put the menu wherever
its broken math put it, and not checking against the bounds of anything).  I have a slight 
inclination to bring back a method for supplying a fitting Rectangle so that it can be fitting these
menus between the header bar and control bar.  Maybe I'll just do that next.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@518 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-06-03 23:35:34 +00:00
Ray Greenwell c243740190 - Allow the override dispatcher to be specified in our factory convenience method.
- Style changes.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@503 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-05-23 02:35:20 +00:00
Ray Greenwell 65ff4b70b9 Bad Nathan! Avoid "if true then true" coding. I need a snappier name for
this ugly pattern.
FYI, CommandButton also has buttonMode follow enabled-ness.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@493 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-05-14 00:29:43 +00:00
Nathan Curtis 0378cabcaa That last bug would have been a lot easier to track down if a disabled link button didn't still
look like it should be clickable.  Let's turn buttonMode off when we get disabled.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@492 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-05-13 23:41:32 +00:00
Ray Greenwell 54ac003a1b Encapsulate the annoyance in a method.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@491 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-05-09 21:33:59 +00:00
Nathan Curtis 9783a6a320 remove these two, as they've been moved.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@488 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-05-07 00:23:25 +00:00