Commit Graph

186 Commits

Author SHA1 Message Date
Nathan Curtis e7c72867e5 show the standard hand cursor when hovering over any CommandButton
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@186 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-05 22:02:31 +00:00
Mike Thomas 3320ab34cd We specify an Arcing path in terms of a start position and various parameters. It's useful to be able to ask the resulting path where that path ended, especially if we want to create another path starting from that new end point.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@185 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-05 20:24:47 +00:00
Ray Greenwell 3a6d0d0972 Extend the flexlib scrolling menu.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@184 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-03 17:06:16 +00:00
Ray Greenwell e976920747 Removed. The scrolling menus are now part of flexlib.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@183 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-03 17:06:02 +00:00
Ray Greenwell a7c6725418 Flexlib version .1.6
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@182 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-03 17:05:16 +00:00
Ray Greenwell 05b02ffc5a Log something when we unload media.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@181 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-23 21:56:26 +00:00
Andrzej Kapolka 33c0d7f8a5 Added a visitor for geometry batches.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@180 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-22 20:55:51 +00:00
Ray Greenwell fd665f3f83 - Changed to display the text "fps: ", followed by the frame rate to only
2 decimal places.
- Size our width accurately.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@179 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-22 19:17:53 +00:00
Andrzej Kapolka 89e7c41c2e Check for successful shader linkage, returning null if there was an
error.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@178 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-21 21:15:53 +00:00
Mark Johnson 9ed8c648ac Allow createDisplay to throw a JmeException
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@177 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-21 18:26:02 +00:00
Ray Greenwell 52a53ab1e9 Cope with non-Loader media objects that have set up their own masks.
God, what a disaster. I'd say the right thing to do would be to add the
mask directly to the media container, but we rely in a few places on being
able to easily decorate the media container by winging other objects off
the edges, and we don't want to just create one mask that's big enough for
the user media as well as our decorations (because then malicious user
media could alter what the user perceives as our decorations).

Perhaps the right thing to do is make MsoySprite not be a subclass
of MediaContainer, but contain one. That's a refactor I won't be
rabbit-holing right now, thankyou.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@176 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-21 01:04:49 +00:00
Ray Greenwell 68be6fbe7d Oooh. I had to do the trick of filling in the bounds with transparent
pixels so that I'd receive mouse clicks. While contemplating how bitchy
to be in my check-in comment, I wondered why I hadn't needed this when
the video was hosted inside a MediaContainer. It occurred to me that perhaps
the mask was helping, and sure enough: a sprite's mask helps define the
bounds of the sprite for mouse event purposes.

That's really good to know. I'll have to experiment further.

So: set up a mask on the VideoDisplayer, for no other reason than to
be informed of mouse events in all cases.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@175 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-20 21:21:24 +00:00
Ray Greenwell 920a9df3ac Allow a function to be specified here, too.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@174 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-20 03:47:11 +00:00
Mark Johnson a75658d7b0 Small change to make it possible to intercept window closing actions (in
case we want to do something other than close the application at that 
time).


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@173 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-19 23:11:56 +00:00
Ray Greenwell 0b8e4cf22a - Moved CommandMenu's callback handling to CommandEvent.
- Allow CommandButtons to be set up with callback too. That's much
  easier than adding a mouse listener, bla bla.
