Commit Graph

  • 2e25cb021f Add a music sound type Charlie Groves 2008-08-05 18:46:01 +00:00
  • e8103138e5 Add a run queue to dispatch the various key processing runnables on to keep them off the spooler threads Charlie Groves 2008-08-05 18:45:45 +00:00
  • 66d476dcb3 Allow play, loop and unlock to pass in a Runnable to be called when they're processed to match lock Charlie Groves 2008-08-05 01:13:21 +00:00
  • 2b5a96b147 A for effort on the auto-naming Eclipse, but there's no need to drag the underscore along. Too bad you can't make generic arrays not suck. Charlie Groves 2008-08-04 23:51:07 +00:00
  • 5567dcf2a1 Only dirty regions in the MediaOverlay corresponding to its actual media. Since its dirty regions propagate out to the repaint manager, a big update there would lead to dirty calls ping-ponging back and forth for a few cycles. Charlie Groves 2008-08-04 23:38:12 +00:00
  • 78cab07b78 More output fixes. Michael Bayne 2008-08-04 17:47:39 +00:00
  • ee6bf4a5b9 Whoops, that was supposed to be a regular loop. Caught by the Raydar. Charlie Groves 2008-08-02 00:06:51 +00:00
  • 4432a9d6f8 Add a second looping mode, LOOP_TO_COMPLETION, that finishes playing its current run through the sound when stop is called before actually stopping. Charlie Groves 2008-08-01 23:46:17 +00:00
  • d1de5f411d Rollback the sound manager change - it's causing significant slowdown. Mike Thomas 2008-08-01 20:49:10 +00:00
  • 8fd2dffd13 And, don't need this import either. Mike Thomas 2008-08-01 17:23:12 +00:00
  • a2324b526e Add a clarifying comment, and remove unnecessary assignment. I don't honestly recall if this was even intentionally included or a copy-paste error, but it does seem like knowing your image is busted at compile time is much better than not knowing til runtime. Mike Thomas 2008-08-01 17:18:37 +00:00
  • 659f5bc5e2 Code hygiene. Not as pedantic as I'd like, but I couldn't resist the huge time saver that is Eclipse's "Infer generic types" which leaves HashMap and ArrayList as the declared type where I would normally prefer to change those to Map and List and use Maps and Lists to instantiate them. Michael Bayne 2008-08-01 15:56:37 +00:00
  • 60622c3590 Some code hygiene. Michael Bayne 2008-08-01 14:39:57 +00:00
  • 786dd4f7ff Type our result listener. Michael Bayne 2008-08-01 13:27:14 +00:00
  • 1255109f57 Pump up the size of our line buffer to get longer sounds to play less skiptacularly and try going back to using line.drain since our sleep until we figure the sound will be done method wasn't working so well with the larger buffer. Hopefully drain has been fixed in the 4 years since it was commented out. Charlie Groves 2008-08-01 01:23:04 +00:00
  • e6e5e82c83 Fix this up so the keyTyped-based keyboard stuff actually does work, now; I had a bug that managed to essentially let me function thanks to a hybrid of the two modes. Unfortunately, it means things are as jerky as I had originally feared for stuff like swordfighting and sailing, but I just played a bunch of those, and while it's certainly not great, it's not TOO terrible. But I definitely wouldn't want to be in a SF tournament in this mode... Dave Hoover 2008-07-31 20:47:33 +00:00
  • 4041883798 My nightmares have come true, and keyTyped behavior appears to be different on windows, so add a whole buttload of debugging I can turn on and cry while sifting through. Dave Hoover 2008-07-30 22:33:30 +00:00
  • 39c7cf1419 Unwrapped long lines. Michael Bayne 2008-07-30 19:00:28 +00:00
  • 0c7a95a8d0 Add a background jpeg encoder which uses the JPGEncoder to spread out encoding over a series of frames. Robin Barooah 2008-07-30 01:46:22 +00:00
  • 84be5a1da6 Hide the little helper class that came over with the JPGEncoder inside the JPGEncoder file. Robin Barooah 2008-07-30 00:13:31 +00:00
  • 5dd60e0d45 Refactor the JPG encoder to process in time slices rather than all at once. Robin Barooah 2008-07-29 23:57:13 +00:00
  • 13f7a78932 Fork the as3corelib JPEG Encoder into nenya. Robin Barooah 2008-07-29 23:56:11 +00:00
  • f2d6194a97 Symlink to Mac OS X, maybe this'll fix building for Robin. Ray Greenwell 2008-07-29 20:17:05 +00:00
  • ea05382aa9 Local variable never read. Matt Jensen 2008-07-29 18:23:27 +00:00
  • 719f63577b In japan, people will frequently run with keyboards in a mode that generate wide versions of the latin characters, which has the nasty side effect of sending keyTyped events instead of keyPressed and keyReleased events. Dave Hoover 2008-07-29 00:13:22 +00:00
  • 3fad5fb569 Nixed unused variable references. Michael Bayne 2008-07-26 22:04:15 +00:00
  • be7dc2dd21 MDB would prefer that we ignore these via .subversion/config, rather than svn:ignore. Nathan Curtis 2008-07-25 17:28:41 +00:00
  • c0fa2c56f4 Lets go ahead and svn:ignore the Flex Builder property files Nathan Curtis 2008-07-24 21:55:19 +00:00
  • 32ff74a223 Well, shit. MDB points out something I completely missed: these Flex Library Project files contain an enumerated list of every class in the library. Since there are (as far as I know) only two people currently using Flex Builder, and since these project files are easy to create and maintain locally, lets not deal with keeping a versioned copy up to date every time a file is created, removed or renamed. Nathan Curtis 2008-07-24 16:26:03 +00:00
  • 9f83be6589 Flex Builder project files for nenya as a Flex Library project. Depends on Narya's Flex Builder project. Nathan Curtis 2008-07-23 20:42:46 +00:00
  • 3adb554d40 Add UP and DOWN direction codes. Micah 2008-07-23 17:38:48 +00:00
  • 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. Ray Greenwell 2008-07-14 19:17:43 +00:00
  • 5f1eed7b94 Add in @Overrides across the board, clean up the comments around them some, and remove unneeded imports. I've got partially completed patches for narya & vilya, too, but nenya was the only one that wound up in a decent state after a friday evening puttering at it, killing time waiting on other things to finish. Dave Hoover 2008-07-14 18:19:23 +00:00
  • 1df0737bf7 Widening + generics + new logging api. Dave Hoover 2008-07-14 17:42:06 +00:00
  • d2c253af72 DisplayUtil.positionBounds() Tom Conkling 2008-07-11 22:00:19 +00:00
  • 5a0b164c3f These functions aren't actually used by sortDisplayChildren Tom Conkling 2008-07-11 21:40:25 +00:00
  • 3ab8bde582 Add the ability to add "Obscurers" or components that will be drawing on top of a MediaPanel - these then force additional redrawing of the Media Panel, so should be used with extreme caution. I suspect there may be cleaner ways to do this, so there may be further changes to this in the near future, but this seems good enough for my current needs. Mike Thomas 2008-07-08 22:48:36 +00:00
  • eb959e4930 If we're not able to use Arrays.hashCode(), let's not add a whole separate method and bloat up the code a bunch, let's just do the brief, inline thing we were doing in the first place. Michael Bayne 2008-07-08 10:49:57 +00:00
  • 45edaccf6d The plot, she is thick. The Nenya framework supports a MediaOverlay that can render sprites and animations over the top of everything in the frame: JComponents, MediaPanels anything we like. To support this, we have the MediaOverlay tell the ActiveRepaintManager when it has dirtied an area of the screen and it will mark that component as needing repainting. Peachy. Michael Bayne 2008-07-07 19:24:26 +00:00
  • 83a7c58017 Move this getter up with his friends. Michael Bayne 2008-07-07 19:00:31 +00:00
  • f69a3d550e More generics. Michael Bayne 2008-07-07 18:57:51 +00:00
  • d5b1c1faf5 Generics. Michael Bayne 2008-07-07 18:53:18 +00:00
  • 1b7832dd8a Fixed the comment. Michael Bayne 2008-07-07 18:44:16 +00:00
  • 616049971b Touch of modernization Charlie Groves 2008-07-03 00:58:23 +00:00
  • e7bf315b1b Share scene block resolvers across a context instead of statically across all scene panels. Exiting an applet sometimes kills the resolver thread making it worthless to scene panels coming along in a new applet Charlie Groves 2008-07-03 00:56:42 +00:00
  • 6776b83ce6 Account for kerning by always measuring the width of the truncated text field with the truncation string Tom Conkling 2008-07-02 00:50:51 +00:00
  • 5d6ef34d2b TextFieldUtil.setMaximumTextWidth() So that Robert stops breaking the UI with his ridiculously long names... Tom Conkling 2008-07-01 23:14:08 +00:00
  • ae04712b2b Toggle visibility when delaying repainting to keep child components from painting while we aren't Charlie Groves 2008-07-01 04:39:27 +00:00
  • 375f7fe977 Don't unpack resource bundles when running tests. Michael Bayne 2008-06-29 13:47:13 +00:00
  • adb7f3adce Style changes. Micah 2008-06-27 00:29:53 +00:00
  • 4b77902162 Replaced a Java 1.5 method call with a 1.4 method call. Micah 2008-06-27 00:19:54 +00:00
  • ec93c75cc2 Added setMediaBytes(). Ray Greenwell 2008-06-25 22:55:16 +00:00
  • 550c360df6 Allow image preparation to be turned off on a run by run basis Charlie Groves 2008-06-24 23:44:50 +00:00
  • 25d74475d9 I saved this checkin until I was feeling destructive, and that time is now. Ray Greenwell 2008-06-24 01:27:52 +00:00
  • 7b7131bf7c Need to weak reference the values too if they're going to be collectable. Use Arrays.hashCode to calculate the hash code of a long[] thanks to Ray. Charlie Groves 2008-06-23 23:50:57 +00:00
  • cd30b42cd8 Allow the size of the sound cache to be set in the sound manager's constructor. Charlie Groves 2008-06-23 22:00:22 +00:00
  • 7ace9ac320 * Add a fringe tile cache Charlie Groves 2008-06-23 21:59:16 +00:00
  • d426b70e58 This is probably not such a good idea after all Tom Conkling 2008-06-19 20:18:24 +00:00
  • 8168128b0f small optimization for the DisplayUtil.sortDisplayChildren common case Tom Conkling 2008-06-19 20:10:06 +00:00
  • f6b35f8217 Added a method to get the resource path of a file within the resource directory. Andrzej Kapolka 2008-06-19 01:45:11 +00:00
  • 2952d288fd Allow CommandMenu subclasses to provide their own item renderer. Nathan Curtis 2008-06-18 18:12:59 +00:00
  • 4148e90209 Added createLabel(). Ray Greenwell 2008-06-14 01:50:56 +00:00
  • d26f854290 Converted HermiteFunc into a standard easing function. Untested. Ray Greenwell 2008-06-13 01:54:12 +00:00
  • 1a54fa9000 Be less promiscuous about swc's here too. Par Winzell 2008-06-13 00:52:30 +00:00
  • 284a4070ea Added updateText(). Ray Greenwell 2008-06-12 20:10:41 +00:00
  • 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. Ray Greenwell 2008-06-11 22:15:58 +00:00
  • 49777fab3f Everybody's favorite new game show, Name That Thread Charlie Groves 2008-06-11 00:46:48 +00:00
  • 67cc68c1b6 Various Flex utils. ...like having a decent factory for Spacer. Ray Greenwell 2008-06-10 23:55:03 +00:00
  • ef4e27cdd0 Need to synchronize around adjustSize as it can lead to a flush Charlie Groves 2008-06-10 23:33:58 +00:00
  • d67c0bd7b7 Only use the set cache value for the current set of managers, don't store it in the RuntimeAdjust Charlie Groves 2008-06-10 21:37:57 +00:00
  • 06e3217d6b Well that's just peachy. When we drawImage from a BufferedImage, the performance is relative to the size of the source image, not to the size of the resulting tile subimage. Therefore, for largish tileset sources, this was taking a Very Long Time. So, we take a subimage first and use that for our drawing. (I believe it's still accurate that we cannot just use the subimage directly due to various factors - though if we somehow could, it would save us some cache space). Mike Thomas 2008-06-10 20:29:20 +00:00
  • 7ae34a5683 This has been misnamed for quite a while and nobody ever noticed... which presumably means this is a rather unimportant fix. Par Winzell 2008-06-10 15:47:55 +00:00
  • 79bdb30108 Stop spamming the logs with every resource fetched over the network Charlie Groves 2008-06-10 00:42:23 +00:00
  • 6375505e53 Narya exports guice now Charlie Groves 2008-06-09 18:03:37 +00:00
  • 68bbc19f8d Tell eclipse about guicey jars. Mike Thomas 2008-06-09 17:33:46 +00:00
  • 935cf0e7c2 Basic Guice compliance. Michael Bayne 2008-06-07 17:45:10 +00:00
  • 70ef6a644a Widened and genericized Charlie Groves 2008-06-06 21:16:45 +00:00
  • 7d613a999a Allow cache sizes to be set programatically Charlie Groves 2008-06-06 21:15:05 +00:00
  • 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. Nathan Curtis 2008-06-05 21:31:32 +00:00
  • 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. Nathan Curtis 2008-06-05 19:00:24 +00:00
  • 9d5f63d758 Expose the locale prefix and resource list to the whole world Charlie Groves 2008-06-05 00:14:28 +00:00
  • 228762fc0d Pass the set of all valid paths through to getFramePath so it can fall back to the default action if the specified action doesn't exist Charlie Groves 2008-06-04 23:42:36 +00:00
  • 6a0da5531e Genercize Charlie Groves 2008-06-04 18:18:56 +00:00
  • 795bfe0429 Log every time we get a resource from the network Charlie Groves 2008-06-04 18:18:10 +00:00
  • 4b0f9e0c64 By properly using the nifty PopUpUtil, we can simplify and correct this code all at once. Nathan Curtis 2008-06-04 00:47:56 +00:00
  • 65e0f8015e Allow the creator to specify their own bounds if they don't want submenus to be constrained by the stage. Nathan Curtis 2008-06-04 00:05:00 +00:00
  • 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. Nathan Curtis 2008-06-03 23:35:34 +00:00
  • c2561037f0 Create a way to find out what the resource path is for the component & action in question. Mike Thomas 2008-05-30 03:17:24 +00:00
  • 3839762bc8 Split out the actual loading from a particular URL to a static function we may want to call from other places. Mike Thomas 2008-05-29 23:45:29 +00:00
  • 2381ec5640 Split out the creation of the file & network resource bundles so that subclasses can potentially create their own extensions to these. Mike Thomas 2008-05-29 23:44:40 +00:00
  • d6319c128d If we pass in a panel, we really DO want to use it. And don't NPE if we resolve a block and don't have a panel (though my NPE was really because of the first problem) Dave Hoover 2008-05-29 00:09:51 +00:00
  • 7ddd442d68 Break createResourceBundle out of resolveResourceSet such that subclasses might make their own types of resource bundles Charlie Groves 2008-05-28 01:56:07 +00:00
  • 2a2d36d528 Break SceneBlock and RethinkOp out of MisoScenePanel so the blocks in a visible region can be resolved without an underlying panel Charlie Groves 2008-05-28 01:55:15 +00:00
  • 4ec18f5250 The resource url isn't necessarily going over http Charlie Groves 2008-05-28 01:29:50 +00:00
  • e00b4ddd6b Switch to new logging API. Michael Bayne 2008-05-27 22:55:10 +00:00
  • b521b4bfbf Instead of caching the last 10 sound clips, cache up to 4 megs of clips Charlie Groves 2008-05-27 22:09:03 +00:00
  • 63bedb6649 Use new logging API. Michael Bayne 2008-05-27 19:42:20 +00:00
  • 209504479d Fix this user of samskivert's log object. Michael Bayne 2008-05-27 18:53:20 +00:00
  • 3b86bbe9cc Check if a block was the last visible one we were waiting on even if it was abandoned before it was resolved. The view location can change before resolution completes. Charlie Groves 2008-05-23 23:49:38 +00:00
  • dce34521a3 When refreshing a scene, only delay repaints if rethink finds new blocks to resolve Charlie Groves 2008-05-23 22:43:23 +00:00