Commit Graph

417 Commits

Author SHA1 Message Date
Mark Johnson 7e804e60c5 Perform a better fitting for menu's in a bounded region, so they'll position themself for
maximum visibility even if they can't fully pop up/down, left/right.  (Menu's larger than 
the bounded area will still have some issues).


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@417 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-16 01:01:14 +00:00
Robert Zubeck ba7dadba97 Angle utility functions.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@416 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-14 20:52:38 +00:00
Robert Zubeck d543a0574d Convenience function to make a vector out of two points.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@415 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-14 20:49:31 +00:00
Tom Conkling 05f6e9755a moved Vector2 from contrib.core to nenya
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@414 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-14 19:18:02 +00:00
Robert Zubeck 6a6faeed8a Vector3 API changes to unify with Vector2 (which will be joining nenya soon):
- multiply() -> scale()  - since multiplication is ambiguous in vector contexts
- added destructive versions of add/subtract/cross/etc functions 
- length now retrievable via a getter



git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@413 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-14 18:41:20 +00:00
Robert Zubeck d322b94545 Chat control's child elements can now have a different height than their container.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@412 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-13 22:34:28 +00:00
Ray Greenwell 6913ba2d08 Removed buttons, made a UI-free utility for capturing camera images.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@411 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-08 22:05:43 +00:00
Ray Greenwell f58b0bdcba clarify
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@410 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-06 01:42:10 +00:00
Ray Greenwell 7d400e45f2 - Moved common code to internal static methods in CommandButton.
- Fixed CommandButton to turn off buttonMode when disabled.
- Created CommandCheckBox.
All CommandButtons that are toggle buttons will use their 'selected' state as
their arg if they have no regular arg. CommandCheckBoxes are of course always
toggles.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@409 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-06 01:41:10 +00:00
Ray Greenwell a6e1fbe468 Made my CommandButton factory method the constructor.
I had initially been hesitant to do this because of the parameter that
can be one of two things, and the Java side of me wanted to hold
on to compile-time checking, but the convenience is too damn convenient.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@408 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-06 01:03:55 +00:00
Ray Greenwell 1fb449b30b Added a long-overdue factory method.
I'm actually going to make this the constructor, but I'm just fixing
the build now.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@407 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-02 03:57:02 +00:00
Ray Greenwell 7f93fbcd86 Extremely simple prototype camera snapshotting image sourcer.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@406 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-01 21:23:12 +00:00
Charlie Groves 6451cfffae Don't update the bundle until we're done iterating over it. Fuck if I know how this worked up until now
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@405 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-31 22:02:01 +00:00
Nathan Curtis 9748e422c7 Let the rest of the world use the FlexWrapper - this is pulled from LayeredContainer.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@404 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-28 22:57:13 +00:00
Ray Greenwell 7dbffa80cf Occam's razor.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@403 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-24 21:54:26 +00:00
Dave Hoover cc1a550a55 Oh, and roll back the compiled mac ones, too.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@402 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-18 19:51:28 +00:00
Dave Hoover 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.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@401 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-18 19:49:48 +00:00
Charlie Groves 611098c7d6 Mac version of Dave's libunsafegc
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@400 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-17 23:40:42 +00:00
Ray Greenwell 00081d774e If shutting down media that has a different url than it should, log both urls.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@399 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-17 23:34:58 +00:00
Dave Hoover 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)

Still need to hit up people to build me the shared objects on other platforms,
but the linux ones are there & working.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@398 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-17 23:10:46 +00:00
Dave Hoover f91b7714a5 Remove unneeded casts.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@397 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-17 01:26:05 +00:00
Ray Greenwell a7e975f6da Added addListeners(), rename event handler functions.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@396 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-15 23:44:53 +00:00
Dave Hoover d8367eeb6f Quick smattering of type safety to go along with other misc cleanup I've
got in progress over in yohoho.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@395 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-15 21:32:59 +00:00
Ray Greenwell 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.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@394 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-12 00:48:20 +00:00
Ray Greenwell 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.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@393 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-11 00:06:09 +00:00
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