9748e422c7
Let the rest of the world use the FlexWrapper - this is pulled from LayeredContainer.
Nathan Curtis
2008-01-28 22:57:13 +00:00
7dbffa80cf
Occam's razor.
Ray Greenwell
2008-01-24 21:54:26 +00:00
cc1a550a55
Oh, and roll back the compiled mac ones, too.
Dave Hoover
2008-01-18 19:51:28 +00:00
bed5271a28
Let's roll back my last change to Unsafe and do this differently; my shared object compiled on my laptop that I checked in blows up on my desktop. Yay for worrying about where you compile. So instead, because we only needed to call init() to setup jvmpi for garbage collection, only call that if we touch that functionality so we can keep the same old compiled code kicking around, nobody that consumes this needs to change things, etc.
Dave Hoover
2008-01-18 19:49:48 +00:00
611098c7d6
Mac version of Dave's libunsafegc
Charlie Groves
2008-01-17 23:40:42 +00:00
00081d774e
If shutting down media that has a different url than it should, log both urls.
Ray Greenwell
2008-01-17 23:34:58 +00:00
406b2a4662
Break Unsafe apart into Unsafe and UnsafeGC, the latter having only the things to play with garbage collection. The gc stuff required JVMPI which the "server" jvm doesn't have, so poor saps like me with two processors and gobs of ram needed to hack things to run yohoho & force java to run with the "client" vm since it used stuff out of unsafe (but not the gc stuff)
Dave Hoover
2008-01-17 23:10:46 +00:00
f91b7714a5
Remove unneeded casts.
Dave Hoover
2008-01-17 01:26:05 +00:00
d8367eeb6f
Quick smattering of type safety to go along with other misc cleanup I've got in progress over in yohoho.
Dave Hoover
2008-01-15 21:32:59 +00:00
dda77910ba
Some in-progress changes that are safe to check-in now. Created a function to return the mask area as a Rectangle. Will be used when snapshotting through the media stub.
Ray Greenwell
2008-01-12 00:48:20 +00:00
3645d831a7
Some rearrangements to improve subclassability. I had a subclass loading the new zip files that will be remixable avatars, but that's going to have to be restructured (complexity++) for security reasons.
Ray Greenwell
2008-01-11 00:06:09 +00:00
56df6f1913
Truth in commenting: the DirectoryTileSetBundler isn't rewriting things in our own image format
Dave Hoover
2008-01-10 19:55:45 +00:00
9733142d35
It's not a perfect solution, but make it so we can call the tile trimming task and not actually write out new image to a file if we don't need to.
Dave Hoover
2008-01-10 19:51:24 +00:00
9458c0704a
Truth in commenting: don't claim we can't trim something and then immediately turn around and trim it.
Dave Hoover
2008-01-10 19:27:49 +00:00
7ef9682355
We can't skip these tilesets even if they're up to date like this, since we would've done some extra logic & changed the tileset on the bundle. I obviously want to fix this so things aren't so insanely grindy when nothing's changed, but it's time to run for my train, so in the meantime I'm going to make this burn cpu but do the right thing.
Dave Hoover
2008-01-10 01:45:15 +00:00
8c17ececc1
Guess what we don't want? The ant runtime jars in our classpath.
Michael Bayne
2008-01-08 22:25:37 +00:00
73780534c3
Only build our native bits on "unix" operating systems.
Michael Bayne
2008-01-08 22:25:22 +00:00
7d603e2cda
DisablingButton forces a visual update after a state change is made
Tom Conkling
2008-01-03 01:27:52 +00:00
4e50f81400
CommandMenu no longer scrolls. It now supports methods to display a menu inside a visible area or to expliclty pop up or left which it correctly passes on to its submenus.
Michael Bayne
2007-12-20 03:23:04 +00:00
efca36dec5
Redispatch the INIT event when we get it.
Ray Greenwell
2007-12-19 21:13:05 +00:00
c5686ed0c4
We need JL or the openal package won't build.
Michael Bayne
2007-12-18 21:51:47 +00:00
73b8dd0d48
Nix stray crowd dependency. No one uses this interface.
Michael Bayne
2007-12-18 00:19:18 +00:00
909c1f4189
Use Util.init() to initialize TextFields and TextFormats.
Ray Greenwell
2007-12-13 23:26:10 +00:00
ce1649d79b
Don't adjust the image path to end in .raw since we're actually making .pngs
Charlie Groves
2007-12-13 19:17:42 +00:00
60cb064c21
Vestigial Random
Charlie Groves
2007-12-13 18:55:30 +00:00
80a952de68
The DirectoryComponentBundler task doesn't create a single output stream for a jar file, so fout doesn't need to be closed at the end of the bundling
Charlie Groves
2007-12-13 18:51:48 +00:00
9d6fa8d4d5
The earlier workaround didn't succeed in working around anything. The stream's data got used up in the failing attempt to create the image and so there's nothing left to create it the second way.
Mike Thomas
2007-12-13 03:29:19 +00:00
a06eddcd95
Super-sweet. Java 1.4.2 apparently has some kind of awesome bug in its MemoryCacheImageStream. Let's work around that by falling back to the Image IO reading that's gonna bork in sandbox land. Guess anything in a sandbox is gonna require Java 1.5 unless we find a different way around this.
Mike Thomas
2007-12-13 00:48:34 +00:00
807165e6fc
Make sure to perform the path completion steps if starting the path causes it to complete.
Mark Johnson
2007-12-12 19:40:14 +00:00
963b4939c5
If it's been so long since the last tick that we completely skip one segment of a composite path, continue onto the next one. This should fix part of the problem with trophy windows not sliding back out, but doesn't explain why they're not being removed from the overlay entirely (as the path completed functionality should still be called).
Mark Johnson
2007-12-12 19:12:54 +00:00
cb704de5fa
Pet peeve: avoid "if (true) then true else false" code.
Ray Greenwell
2007-12-12 18:20:34 +00:00
1074d68d5f
While one could fake this up by asking for all objects in a region large enough to cover the scene, I really just wanted a quick & dirty way to get all objects in the scene.
Dave Hoover
2007-12-12 07:55:51 +00:00
accd0a0de7
Added distance function that can handle different types of spaces.
Robert Zubeck
2007-12-12 03:04:33 +00:00
f8b2cb19ec
gee, maybe i should test my code before committing
Tom Conkling
2007-12-12 02:00:58 +00:00
63764b85f2
unused member variable cleanup
Tom Conkling
2007-12-12 01:58:24 +00:00
dc0ae2a3e8
created DisablingButton, which extends SimpleButton and adds support for a disabledState
Tom Conkling
2007-12-12 01:55:48 +00:00
a918c3e9e8
Adapt mx.effects.easing or Tweener functions to be used for paths.
Ray Greenwell
2007-12-10 00:30:16 +00:00
fdd85f3c2b
I'm not sure how a DisplayObjectContainer has a null child, but I'm seeing it. Cope.
Ray Greenwell
2007-12-05 21:17:36 +00:00
4845965208
Document the hueShift parameter.
Ray Greenwell
2007-12-04 22:31:12 +00:00
9f3092e63a
Let our functions escape the bondage of integers and vary freely with time.
Par Winzell
2007-12-04 19:22:21 +00:00
0ed263a6ee
More silly.
Par Winzell
2007-12-04 19:19:05 +00:00
356c78e6de
Oh oops, thanks Ray, this should definitely be a Number.
Par Winzell
2007-12-04 19:06:45 +00:00
bc8d005179
My past as a filthy foreigner haunts me.
Par Winzell
2007-12-04 18:58:02 +00:00
ce9204d858
What's a hermite spline without derivates? I suggest we add getSlope() or something like it to the interface/superclass; thoughts?
Par Winzell
2007-12-04 16:42:28 +00:00
8f2700dcc8
Keyword substitution.
Dave Hoover
2007-12-03 21:08:33 +00:00
002f0d1309
So, key events are only dispatched on frames, and it seems that those happen after timer events in the flash player. What was happening was that a KEY_UP event was coming in so long after the initial KEY_DOWN, that this code would think that the key was being held down even when not. So instead we wait until we actually see a 2nd KEY_DOWN event, at which point we may need to dispatch that event right away, or we may need to wait a bit if the limitRate is higher than the elapsed time between the two events. Now also there is a Timer for each key being held down. To top it all off, if you hold a key and then lose focus then this will continue to fire, so it's going to need yet more complication to fix that.
Ray Greenwell
2007-11-30 19:17:02 +00:00
2aca740d15
Changed KeyRepeatBlocker into KeyRepeatLimiter, which can be used to block key repeats, or set the repeat rate to any desired value.
Ray Greenwell
2007-11-29 23:01:40 +00:00
3b31fff153
TODO: stop hard-coding this width. This class used to live in msoy, where this made a bit of sense, but now it doesn't. However, I'm just going to change this here because I'm already down a rabbit hole.
Ray Greenwell
2007-11-29 02:14:11 +00:00
b9fce610da
CommandLinkButton, just like CommandButton.
Ray Greenwell
2007-11-29 02:08:37 +00:00
b51e484605
Unwrapped.
Michael Bayne
2007-11-27 22:52:09 +00:00
d0f8f1e1d0
Turns out people had extended Sprite and added their own Comparable implementation, so let's not stick a fork in that.
Michael Bayne
2007-11-22 06:45:42 +00:00
db23c89ec0
Don't use parentChanged() to track whether we're onscreen or not, it's unreliable.
Ray Greenwell
2007-11-21 19:47:32 +00:00
c73ec397e0
The old way I had the Directory-based bundlers checking for out-of-dateness was prone to error in the face of new files or unfortunate subdirectory situations. Now check on an entry-by-entry basis instead, which is much happier.
Mike Thomas
2007-11-15 21:56:34 +00:00
c68df0bab2
If the directory is missing/empty, don't fail to get the last modification date.
Mike Thomas
2007-11-15 18:28:20 +00:00
f922f965f1
Added utility methods: findInHierarchy and dumpHierarchy.
Ray Greenwell
2007-11-14 20:11:10 +00:00
d6b01cab7a
Enable keyword substitution on these new files.
Mike Thomas
2007-11-13 19:24:53 +00:00
f57e973987
Rather than forcing a rebuild of our tileset and component bundles every time when we're deploying to a directory bundle, decide based on the oldest modification time stamp of any file within the directory. Otherwise, these builds get crazy long.
Mike Thomas
2007-11-13 18:29:49 +00:00
a0b5874d5f
Since we're dropping in individual files here, always assume out of date rather than using the directory's modification time. Eventually, maybe we can scan the directory for the newest file and use that, but we'll cross that bridge later.
Mike Thomas
2007-11-13 17:49:05 +00:00
d5315690a6
Log -> com.threerings.util.Log
Ray Greenwell
2007-11-13 09:30:50 +00:00
3ea4b8b42e
Don't need net or dobj.
Michael Bayne
2007-11-13 02:36:34 +00:00
ee73dd43de
New type of ResourceBundle - NetworkResourceBundle - This bundle grabs its resources over HTTP from a root URL rather than from a local jar file. To make use of this, we need a way to put all the contents of the bundle into an appropriate directory instead of a jar, including its metadata, so some new Bundler Tasks were created to do this. Finally, allow tile set trimming to be done to a non-raw image format through passing an optional imgFormat parameter. If no parameter is passed, it'll default ot the old behavior of using raw/FastIO. Note that to use network bundles, you can set the set_type in the resource manager.properties file. (e.g. "resource.set_type.tilesets = network") If no set_type is set for a resource set, it defaults to a normal FileResourceBundle
Mike Thomas
2007-11-13 01:12:18 +00:00
785eb10234
Other errors can occur when loading native keyboard lib, such as security exceptions, so let's catch those too and cope.
Mike Thomas
2007-11-13 00:44:53 +00:00
75152bf968
We should process the nenya classes like the narya classes so that they have proper writeObject/readObject functions and we can read/write to the non-public members properly during streaming.
Mike Thomas
2007-11-13 00:43:05 +00:00
2cdb65e32e
More comment fiddling.
Michael Bayne
2007-11-10 19:44:48 +00:00
6f93ee545b
Formatting fiddling.
Michael Bayne
2007-11-10 19:44:07 +00:00
d00e7b1873
Fix target comment.
Michael Bayne
2007-11-10 19:43:27 +00:00
93e28d42a6
Let's just install rather than build and install here as well.
Michael Bayne
2007-11-10 19:43:07 +00:00
fd64f4d460
Nix unused imports.
Michael Bayne
2007-11-10 01:19:07 +00:00
5485cf2ab4
Make our ManagedRoot available to callers.
Michael Bayne
2007-11-09 23:00:04 +00:00
e5406c5786
Thats what I get for hoping around my source tree with no regard for file location. I had no idea this was in Nenya.
Nathan Curtis
2007-11-09 03:35:15 +00:00
cba2fc4f67
Freak not out when loading images from input streams in a sandbox.
Michael Bayne
2007-11-08 02:36:17 +00:00
ffd07764ee
In case something goes screwy and we come up with a bogus time to sleep waiting on our sound to play, make sure we do at least our half second fudge, rather than spewing errors as we try to sleep for negative amounts of time.
Dave Hoover
2007-11-07 18:34:40 +00:00
e46e126604
Cut this back; 16 seems to be adequate, and with how everything's structured right now, we only cancel looping sounds after working with a full buffer's worth of audio, so going too large is problematic.
Dave Hoover
2007-11-05 19:58:43 +00:00
9055539f69
We want to hear about repaints, though I need to test this more in various other scenarios to really really be sure. Oh the twisty maze of AWT passages.
Michael Bayne
2007-11-03 00:45:12 +00:00
1c0e4d2678
Let us collect.
Michael Bayne
2007-11-02 23:10:31 +00:00
400feab8f0
It's a bit counterintuitive that nothing in nenya/build.xml actually looks at all the ActionScript files... I keep forgetting.
Par Winzell
2007-11-01 15:27:05 +00:00
45abd9a903
If it were done, when 'tis done, then 'twer well, it were done properly.
Par Winzell
2007-11-01 14:50:22 +00:00
c9ee5f1c21
Add a Hermite interpolator for the Path code. It would be sort of nice to bring Animations and Paths under a common umbrella, by the way.
Par Winzell
2007-11-01 14:27:16 +00:00
bbbb5a2498
Only jump through extra hoops converting our sounds to pcm if we need to (e.g. decoding oggs, but not playing wavs) And then make looping work even if we're playing something that doesn't support resetting to marks in the stream (e.g. decoding oggs)
Dave Hoover
2007-10-31 23:34:03 +00:00
5ab6e41f2f
Rename parameters to reflect reality.
Mike Thomas
2007-10-31 23:21:59 +00:00
9d8d509fc7
Let the world know what's playing.
Par Winzell
2007-10-31 22:23:15 +00:00
b0a9cb847e
Millis, not seconds.
Dave Hoover
2007-10-30 23:10:40 +00:00
bf50fef84c
When playing sounds, sleep for our estimated line reading time based on how long we think the sound will really take to play, not how long the last chunk of our buffer will take. With bumped up LINEBUF_SIZE, we'd sleep longer, but would actually START sleeping much sooner, so we would truncate sounds.
Dave Hoover
2007-10-30 22:54:46 +00:00
bce057c307
Moved chat controls here.
Ray Greenwell
2007-10-30 19:07:23 +00:00
7ac169ad97
Target 1.5 when building.
Michael Bayne
2007-10-30 06:20:13 +00:00
b9d255b032
We can't reliably make the decision as to how to load the image (FastImageIO/raw v normal) at the ResourceManager level - the path name by this point may be a file in the cache which will have lost its indicative extension. Instead, make the decision before we turn the resource path into an actual file name. This fixes YPP's current image loading issues.
Mike Thomas
2007-10-29 20:15:25 +00:00
e89f1dbe3b
Added a helpful Animation for smooth alpha transitions.
Par Winzell
2007-10-29 16:09:39 +00:00
7adc0b51f5
Let our clarification not be a blatant lie.
Par Winzell
2007-10-29 16:02:34 +00:00
17d64726a4
Clarify nature of argument.
Par Winzell
2007-10-29 15:08:21 +00:00
618e688aab
Nix unnecessary cast and unused compare function.
Dave Hoover
2007-10-26 22:55:49 +00:00
cbe348db9a
Fixed warning messages.
Michael Bayne
2007-10-26 20:17:30 +00:00
ee10bb11ed
Extract FileResourceBundle into a separate subclass and hide it away from the rest of the world.
Michael Bayne
2007-10-26 20:08:38 +00:00
ecc173d6ad
Revamped image loading such that the ResourceManager handles loading images given a resource path so that it can be smart about loading from files versus streams depending on what works based based on where the resources are coming from. Also moved FastImageIO into com.threerings.resource to avoid a dependence on com.threerings.media in resource.
Michael Bayne
2007-10-26 19:50:53 +00:00
3e47134b06
Eclipse metadata
Charlie Groves
2007-10-26 18:37:15 +00:00
0f98f64a9a
If we want to use fancier SPI things (such as the stuff to trivially let us play oggs), we need to jump through slightly more hoops with our audio. Also, bumping up LINEBUF_SIZE appears to clear up some general issues with linux playback being worse than other platforms, but definitely solves issues where playing ogg turned into a bowl of rice krispies on all platforms.
Dave Hoover
2007-10-23 00:08:22 +00:00
3f54473d60
Accept a text format to use, so the button can match the UI it appears in.
Par Winzell
2007-10-21 21:35:25 +00:00
1ebd28a450
Little bit of widening, type safety, and flagging overrides.
Dave Hoover
2007-10-17 23:34:32 +00:00
8e7997a061
Fixed a bunch of deprecated bits and added some type-safety.
Michael Bayne
2007-10-17 21:55:59 +00:00