- Cleaned up CommandMenu's grabbing of menu properties.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@172 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-16 21:57:44 +00:00
Ray Greenwell 4fb21a01a9 Comment fixup.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@171 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-15 22:30:47 +00:00
Ray Greenwell f53a619edd Siner! The heart of the butterfly...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@170 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-15 22:26:49 +00:00
Ray Greenwell 7d2c156174 Don't steal focus from components implementing yon new interface.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@169 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-13 18:49:42 +00:00
Mike Thomas 0777cc7591 JComboBoxes shouldn't have their focus stolen either, you can type into those to set the value.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@168 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-13 18:20:16 +00:00
Mike Thomas 7bfc08c0b8 Tweak recolor tool to sort recolored images by color IDs.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@167 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-13 04:54:33 +00:00
Ray Greenwell f475b23fb4 Clean up my comment, this is in a public API (and my comment wasn't helpful).
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@166 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-13 01:18:04 +00:00
Ray Greenwell af009cae73 A container that holds a slider (that you've set up) and a label showing
the slider value.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@165 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-13 01:13:56 +00:00
Ray Greenwell 1013a04c5c Don't rely on parentChanged().
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@164 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-12 21:52:28 +00:00
Ray Greenwell 83f2851ed1 Base class for animations that all get updated simultaneously each frame.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@163 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-06 00:56:17 +00:00
Ray Greenwell 1be723cbd5 This is general purposeish and should be here.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@162 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-03-02 00:39:00 +00:00
Ray Greenwell 8e791eb994 Flash components we've made, display-related utils.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@161 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-28 22:50:05 +00:00
Andrzej Kapolka 6e7b1741ff Added the ability to add translations on a per-component-instance basis.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@160 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-28 21:51:47 +00:00
Andrzej Kapolka dc4b721198 Added a method to create a shader state using Files and preprocessor
definitions.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@159 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-26 19:33:01 +00:00
Michael Bayne b6f5317ad2 More header patrol.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@158 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-24 00:38:17 +00:00
Mark Johnson 9e30c0be4b When unpacking, tell the observer we've started so that the client can display something to
the user at the start, rather then after the first bundle has completed.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@157 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-19 18:26:57 +00:00
Andrzej Kapolka a09600c969 Disable fog on meshes using additive blending.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@156 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-17 00:10:03 +00:00
Michael Bayne a0a1f88278 Fix the build.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@155 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-11 02:17:36 +00:00
Andrzej Kapolka 1af5a69266 Moved the code for registering extensions and creating instances to
StreamDecoder.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@154 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-09 23:18:40 +00:00
Andrzej Kapolka fc5459fb7d Fixed mp3 playing, refactored to avoid duplicating code.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@153 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-09 02:10:32 +00:00
Michael Bayne ea9f4d481e Non-functional MP3 playing support.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@152 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-08 19:04:59 +00:00
Andrzej Kapolka 15a4d1d075 Use apply, rather than load, to ensure that JME remembers the current
texture state.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@151 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-07 23:52:11 +00:00
Michael Bayne 8df7f7e0b3 Support (but don't require) compiling to a custom destination directory.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@150 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-07 18:44:17 +00:00
Michael Bayne aa9f74eed8 Use equals() to assuage code analysis tools that don't know that we assign
localType in the local VM and are careful to use the exact same instance.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@149 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-06 06:05:27 +00:00
Dave Hoover 7a9b36f33e Out out, damned question marks.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@148 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-05 21:22:21 +00:00
Ray Greenwell 26fe6018ab Momma said delete that cruft.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@147 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-03 01:16:56 +00:00
Ray Greenwell 8a063533cf We use the wee arrows for scrolling, so turn off the scrollbar.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@146 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-03 01:14:53 +00:00
Mike Thomas 9006af28b9 Some convenience functions for getting color information entirely by name.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@145 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-03 00:22:14 +00:00
Ray Greenwell a2da7a8629 Rewrote the comment in English.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@144 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-02 19:53:47 +00:00
Ray Greenwell 7ff794343c Moved these here from inside metasoy.
Grid changed into GridUtil.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@143 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-02 19:44:04 +00:00
Andrzej Kapolka dddf409ad7 Fixed NPE.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@142 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-02 01:36:17 +00:00
Mark Johnson a32f3a65e5 The % operator in Java is not a modulo operator but a remainder
operator.  As such, the result can be negative.  I've added a check to 
prevent our next frame index from becoming negative.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@141 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-01 23:01:46 +00:00
Andrzej Kapolka a8e905f419 Added "emissive" and "additive" flags for model bits.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@140 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-01 22:48:03 +00:00
Andrzej Kapolka 7f36e60353 Added a translation controller.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@139 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-01 21:54:53 +00:00
Andrzej Kapolka 60abc93638 Specify the default repeat type as a parameter; model animations should
not loop by default.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@138 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-01 20:03:00 +00:00
Andrzej Kapolka 7cdebe1912 Added a billboard model controller.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@137 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-01 19:31:55 +00:00