Commit Graph

592 Commits

Author SHA1 Message Date
Dave Hoover 56df6f1913 Truth in commenting: the DirectoryTileSetBundler isn't rewriting things in our own image format
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@392 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-10 19:55:45 +00:00
Dave Hoover 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. 

This cuts my tileset building from 42 seconds to 22 when no files have changed 
(as opposed to 4 when it was skipping it altogether, but winding up with a hosed 
tsbundles.dat), so it's at least a decent bit better.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@391 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-10 19:51:24 +00:00
Dave Hoover 9458c0704a Truth in commenting: don't claim we can't trim something and then immediately turn around and trim it.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@390 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-10 19:27:49 +00:00
Dave Hoover 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.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@389 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-10 01:45:15 +00:00
Michael Bayne 8c17ececc1 Guess what we don't want? The ant runtime jars in our classpath.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@388 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-08 22:25:37 +00:00
Michael Bayne 73780534c3 Only build our native bits on "unix" operating systems.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@387 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-08 22:25:22 +00:00
Tom Conkling 7d603e2cda DisablingButton forces a visual update after a state change is made
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@386 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-03 01:27:52 +00:00
Michael Bayne 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.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@385 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-20 03:23:04 +00:00
Ray Greenwell efca36dec5 Redispatch the INIT event when we get it.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@384 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-19 21:13:05 +00:00
Michael Bayne c5686ed0c4 We need JL or the openal package won't build.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@383 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-18 21:51:47 +00:00
Michael Bayne 73b8dd0d48 Nix stray crowd dependency. No one uses this interface.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@382 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-18 00:19:18 +00:00
Ray Greenwell 909c1f4189 Use Util.init() to initialize TextFields and TextFormats.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@381 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-13 23:26:10 +00:00
Charlie Groves ce1649d79b Don't adjust the image path to end in .raw since we're actually making .pngs
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@380 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-13 19:17:42 +00:00
Charlie Groves 60cb064c21 Vestigial Random
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@379 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-13 18:55:30 +00:00
Charlie Groves 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
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@378 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-13 18:51:48 +00:00
Mike Thomas 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.
Instead, let's directly check the java version number.  Oh, the hackery...  (The check-versions functionality should perhaps be moved to RunAnywhere in samskivert, but this should work for now.)



git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@377 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-13 03:29:19 +00:00
Mike Thomas 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.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@376 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-13 00:48:34 +00:00
Mark Johnson 807165e6fc Make sure to perform the path completion steps if starting the path causes it to complete.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@375 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-12 19:40:14 +00:00
Mark Johnson 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).


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@374 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-12 19:12:54 +00:00
Ray Greenwell cb704de5fa Pet peeve: avoid "if (true) then true else false" code.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@373 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-12 18:20:34 +00:00
Dave Hoover 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.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@372 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-12 07:55:51 +00:00
Robert Zubeck accd0a0de7 Added distance function that can handle different types of spaces.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@371 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-12 03:04:33 +00:00
Tom Conkling f8b2cb19ec gee, maybe i should test my code before committing
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@370 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-12 02:00:58 +00:00
Tom Conkling 63764b85f2 unused member variable cleanup
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@369 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-12 01:58:24 +00:00
Tom Conkling dc0ae2a3e8 created DisablingButton, which extends SimpleButton and adds support for a disabledState
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@368 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-12 01:55:48 +00:00
Ray Greenwell a918c3e9e8 Adapt mx.effects.easing or Tweener functions to be used for paths.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@367 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-10 00:30:16 +00:00
Ray Greenwell fdd85f3c2b I'm not sure how a DisplayObjectContainer has a null child, but I'm seeing it.
Cope.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@366 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-05 21:17:36 +00:00
Ray Greenwell 4845965208 Document the hueShift parameter.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@365 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-04 22:31:12 +00:00
Par Winzell 9f3092e63a Let our functions escape the bondage of integers and vary freely with time.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@364 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-04 19:22:21 +00:00
Par Winzell 0ed263a6ee More silly.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@363 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-04 19:19:05 +00:00
Par Winzell 356c78e6de Oh oops, thanks Ray, this should definitely be a Number.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@362 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-04 19:06:45 +00:00
Par Winzell bc8d005179 My past as a filthy foreigner haunts me.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@361 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-04 18:58:02 +00:00
Par Winzell ce9204d858 What's a hermite spline without derivates? I suggest we add getSlope() or something like it to the interface/superclass; thoughts?
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@360 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-04 16:42:28 +00:00
Dave Hoover 8f2700dcc8 Keyword substitution.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@359 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-03 21:08:33 +00:00
Ray Greenwell 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.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@358 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-30 19:17:02 +00:00
Ray Greenwell 2aca740d15 Changed KeyRepeatBlocker into KeyRepeatLimiter, which can be used to block
key repeats, or set the repeat rate to any desired value.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@357 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-29 23:01:40 +00:00
Ray Greenwell 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.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@356 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-29 02:14:11 +00:00
Ray Greenwell b9fce610da CommandLinkButton, just like CommandButton.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@355 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-29 02:08:37 +00:00
Michael Bayne b51e484605 Unwrapped.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@354 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-27 22:52:09 +00:00
Michael Bayne d0f8f1e1d0 Turns out people had extended Sprite and added their own Comparable
implementation, so let's not stick a fork in that.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@353 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-22 06:45:42 +00:00
Ray Greenwell db23c89ec0 Don't use parentChanged() to track whether we're onscreen or not,
it's unreliable.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@352 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-21 19:47:32 +00:00
Mike Thomas 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.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@351 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-15 21:56:34 +00:00
Mike Thomas c68df0bab2 If the directory is missing/empty, don't fail to get the last modification date.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@350 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-15 18:28:20 +00:00
Ray Greenwell f922f965f1 Added utility methods: findInHierarchy and dumpHierarchy.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@349 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-14 20:11:10 +00:00
Mike Thomas d6b01cab7a Enable keyword substitution on these new files.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@348 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-13 19:24:53 +00:00
Mike Thomas 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.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@347 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-13 18:29:49 +00:00
Mike Thomas 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.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@346 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-13 17:49:05 +00:00
Ray Greenwell d5315690a6 Log -> com.threerings.util.Log
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@345 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-13 09:30:50 +00:00
Michael Bayne 3ea4b8b42e Don't need net or dobj.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@344 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-13 02:36:34 +00:00
Mike Thomas 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
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@343 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-13 01:12:18 +00:00