Commit Graph

317 Commits

Author SHA1 Message Date
Jamie Doornbos ad67558798 Some more useful methods for FlexUtil for creating layout containers and wrappers inline.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@859 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-10-26 20:52:04 +00:00
Ray Greenwell 292ca25d5a MethodQueue -> DelayUtil.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@858 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-10-21 21:49:30 +00:00
Ray Greenwell dc2cbcf8f7 Use new Maps factory.
Does anyone care about this crappy class?


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@852 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-08-24 02:55:11 +00:00
Ray Greenwell 502701a32b Bugfix.
When a menu is popped up but contains no items, the listData is null
(rather than empty). Special!


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@850 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-08-18 23:08:20 +00:00
Ray Greenwell d8ae0c7877 Update to match change to ChatDisplay interface.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@847 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-08-15 00:16:07 +00:00
Ray Greenwell 6194a1114f Colors are uints.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@844 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-08-03 22:12:52 +00:00
Michael Bayne fc4792d5cd Nixed the Flash utilities (which moved to flash-utils) and wired up a
dependency on same. The repackaged classes are going to break everything, but
I'll go through and fix the big stuff and smaller projects can languish or get
with the times.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@839 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-07-21 21:24:07 +00:00
Ray Greenwell 9c4173fd8b - In flash 10, oh yay, the mouseTarget might be set to null for security
reasons.
- While I was in there, I renamed the method to createCommandContextMenuItem,
  since that's more what it is.
- Removed the silly-ass option to make the menu item invisible. It was there
  because ContextMenuItem has it, but how about you just don't add the item?


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@820 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-05-13 23:18:48 +00:00
Ray Greenwell 338d4eb567 Yep, this fixed the problem.
Rejoice and comment it.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@816 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-05-08 02:04:12 +00:00
Ray Greenwell 516b5fbbb6 On production, in an embed, I can't click the chat widget during
the voting phase of LOLcaptions.
Clicking a button and then the text field works, so it's some
sort of funky focus issue. Try this.
Unable to duplicate on my local server, so I'll just recheck to see
if this works after the next release.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@815 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-05-06 18:54:59 +00:00
Ray Greenwell e717a07ad7 Minor formatting.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@814 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-05-04 22:07:09 +00:00
Ray Greenwell 34153b66aa Allow a trigger button to be set.
- When the menu hides, if the trigger is a toggle, it will be de-selected.
- If the menu is up and you mouseDown on the trigger, it will supress the menu
  from re-popping by blocking the CLICK that comes on the trigger.

