Commit Graph

803 Commits

Author SHA1 Message Date
Michael Bayne 06b892bbff Allow 1.6 source but continue to target 1.5 bytecode.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@810 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-04-17 22:49:34 +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
Charlie Groves 7c7faa43ab Some people seem to get an OpenAL error here after being in the client for a while, so let's see if
catching it allows them to soldier on.



git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@803 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-04-11 21:02:56 +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
Charlie Groves 59a8a16ccd Need to dirty indicators when they're recomputed, otherwise the result of the recomputation doesn't show up till something else changes
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@801 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-04-01 23:36:59 +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 126e58ac11 No longer need this platform hackery.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@799 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-03-31 01:37:02 +00:00
Michael Bayne 09ae3c617d Added asdoc target.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@798 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-03-30 23:09:49 +00:00
Michael Bayne 29e616700e Accept mavenized versions of our SWC depends.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@797 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-03-30 23:05:08 +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
Michael Bayne daa4dab352 Oops, didn't mean to foist that on the world (yet).
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@791 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-03-24 21:29:51 +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
Charlie Groves afc8a7e4c7 Add method to get an array of all the tiles as mirages
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@789 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-03-24 20:14:19 +00:00
Michael Bayne 8f6e10af8f Changed a bunch of Thread.dumpStack() calls into stack traces properly logged
via the logging system.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@788 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-03-24 18:46:59 +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
Michael Bayne a197042cff Updated copyright date.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@785 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-03-19 23:44:54 +00:00
Michael Bayne 40c32e0f04 Updated headers, added missing headers to some source files.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@784 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-03-19 23:44:46 +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
Mike Thomas 6f101a4b5f Useful for cases where you have a tileset but only want some of the tiles in your multi frame image. This means that multiple different MultiFrameImages can be created using different, possibly overlapping subsets of the same shared tileset.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@782 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-03-18 21:34:11 +00:00
Charlie Groves c32d68afd2 Break resource set checking out of NetworkResourceBundle into an abstract superclass such that non-network bundles might also share in the glory of not asking for things that aren't there
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@781 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-03-13 18:49:15 +00:00
Dave Hoover 6fe87f6920 getBoolean
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@780 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-03-10 05:40:36 +00:00
Charlie Groves ad9837830b Check that the new variable isn't null, not the one that we just checked two lines ago
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@779 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-03-05 23:15:42 +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
Mike Thomas 56e43572b8 On FadableImageSprite, we need to check for end-of-path fade in/fade out PRIOR to calling super, which chats with our sprite observers. Otherwise, those sprite observers might dispatch the sprite on a new fade which would then be immediately applied at full strength rather than applying slowly over the appropriate interval.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@776 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-02-19 22:31:15 +00:00
Charlie Groves e7773e0b86 Respect the current volume in looping sounds
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@775 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-02-09 20:08:59 +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
Mike Thomas 2af7ad1dcf Roll back r760 - this was forcing use of raw images in some cases, not just allowing.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@770 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-01-29 17:42:49 +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 ca8c370395 Updated to target flash 10.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@768 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-01-28 22:28:17 +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
Matt Jensen 648ad3e0fc Formatting tweak.
TODO: I should probably add a third type of resource bundle, CLASSPATH_TYPE, that just searches the classpath for resource bundles.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@762 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-01-22 02:16:36 +00:00
Matt Jensen aacdc439a5 A couple changes to allow for a custom resource bundle.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@761 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-01-22 01:48:35 +00:00