Commit Graph

231 Commits

Author SHA1 Message Date
Dave Hoover 8d54026f63 Whitespace
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@918 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-05-14 18:57:52 +00:00
Dave Hoover 251da6cb22 Varargs
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@917 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-05-14 18:57:51 +00:00
Ray Greenwell aaddc866e8 I think I can make this class usable for what I want by simply making
the Node class public so that I can see where I came from in my Stepper.

The thread non-safety only affects callers of getConsidered(), btw.

If I wasn't pinched for time right now I'd modernize this whole thing
and remove the sucky.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@915 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-04-13 21:44:57 +00:00
Ray Greenwell 24e3afe18f Some formatting.
Whatever: this class needs a kick to the head.
Maybe I should make a new one that isn't singleton and thread-unsafe
like this one.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@914 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-04-13 20:42:26 +00:00
Ray Greenwell c1ba3f7d18 Allow a Stepper to easily be created that doesn't consider diagonals.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@913 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-04-13 00:34:04 +00:00
Ray Greenwell 69d734863c Document two gotchas. This is fucked up. Fucking A.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@912 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-04-07 22:32:57 +00:00
Mike Thomas 278696c655 Let's alphabetize those color names in the JComboBoxes.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@908 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-31 18:55:16 +00:00
Dave Hoover eb3673363e Button to save out the colorized image
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@907 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-24 22:06:16 +00:00
Dave Hoover 6d5c7af519 Log a stack trace for obscenely huge dirty regions.
If we're freaked out enough that we're carping & ignoring it, I want to
be able to actually figure out what's broken.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@906 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-24 01:08:49 +00:00
Michael Bayne 2fd8b7fbaa Some raw type cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@904 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-16 23:27:05 +00:00
Andrzej Kapolka 4145611b9c Added method to get color class by id.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@902 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-11 02:03:04 +00:00
Mike Thomas ba3be78a51 Separate out the modes of the recolor tool. There are now three modes - Using Color Class (old All Colorizations mode), Multi-Color (Specify up to 4 recolors), and Manual Recolor (old specifying target color, offsets manually mode).
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@900 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-10 21:41:41 +00:00
Mike Thomas 490dcdfd2b This was a tad broken - if an animation happened to paint before it ticked, it'd try to paint tile -1 which obviously didn't exist. This change may break any custom sequencers anyone has but seems necessary...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@899 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-04 01:39:36 +00:00
Dave Hoover c83c019a7d Varargs
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@897 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-03 19:06:02 +00:00
Mike Thomas 52e44de862 Uh.... If we've passed along our temporary/optimization member var _tbounds as a parameter to renderLayer() it's probably best if we don't then try to reuse _tbounds for something else while simultaneously attempting to use that parameter.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@896 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-03 02:06:09 +00:00
Mike Thomas 5e13f471ac Obscurers can now be told to only include changed regions in their reported obscured rectangle.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@895 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-02 23:00:10 +00:00
Dave Hoover 829f812a8a Provide those constructors, too.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@893 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-24 01:30:42 +00:00
Dave Hoover f5fc7672f4 Varags logging
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@892 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-24 01:30:41 +00:00
Dave Hoover c60e694633 Fix typo
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@891 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-24 01:30:40 +00:00
Dave Hoover 80477e64ba No, comment, that ISN'T needed
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@890 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-24 01:30:39 +00:00
Dave Hoover 5cfb8d5d0d Whitespace
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@889 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-24 01:30:38 +00:00
Dave Hoover 2fb102fd7b Convenience wrappers.
I've been doing a whole bunch of AnimationSequences and 99% of the time
it's been one of those two stupid simple cases, so make them stupid
simple to do & stop cluttering up my code with extra args to linewrap.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@888 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-18 06:42:58 +00:00
Dave Hoover dc58efd6a9 Whitespace
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@887 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-18 06:42:56 +00:00
Dave Hoover 1bd06bf2cb Whitespace
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@886 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-12 19:36:44 +00:00
Dave Hoover d815f0f41d Helper to make NinePatchMirage around a box
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@883 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-10 20:32:44 +00:00
Dave Hoover fc7e00c0d8 NinePatches to draw auto-stretchy borders
Google's Android has handy-dandy NinePatches for making a graphic that
stretches appropriately to border things, so here's my AWT
re-implementation of it.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@882 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-10 20:32:43 +00:00
Dave Hoover b68e799106 @Override gets the point across
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@881 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-10 20:32:41 +00:00
Dave Hoover fe544b0046 Whitespace
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@880 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-10 20:32:37 +00:00
Dave Hoover bb1f61957c How about I act like a civilized person with svnprops, copyright headers,
and all that?


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@879 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-08 23:57:33 +00:00
Dave Hoover a0762f36d6 Let us use a Sprite + Path as an animation
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@878 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-08 23:43:46 +00:00
Dave Hoover e760b308c1 Whitespace
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@877 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-08 23:43:45 +00:00
Dave Hoover 4610a48b23 I'd really like to make our build script blow up if we accidentally put in
duplicate colorIds, but let's at least scream & not put the new color in.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@875 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-01-21 00:38:36 +00:00
Dave Hoover fc187ae697 Remove now spurious casts
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@873 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-01-13 19:20:13 +00:00
Ray Greenwell f0eaa44cab clone() modernization.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@872 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-01-13 18:28:28 +00:00
Dave Hoover acfdd4be48 There's a whole bunch of serious overhaul and new feature work I'd love to
have the time to do to this guy, but here's a quicky that I've wanted before
that I can bolt on and make things even uglier


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@869 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-01-04 22:26:25 +00:00
Dave Hoover db71878346 Welcome to the future.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@868 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-01-04 21:47:34 +00:00
Dave Hoover d7db823fa1 I'm in ur nenya breaking ur api
We hit a wall in yohoho where we really needed 3 colors on a scene object.
Turns out that colorizations are restricted to 255 even though we stuff it
in a short, and even WE are only up to mid 50s or so with our zations, so
forcing it into a byte hopefully won't pain anybody else that happens to be
using this code.

So we add the ability to have tertiary and quaternary zations on miso objects
while keeping backwards compatability by slotting our two new bytes into 
unused space.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@867 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-12-05 00:55:49 +00:00
Dave Hoover a46c4bbb00 Some widening/vararg logging that I've had lying around for ages
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@861 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-10-29 22:28:31 +00:00
Nathan Curtis f8f9aaf47d The only place I found that uses this ant task (other than in facepirate) is in the yohoho root
build file, and this change shouldn't cause any problems there from what I can tell.  This is needed
for the hyena build in facepirate, but if it breaks things I'll revert and figure out another way
to do it.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@856 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-10-02 07:45:18 +00:00
Dave Hoover e4c91222a7 I actually have grander things I'd like to do to fancy up RecolorImage,
but as a quick diversion, move some stuff onto constants, and have it 
store a preference for the last stuff we looked at, since it's constantly
a PITA having to cruise down to the otherwise static home of your 
colorization file. Let's see how quickly the artists notice that I hit one
of their long-standing feature requests.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@854 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-08-28 21:43:27 +00:00
Dave Hoover 707ebe5e5a Prune spurious semicolons & redundant implementation declarations
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@849 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-08-17 21:46:05 +00:00
Dave Hoover ed81ddb402 I'd varargified this a while back w/o getting around to committing it.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@848 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-08-17 21:45:35 +00:00
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
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
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
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 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
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