Mike Thomas
96cf235838
Make a few bits in the AS MisoScenePanel more extensible...
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@960 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-16 05:53:24 +00:00
Mike Thomas
0b55ca7817
This is kinda a magical number anyway but it appears I need a little more buffer for some of the taller sprites in question.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@959 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-16 00:24:24 +00:00
Mike Thomas
a462e54e46
Fix a bug where we were finishing resolution of the entire scene multiple times if some blocks were basically already resolved.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@957 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-15 21:30:20 +00:00
Mike Thomas
c26ce87830
When we move the scene, we need to wait a tick for the blocks to get in place before we move ourselves. Otherwise we get exciting blank regions.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@956 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-15 20:44:12 +00:00
Mike Thomas
7e88fb825b
If we're in the middle of trying to load up one of our files, don't go and do it again, instead wait til it's done and just hear about it then.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@955 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-15 20:37:54 +00:00
Mike Thomas
3d70c731a5
Get AS fringing actually working. We end up with a double-layer of sprites on the base tiles for the background as one and all the fringing as another. This is definitely pretty slow in the debug player, so still need to track down what's spending all that time.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@954 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-15 19:03:55 +00:00
Ray Greenwell
6a064af9dc
Declare the return type for these functions.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@953 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-14 19:38:01 +00:00
Mike Thomas
f7befa1fae
Working with the callbacks to be able to translate images is way more exciting than I really appreciate. But hey, this theoretically should be happier now.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@950 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-13 23:43:41 +00:00
Mike Thomas
6987d008e2
Let the tile data pack cache images so we aren't reloading them for various individual tiles within the image. Also, a couple minor efficiency improvements elsewhere.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@949 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-13 22:40:07 +00:00
Mike Thomas
263cc28f99
First checkpoint commit of fringing in AS. This still needs testing and some callback-wrangling related to getting tile images.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@947 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-13 06:08:25 +00:00
Mike Thomas
13b74c92a1
Colorization's range makes far more sense as inclusive rather than exclusive. In particular, it means if you have a color-class with a range of 0.0,0.0,0.0 it will match exactly the target color, which is surely what you meant for it to do.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@946 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-12 21:10:52 +00:00
Mike Thomas
c483d58683
If we have tiles just off the bottom they can stick up into our screen.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@945 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-10 00:58:02 +00:00
Mike Thomas
e00b8be8d4
We need a separate bitmap because we can only include each bitmap once in the window, but we can go ahead and share the underlying data.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@944 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-10 00:13:50 +00:00
Mike Thomas
c65ee0c562
Let's reorganize our scene tiles into SceneBlocks that we can load and unload as chunks as we move our view around the scene. If this sounds familiar, it's because you've been reading MisoScenePanel.java.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@943 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-09 23:15:20 +00:00
Mike Thomas
141901b2af
The TileUtil.getTileHash function's method for computing a seed was resulting in a lot of very non-random looking vertical and horizontal lines of the same tile, especially around the origin. (0^0 == 1^1 == 2^2 etc) So, let's bit-shift x to make it appear more random.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@942 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-09 00:29:56 +00:00
Mike Thomas
64bbf9f9d8
Rather than loading all the base tiles at once (or really, all the ones in an arbitrary region), we'll load only the ones on-screen. And then if we scroll around, we'll load the others we need.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@941 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-09 00:18:06 +00:00
Mike Thomas
78f64d2c66
We can just take this out entirely for now - I really don't know why it's not finding this, I guess it must not be getting exported to the as3isolib swc even though it's in the source.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@940 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-08 23:43:01 +00:00
Andrzej Kapolka
6abbcfc639
Fix the Shared Libraries build. It looks like the version of as3isolib in
...
extlibs needs to be updated.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@939 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-08 23:19:34 +00:00
Mike Thomas
4fba468590
Change how the Miso view handles the time when we're waiting to load the tilesets - show a loading screen of some type instead of showing the semi-transparent blocks.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@938 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-08 21:53:56 +00:00
Mike Thomas
da88a42716
Use a new, fancy version of the Iso lib scene layout renderer that takes into account a render-priority for use in handling overlapping iso objects. This may want some additional optimization in the future, but we'll see if that's really required.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@937 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-08 17:05:10 +00:00
Mike Thomas
1254841995
Second pass on AS recoloring, fixed a bunch of bugs and tied to tiles/tilesets.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@936 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-07 18:04:52 +00:00
Dave Hoover
91b0a812ba
Line ending happy fun times
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@935 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-06 17:28:12 +00:00
Mike Thomas
75f00f82ec
Checkpoint commit to getting the png recolor code into nenya. This still needs testing and such.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@934 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-03 01:05:08 +00:00
Mike Thomas
e3c79a6be8
First pass at getting miso working with actual tiles and tileset data.
...
Still to do:
- Handle tile priorities in ISO sorting.
- Handle recoloring tiles (this may result in annoyingly significant changes to Tile/TileSet API)
- Dynamically loading sections rather than loading all the tiles of a scene.
- Better handling of the state where the scene's not yet loaded.
- Portals.
- Dynamic sizing of the MisoScenePanel
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@932 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-01 22:27:37 +00:00
Dave Hoover
ca9e1aa730
That should be private.
...
If it's public, we try to shadow it in a subclass & wind up
still getting THIS one.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@929 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-06-18 23:40:17 +00:00
Mike Thomas
e42ebae867
It's not drawing the real tile/art assets yet, but handles enough of the model correctly to draw boxes for each base/object tile.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@928 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-06-16 22:56:48 +00:00
Mike Thomas
2f634e3a60
Port of the miso scene model and related bits (so, data only, no rendering of any kind yet).
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@923 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-06-08 01:48:12 +00:00
Dave Hoover
72bc6a4898
Some more copyrights I'd missed
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@870 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-01-05 22:12:26 +00:00
Jamie Doornbos
faa3315d7d
Return the most derived type for the box versions instead of Container. copy&paste error.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@860 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-10-26 20:54:16 +00:00
Jamie Doornbos
ad67558798
Some more useful methods for FlexUtil for creating layout containers and wrappers inline.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@859 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-10-26 20:52:04 +00:00
Ray Greenwell
292ca25d5a
MethodQueue -> DelayUtil.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@858 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-10-21 21:49:30 +00:00
Ray Greenwell
dc2cbcf8f7
Use new Maps factory.
...
Does anyone care about this crappy class?
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@852 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-08-24 02:55:11 +00:00
Ray Greenwell
502701a32b
Bugfix.
...
When a menu is popped up but contains no items, the listData is null
(rather than empty). Special!
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@850 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-08-18 23:08:20 +00:00
Ray Greenwell
d8ae0c7877
Update to match change to ChatDisplay interface.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@847 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-08-15 00:16:07 +00:00
Ray Greenwell
6194a1114f
Colors are uints.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@844 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-08-03 22:12:52 +00:00
Michael Bayne
fc4792d5cd
Nixed the Flash utilities (which moved to flash-utils) and wired up a
...
dependency on same. The repackaged classes are going to break everything, but
I'll go through and fix the big stuff and smaller projects can languish or get
with the times.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@839 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-07-21 21:24:07 +00:00
Ray Greenwell
9c4173fd8b
- In flash 10, oh yay, the mouseTarget might be set to null for security
...
reasons.
- While I was in there, I renamed the method to createCommandContextMenuItem,
since that's more what it is.
- Removed the silly-ass option to make the menu item invisible. It was there
because ContextMenuItem has it, but how about you just don't add the item?
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@820 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-05-13 23:18:48 +00:00
Ray Greenwell
338d4eb567
Yep, this fixed the problem.
...
Rejoice and comment it.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@816 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-05-08 02:04:12 +00:00
Ray Greenwell
516b5fbbb6
On production, in an embed, I can't click the chat widget during
...
the voting phase of LOLcaptions.
Clicking a button and then the text field works, so it's some
sort of funky focus issue. Try this.
Unable to duplicate on my local server, so I'll just recheck to see
if this works after the next release.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@815 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-05-06 18:54:59 +00:00
Ray Greenwell
e717a07ad7
Minor formatting.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@814 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-05-04 22:07:09 +00:00
Ray Greenwell
34153b66aa
Allow a trigger button to be set.
...
- When the menu hides, if the trigger is a toggle, it will be de-selected.
- If the menu is up and you mouseDown on the trigger, it will supress the menu
from re-popping by blocking the CLICK that comes on the trigger.
Jesus this was complicated to get right. For a while I was trying stuff
with MethodQueue, but we react to the MOUSE_DOWN and the CLICK doesn't
get generated until some time later.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@813 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-05-04 00:33:59 +00:00
Ray Greenwell
3f18d80fdf
Let's make all CommandMenus variableRowHeight.
...
- What's the harm in it? Does it cause menu to do more calculation?
What the fuck gus, they should have only implemented one code path and KISS.
- it seems to be necessary when using separators. They are slim. When not
used in a menu with separators, the separators are these hulking beasts.
- it seems that when a submenu is added, things are going variable anyway.
So: consistency.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@809 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-04-16 21:11:03 +00:00
Tom Conkling
a4f52c9959
ColorUtil.getHue()
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@808 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-04-16 19:17:08 +00:00
Ray Greenwell
148be9c17e
Fix using an already-instantiated icon in the addTitle() method.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@807 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-04-16 01:53:40 +00:00
Ray Greenwell
05cbe9db64
Add support for titles in menus.
...
Added an addTitle() convenience method.
Unfortunately, styling the background of the title either
impossible or so deep down the rabbit hole... deeper than this???
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@806 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-04-16 01:42:48 +00:00
Ray Greenwell
73954bafc5
No need to cast to DisplayObject to get these methods and properties.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@805 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-04-15 01:30:55 +00:00
Ray Greenwell
6d179d6ad2
Bugfix: fix y position of a submenu on an upwards-popping menu.
...
When transforming from row coords to global coords, don't use a point
in the row's parent's coords.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@804 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-04-15 01:22:36 +00:00
Ray Greenwell
4af549a7e4
Added getArg(), mainly so that it can be used when dispatching
...
and overridden in subclasses.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@802 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-04-02 18:37:41 +00:00
Tom Conkling
e9a797fef2
Line wrapping and line ending cleanup
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@800 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-03-31 22:29:18 +00:00
Michael Bayne
d5c9e38c34
More asdoc fixes.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@796 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-03-30 23:04:54 +00:00