Jesus this was complicated to get right. For a while I was trying stuff
with MethodQueue, but we react to the MOUSE_DOWN and the CLICK doesn't
get generated until some time later.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@813 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-05-04 00:33:59 +00:00
Ray Greenwell 3f18d80fdf Let's make all CommandMenus variableRowHeight.
- What's the harm in it? Does it cause menu to do more calculation?
What the fuck gus, they should have only implemented one code path and KISS.
- it seems to be necessary when using separators. They are slim. When not
used in a menu with separators, the separators are these hulking beasts.
- it seems that when a submenu is added, things are going variable anyway.
So: consistency.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@809 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-04-16 21:11:03 +00:00
Tom Conkling a4f52c9959 ColorUtil.getHue()
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@808 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-04-16 19:17:08 +00:00
Ray Greenwell 148be9c17e Fix using an already-instantiated icon in the addTitle() method.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@807 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-04-16 01:53:40 +00:00
Ray Greenwell 05cbe9db64 Add support for titles in menus.
Added an addTitle() convenience method.
Unfortunately, styling the background of the title either
impossible or so deep down the rabbit hole... deeper than this???


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@806 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-04-16 01:42:48 +00:00
Ray Greenwell 73954bafc5 No need to cast to DisplayObject to get these methods and properties.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@805 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-04-15 01:30:55 +00:00
Ray Greenwell 6d179d6ad2 Bugfix: fix y position of a submenu on an upwards-popping menu.
When transforming from row coords to global coords, don't use a point
in the row's parent's coords.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@804 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-04-15 01:22:36 +00:00
Ray Greenwell 4af549a7e4 Added getArg(), mainly so that it can be used when dispatching
and overridden in subclasses.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@802 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-04-02 18:37:41 +00:00
Tom Conkling e9a797fef2 Line wrapping and line ending cleanup
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@800 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-03-31 22:29:18 +00:00
Michael Bayne d5c9e38c34 More asdoc fixes.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@796 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-03-30 23:04:54 +00:00
Ray Greenwell 05ee3c0f58 A helpful class for flex.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@795 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-03-27 01:48:17 +00:00
Tom Conkling 590fef5fed DisplayUtil.transformPoint convenience function
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@794 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-03-26 18:58:08 +00:00
Ray Greenwell 6e123c3c8b Added scrollToKey().
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@793 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-03-24 22:24:02 +00:00
Ray Greenwell 0a4a690728 Let's use presents.dobj.EventListener (and expose a public function- oh well)
and just handle all events in one place, greatly reducing line count
and at the same time handling changes other than AttributeChangedEvents
to the "refreshFields".


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@792 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-03-24 21:39:41 +00:00
Ray Greenwell 02748d3034 Properly using a flex List with sorting and filtering is tricky.
Take what we've learned and make a generic class for watching
a DSet and making a nice List out of it that preserves your
scroll position while elements are added or removed.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@790 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-03-24 21:03:14 +00:00
Ray Greenwell fdfa3aa2e5 Dispatch events indicating we're in an unready state when
we're unloaded.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@787 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-03-20 23:53:56 +00:00
Ray Greenwell 7bf440c629 Since these work on urls, allow clientData to be passed in,
which will be the MediaDesc in msoy.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@786 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-03-20 21:56:48 +00:00
Ray Greenwell aa8eea91d3 Added a STOPPED state to indicate that we've reached
the end and are not paused. Support it for FLV and MP3.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@783 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-03-19 00:04:09 +00:00
Ray Greenwell 77d71ce7ed Hacktastic support for making a TextField only mouseEnabled when the mouse
is over a link. Similar in concept to some code that lived in msoy,
but that special code was tied into the RoomView, which just ain't right
for the chat system, and made it not work the same in games.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@778 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-03-04 03:12:46 +00:00
Ray Greenwell 1b14473f25 Added addSeparator().
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@777 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-03-03 00:13:13 +00:00
Ray Greenwell bdbe9dab3c Fix the chat input bug.
It's a mystery wrapped in a heisenbug inside sunspots.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@774 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-02-06 02:43:34 +00:00
Ray Greenwell 9e8021cc7e These trace statements have served their purpose. Adding traces to MediaStub.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@773 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-02-06 00:27:09 +00:00
Ray Greenwell ea185ceab0 Attempt to call unloadAndStop(), but remain compileable for flash 9
for the time being.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@772 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-02-02 21:54:31 +00:00
Ray Greenwell 4b4701b4aa Revert to targetting 9.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@771 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-01-29 20:30:51 +00:00
Ray Greenwell 5aeb5ab0f0 Enable glorious unloadAndStop().
I did some tests with it, and it sure does put the kibosh on things.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@769 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-01-28 22:30:43 +00:00
Ray Greenwell 45a6e39f2c Ditch createTipLabel, just add another param to createLabel.
No need to avoid overwriting a defaultly-null field value with null.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@767 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-01-28 02:11:45 +00:00
Tom Conkling 8cddf9ef1b Allow Flash to throw an exception if the input is invalid
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@766 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-01-27 23:21:19 +00:00
Tom Conkling badfd4b612 Convenience functions
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@765 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-01-27 23:14:12 +00:00
Ray Greenwell 7db745258e Removed longstanding hack, make this prompt image a style.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@764 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-01-23 02:13:52 +00:00
Ray Greenwell da084e2c0c Bugfix: overriding flex's internal idea about 'enabled'ness
was a bad idea. Use it.
(Fixes chat semi-disabled for guests.)


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@763 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-01-22 23:00:17 +00:00
Ray Greenwell e7132a127f Fix for when the items don't have a 'data' property.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@756 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-01-17 03:17:57 +00:00
Tom Conkling d22fcc041b DisplayUtil.positionBoundsRelative, the general version of DisplayUtil.positionBounds
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@755 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-01-16 23:25:16 +00:00
Ray Greenwell 45c9ca451e Oh baby, I think I fixed it.
- It seems that the camera gets fakey "locked" at the size it was set to
  when the user grants access to it.
  - Listen for status changes, don't set things up until the camera is
    unmuted.
  - record the size at the time of unmuting.

This all seems to work, but I worry about what would happen if access
to the camera had already been granted when this code runs.
There'd be no way to find out what the size was access was granted.
Fortunately, I believe we only use this code presently in a standalone
appletty-type-thing, so access is always granted in here.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@752 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-01-14 02:52:27 +00:00
Ray Greenwell ff31994909 Some rearrangement.
Fucking A.
It seems to default back to the size of the last snapshot taken
even if that snapshot was affected by the bug. When you quit and
then come back in, it is "stuck" to the last size. There's
no way to know what this size is.

Right now: logging everything, doing no adjustment.
Let's see if other people have problems, or what.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@751 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-01-09 02:24:11 +00:00
Ray Greenwell a0204eb35b And now suddenly it's back to 160x120.
Fuck me!


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@750 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-01-09 01:28:53 +00:00
Ray Greenwell ee4c68c757 Well, this is heisentastic, and to top everything off it seems to
always act like the size is 320x240 now, instead of what it used to do.
Ack!


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@749 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-01-09 01:25:45 +00:00
Ray Greenwell 2c60e6c3cf Use the 'enabled' property setter/getter.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@748 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-01-09 00:31:01 +00:00
Ray Greenwell 2ae0b63aae Added a setIcon() method to update the icon after construction.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@747 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-12-29 22:47:36 +00:00
Ray Greenwell 2817021c56 Allow to be used without a command.
Alternatively, I could create a DataComboBox that just does the cool
'data' stuff, and have CommandComboBox extend that.
Comment cleanups.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@746 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-12-18 01:18:31 +00:00