Commit Graph

201 Commits

Author SHA1 Message Date
Andrzej Kapolka 488d47262b Where possible, merge meshes with identical attributes.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@201 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-18 21:06:08 +00:00
Michael Bayne 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.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@200 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-16 22:55:35 +00:00
Ray Greenwell 8c01691397 Finished off FilterUtil.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@199 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-14 03:42:11 +00:00
Michael Bayne c8ee262b7f Added popLeftwards. Only really useful for menus without submenus.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@198 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-14 01:45:04 +00:00
Ray Greenwell a3b441fcaa Partial implementation of FilterUtil.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@197 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-14 00:17:18 +00:00
Ray Greenwell 97a7ebcab3 Removed import that turned out not to be necessary. I was so prepared
for this to be complicated!


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@196 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-12 23:54:04 +00:00
Ray Greenwell 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 ...

Made a little helper class that can be used to block the extra DOWN events.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@195 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-12 23:49:29 +00:00
Ray Greenwell 54fd9e0df4 Moved Mike's artvatar Button utility class here, make it a little more customizable.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@194 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-12 22:03:04 +00:00
Nathan Curtis ab19cb897e Do something sensible when people set the width on this control
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@193 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-11 22:11:58 +00:00
Robert Zubeck 2291510909 A Shape is lighter than a Sprite.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@192 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-10 00:27:13 +00:00
Robert Zubeck 1eef72d9da Adding a mask and changing some colors inside the ScrollBox.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@191 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-09 23:31:22 +00:00
Michael Bayne 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.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@190 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-08 02:42:16 +00:00
Dave Hoover deec0b10b8 Let's do keyword substitution on the actionscript; it's got all those purty $Id$ tags, too.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@189 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-07 00:25:46 +00:00
Dave Hoover 4b933b4379 Keyword substition.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@188 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-07 00:22:24 +00:00
Jonathan Le Plastrier a6fca4c25e Kill off the .cvsignore files.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@187 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-06 23:09:28 +00:00
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