b77c72220e
Rather than break out a general purpose matrix algebra class that may not be needed anywhere else, just compress those huge unneccessary functions into a couple of sensible loops for this specific case.
Nathan Curtis
2007-04-23 22:04:03 +00:00
f6060d95af
bring the functionality from UD's HueFilter into FilterUtil. I need to test this with UD to make sure it works, and then these matrix functions should probably be put into a separate lib class (perhaps a new narya com.threerings.util.Matrix?)
Nathan Curtis
2007-04-23 18:44:02 +00:00
54290011ae
Properly document our event.
Ray Greenwell
2007-04-19 23:12:53 +00:00
488d47262b
Where possible, merge meshes with identical attributes.
Andrzej Kapolka
2007-04-18 21:06:08 +00:00
f7cb60407e
Nix the flexlib.swc from Nenya. We're going to need this in Whirled as well now and we don't have a fancy system for enumerating shared dependencies like we do for Java, and such a thing wouldn't really work or make sense given the way ActionScript is compiled anyway.
Michael Bayne
2007-04-16 22:55:35 +00:00
8c01691397
Finished off FilterUtil.
Ray Greenwell
2007-04-14 03:42:11 +00:00
c8ee262b7f
Added popLeftwards. Only really useful for menus without submenus.
Michael Bayne
2007-04-14 01:45:04 +00:00
a3b441fcaa
Partial implementation of FilterUtil.
Ray Greenwell
2007-04-14 00:17:18 +00:00
97a7ebcab3
Removed import that turned out not to be necessary. I was so prepared for this to be complicated!
Ray Greenwell
2007-04-12 23:54:04 +00:00
a8a3295f26
Conveniently, it appears that the extra events generated by key repeat are all KEY_DOWN events. So holding down a key in flash generates: DOWN, DOWN, DOWN, ... UP. In Java, we get DOWN, UP, DOWN, UP ...
Ray Greenwell
2007-04-12 23:49:29 +00:00
54fd9e0df4
Moved Mike's artvatar Button utility class here, make it a little more customizable.
Ray Greenwell
2007-04-12 22:03:04 +00:00
ab19cb897e
Do something sensible when people set the width on this control
Nathan Curtis
2007-04-11 22:11:58 +00:00
2291510909
A Shape is lighter than a Sprite.
Robert Zubeck
2007-04-10 00:27:13 +00:00
1eef72d9da
Adding a mask and changing some colors inside the ScrollBox.
Robert Zubeck
2007-04-09 23:31:22 +00:00
47d8ed1d63
Allow a custom dispatcher to be provided because the default (dispatching on the stage) only routes commands to the global controller, bypassing the controller for the current place view.
Michael Bayne
2007-04-08 02:42:16 +00:00
deec0b10b8
Let's do keyword substitution on the actionscript; it's got all those purty $Id$ tags, too.
Dave Hoover
2007-04-07 00:25:46 +00:00
4b933b4379
Keyword substition.
Dave Hoover
2007-04-07 00:22:24 +00:00
a6fca4c25e
Kill off the .cvsignore files.
Jonathan Le Plastrier
2007-04-06 23:09:28 +00:00
e7c72867e5
show the standard hand cursor when hovering over any CommandButton
Nathan Curtis
2007-04-05 22:02:31 +00:00
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.
Mike Thomas
2007-04-05 20:24:47 +00:00
3a6d0d0972
Extend the flexlib scrolling menu.
Ray Greenwell
2007-04-03 17:06:16 +00:00
e976920747
Removed. The scrolling menus are now part of flexlib.
Ray Greenwell
2007-04-03 17:06:02 +00:00
a7c6725418
Flexlib version .1.6
Ray Greenwell
2007-04-03 17:05:16 +00:00
05b02ffc5a
Log something when we unload media.
Ray Greenwell
2007-03-23 21:56:26 +00:00
33c0d7f8a5
Added a visitor for geometry batches.
Andrzej Kapolka
2007-03-22 20:55:51 +00:00
fd665f3f83
- Changed to display the text "fps: ", followed by the frame rate to only 2 decimal places. - Size our width accurately.
Ray Greenwell
2007-03-22 19:17:53 +00:00
89e7c41c2e
Check for successful shader linkage, returning null if there was an error.
Andrzej Kapolka
2007-03-21 21:15:53 +00:00
9ed8c648ac
Allow createDisplay to throw a JmeException
Mark Johnson
2007-03-21 18:26:02 +00:00
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).
Ray Greenwell
2007-03-21 01:04:49 +00:00
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.
Ray Greenwell
2007-03-20 21:21:24 +00:00
920a9df3ac
Allow a function to be specified here, too.
Ray Greenwell
2007-03-20 03:47:11 +00:00
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).
Mark Johnson
2007-03-19 23:11:56 +00:00
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.
Ray Greenwell
2007-03-16 21:57:44 +00:00
4fb21a01a9
Comment fixup.
Ray Greenwell
2007-03-15 22:30:47 +00:00
f53a619edd
Siner! The heart of the butterfly...
Ray Greenwell
2007-03-15 22:26:49 +00:00
7d2c156174
Don't steal focus from components implementing yon new interface.
Ray Greenwell
2007-03-13 18:49:42 +00:00
0777cc7591
JComboBoxes shouldn't have their focus stolen either, you can type into those to set the value.
Mike Thomas
2007-03-13 18:20:16 +00:00
7bfc08c0b8
Tweak recolor tool to sort recolored images by color IDs.
Mike Thomas
2007-03-13 04:54:33 +00:00
f475b23fb4
Clean up my comment, this is in a public API (and my comment wasn't helpful).
Ray Greenwell
2007-03-13 01:18:04 +00:00
af009cae73
A container that holds a slider (that you've set up) and a label showing the slider value.
Ray Greenwell
2007-03-13 01:13:56 +00:00
1013a04c5c
Don't rely on parentChanged().
Ray Greenwell
2007-03-12 21:52:28 +00:00
83f2851ed1
Base class for animations that all get updated simultaneously each frame.
Ray Greenwell
2007-03-06 00:56:17 +00:00
1be723cbd5
This is general purposeish and should be here.
Ray Greenwell
2007-03-02 00:39:00 +00:00
6e7b1741ff
Added the ability to add translations on a per-component-instance basis.
Andrzej Kapolka
2007-02-28 21:51:47 +00:00
dc4b721198
Added a method to create a shader state using Files and preprocessor definitions.
Andrzej Kapolka
2007-02-26 19:33:01 +00:00
b6f5317ad2
More header patrol.
Michael Bayne
2007-02-24 00:38:17 +00:00
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.
Mark Johnson
2007-02-19 18:26:57 +00:00
a09600c969
Disable fog on meshes using additive blending.
Andrzej Kapolka
2007-02-17 00:10:03 +00:00
a0a1f88278
Fix the build.
Michael Bayne
2007-02-11 02:17:36 +00:00
1af5a69266
Moved the code for registering extensions and creating instances to StreamDecoder.
Andrzej Kapolka
2007-02-09 23:18:40 +00:00
fc5459fb7d
Fixed mp3 playing, refactored to avoid duplicating code.
Andrzej Kapolka
2007-02-09 02:10:32 +00:00
ea9f4d481e
Non-functional MP3 playing support.
Michael Bayne
2007-02-08 19:04:59 +00:00
15a4d1d075
Use apply, rather than load, to ensure that JME remembers the current texture state.
Andrzej Kapolka
2007-02-07 23:52:11 +00:00
8df7f7e0b3
Support (but don't require) compiling to a custom destination directory.
Michael Bayne
2007-02-07 18:44:17 +00:00
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.
Michael Bayne
2007-02-06 06:05:27 +00:00
7a9b36f33e
Out out, damned question marks.
Dave Hoover
2007-02-05 21:22:21 +00:00
26fe6018ab
Momma said delete that cruft.
Ray Greenwell
2007-02-03 01:16:56 +00:00
8a063533cf
We use the wee arrows for scrolling, so turn off the scrollbar.
Ray Greenwell
2007-02-03 01:14:53 +00:00
9006af28b9
Some convenience functions for getting color information entirely by name.
Mike Thomas
2007-02-03 00:22:14 +00:00
a2da7a8629
Rewrote the comment in English.
Ray Greenwell
2007-02-02 19:53:47 +00:00
7ff794343c
Moved these here from inside metasoy. Grid changed into GridUtil.
Ray Greenwell
2007-02-02 19:44:04 +00:00
dddf409ad7
Fixed NPE.
Andrzej Kapolka
2007-02-02 01:36:17 +00:00
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.
Mark Johnson
2007-02-01 23:01:46 +00:00
a8e905f419
Added "emissive" and "additive" flags for model bits.
Andrzej Kapolka
2007-02-01 22:48:03 +00:00
7f36e60353
Added a translation controller.
Andrzej Kapolka
2007-02-01 21:54:53 +00:00
60abc93638
Specify the default repeat type as a parameter; model animations should not loop by default.
Andrzej Kapolka
2007-02-01 20:03:00 +00:00
7cdebe1912
Added a billboard model controller.
Andrzej Kapolka
2007-02-01 19:31:55 +00:00
420140a3bc
Oh the bad choice of property names. That's not no. Also added a comment explaining why we don't care if we get a SecurityException.
Michael Bayne
2007-02-01 19:25:09 +00:00
5fe2a337c1
This needs to be done in a sandbox safe manner.
Michael Bayne
2007-02-01 19:23:35 +00:00
c69a5527b9
Don't register the resource: handler by default. It causes problems and we only want to do it in our clients. Also demoted some log messages to debug and widened.
Michael Bayne
2007-02-01 07:34:08 +00:00
f43c9208f3
Let's not create a globally shared temp directory to avoid freakout if multiple servers are running on the same host as different users.
Michael Bayne
2007-02-01 04:00:44 +00:00
fb8f4ce0a8
Fixed a bug with the texture controllers and moved some shared code into a utility class.
Andrzej Kapolka
2007-01-31 22:05:46 +00:00
d49e50db89
Cleaned up some issues: - While Menu.popUpMenu() takes a DisplayObjectContainer as a parent, it will hork unless the parent is really a UIComponent. Omit that parameter from our convenience function and allow the parent to be set to the application. - Changed show() with no args to show at the mouse location.
Ray Greenwell
2007-01-31 21:45:57 +00:00
1bdce080ae
Assume that we start at the first frame.
Andrzej Kapolka
2007-01-31 03:55:34 +00:00
1cba0183f9
Added texture translation and animation controllers.
Andrzej Kapolka
2007-01-31 03:41:26 +00:00
5ed0513644
- Added Scrollable menus, written by Doug McCune, aka Some Guy. This is the first time I've felt a real benefit to using flex. It's standard! People are fixing the deficiencies! - Have CommandMenu extend that, and Bob's your uncle!
Ray Greenwell
2007-01-31 03:18:22 +00:00
06f7f75fde
Moved CommandEvent back, update imports.
Ray Greenwell
2007-01-31 03:03:17 +00:00
76074998f4
Moved here.
Ray Greenwell
2007-01-31 02:59:09 +00:00
12f8cabd90
Config -> PrefsConfig where appropriate.
Michael Bayne
2007-01-31 00:49:05 +00:00
186327b3d1
CopyUtils has been deprecated, using IOUtils instead.
Mike Thomas
2007-01-24 21:36:24 +00:00
8bff333dd8
Fix dirty coords for our overlay so it all lines up and works. Yay! And some tabs -> spaces while I was there.
Dave Hoover
2007-01-24 21:34:51 +00:00
b2cec8efc3
On second thought, we'll take care of calling javadoc first.
Jonathan Le Plastrier
2007-01-24 02:44:32 +00:00
a06abd514d
We want our javadocs in the snapshot as well.
Jonathan Le Plastrier
2007-01-24 02:27:28 +00:00
23760740b2
Let's build our snapshot into dist/ and not use ../snapshot as our temp directory.
Jonathan Le Plastrier
2007-01-24 00:54:47 +00:00
120e9c0db9
Actually substitute keywords (these files are chock full of stale $Id$ tags)
Dave Hoover
2007-01-24 00:22:12 +00:00
360d1b92bd
Locate our jars from the NWO directory.
Michael Bayne
2007-01-20 03:58:53 +00:00
283fd15f19
Some fixes but components are still not getting properly repainted in all cases for some reason.
Michael Bayne
2007-01-20 03:58:18 +00:00
fb91fd8770
Let's have all the same convenience methods as MediaPanel.
Michael Bayne
2007-01-20 02:55:16 +00:00
81a3dd4dd9
In theory this should work (modulo some particularly fiddly bits that I'm going to have to think about), but it's totally untested. That comes next!
Michael Bayne
2007-01-20 02:35:56 +00:00
088bc4b88b
Fix initialization ordering problems in MetaMediaManager -> Sprite/AnimationManager -> AbstractMediaManager.
Michael Bayne
2007-01-20 02:10:30 +00:00
031b51419f
Widened, reordered methods, removed some old debugging cruft in preparation for adding the MediaOverlay stuff.
Michael Bayne
2007-01-20 01:21:05 +00:00
a8de5bb789
A whole bunch of refactoring to support a MediaOverlay which will allow us to render sprites and animations anywhere in the frame for those times when you just need to draw outside the lines.
Michael Bayne
2007-01-20 01:09:53 +00:00
86645aa41e
Let's remove the path controller when we cancel our move
Mark Johnson
2007-01-19 18:14:43 +00:00
0a5a13302c
Allow the clearing of the tile manager's cache.
Mike Thomas
2007-01-18 23:01:47 +00:00
154ce35b3a
When stopping animation, make sure to update the meshes if the model was outside the view frustum on the last update.
Andrzej Kapolka
2007-01-02 19:06:34 +00:00
9dadf30d2e
Widened, demoted logging to debug.
Michael Bayne
2006-12-30 01:25:57 +00:00
c3f4992328
Set the holders to null after we've reclaimed the sounds.
Mark Johnson
2006-12-22 02:16:34 +00:00
71259f2ceb
Protect from an NPE if we find no graphics yet at sprite initialization time.
Mike Thomas
2006-12-20 20:05:09 +00:00
45c75b5039
Newly built (up-to-date) version of libunsafe for FreeBSD/i386
Landon Fuller
2006-12-20 01:01:24 +00:00