Commit Graph

738 Commits

Author SHA1 Message Date
Dave Hoover 3c610e959a Out, out, damned tabs
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@838 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-07-15 22:13:09 +00:00
Michael Bayne 1443bd59cb Out with commons-io.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@835 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-07-12 21:26:06 +00:00
Andrzej Kapolka dd77edca9c Added shutdown method.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@834 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-06-10 18:47:35 +00:00
Dave Hoover 9c19a17c70 Simple little mirage that just paints a solid color.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@831 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-06-01 20:23:22 +00:00
Dave Hoover 98a2e08a03 Varargs to the rescue
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@830 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-06-01 18:03:55 +00:00
Michael Bayne b1f227246e Nixed unused import.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@829 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-05-29 00:25:05 +00:00
Ray Greenwell d93aa839d3 Use a googley Predicate, not a samskivert Predicate.
Sorry for the pain and suffering.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@828 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-05-27 17:45:07 +00:00
Ray Greenwell 2b368d173e Went ahead and did the complicated thing, it's good exercise.
Definitely does not pass the "less code is better code" test.
:(


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@827 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-05-27 17:43:19 +00:00
Dave Hoover 16413e83fa Risk adding fuel to the fire by pulling out the 1.6ism for now.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@826 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-05-27 17:38:56 +00:00
Ray Greenwell b51cdf3dfa Stop me if this Iterator needs to support remove().
I don't think it does.
Lets make the samskivert Predicate obsolete.
This code would be slightly more efficient (but also obnoxious) if we iterated over
the entrySet and then transformed the filtered entries into just keys.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@825 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-05-27 17:29:08 +00:00
Dave Hoover ecdf0f2f4a Prune trailing whitespace & foreachize loops.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@824 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-05-23 01:57:36 +00:00
Dave Hoover 09d081e261 Ah yes; I don't build the jme stuff, so I managed to miss importing the appropriate things.
I think that should be all, but the build will yell shortly if I managed to miss some in
my quick pass through the logs.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@823 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-05-23 01:53:40 +00:00
Dave Hoover d2b9e2ebb9 A healthy splash of google-collections
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@822 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-05-23 01:31:14 +00:00
Charlie Groves a20117d922 Add toString
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@821 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-05-22 23:17:50 +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
Andrzej Kapolka 21b70ac753 Accessors for the source play position within the queued buffers.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@819 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-05-13 02:59:45 +00:00
Andrzej Kapolka e22448caae Move these constants to methods so that we can override them on a
per-class basis.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@818 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-05-11 20:35:58 +00:00
Dave Hoover 7656af30c7 Fluff the pillows.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@817 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-05-11 17:35:12 +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
Matt Jensen 86e9c39a2f Exposing method to get at my package.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@812 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-04-29 19:06:31 +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 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
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 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