Commit Graph

14 Commits

Author SHA1 Message Date
Michael Bayne cd51c78619 Added support for using sprites that are fixed in relation to a
potentially scrolling view. Also added a means for non-sprites and
animations to hear about view scrolls.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3209 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-11 23:52:43 +00:00
Michael Bayne 1f8c4578b7 LGPLed the library. Hello world.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3098 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-27 02:12:55 +00:00
Michael Bayne d17e58a924 Added support for letting a media know when it's about to be ticked for
the first time. This is the only indication that things are really
underway and it's a fine time to do things like play sounds that are
synchronized with that media and do other fun stuff.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3084 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-18 01:33:32 +00:00
Michael Bayne 2e69e6770e Log a stack trace when this happens.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2861 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-11-22 19:57:03 +00:00
Michael Bayne 357e17d7c7 Because we cleverly do nothing in paint() if there are no dirty regions,
we have to go out of our way to let the abstract media managers know when
tick() is all done and paint() *may* be called. This way they can properly
clear out their tick stamps because they know that no more media fooling
around will happen between the call to willPaint() and the call to paint()
(which used to be called renderMedia() but is now paint() to remain in
line with all the other places were we tick() and then paint()).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2508 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-30 20:48:38 +00:00
Michael Bayne 3cfccff0c6 The revamp that made me nervous about our rendering performance but turned
out to be not at all related.

Out with the wacky system of events that require the observers to
instanceof to the high heavens. Now we just call sensible methods directly
on the observers who care and not on those who don't.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2503 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-30 00:43:54 +00:00
Michael Bayne 025cb91668 Ensure that any media inserted between the call to tick() and the call to
renderAllMedia() is ticked in all circumstances and ticked exactly once.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2411 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-15 21:27:22 +00:00
Michael Bayne bce70d5b43 Added isManaged().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2190 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-18 22:25:30 +00:00
Michael Bayne fe2364e01a One step back, two steps forward. Fixed the media manager so that once
again, things added on the current tick are ticked and painted on that
tick, but cleaned things up so that we don't choke if things are added or
removed from funny places.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2187 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-18 20:14:03 +00:00
Michael Bayne 4d764ad42a We now copy abstract media objects to a separate array when ticking them
so that we can ensure that only tick()ed media will be painted and so that
we aren't affected by additions and removals that happen during tick().


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2182 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-18 03:14:29 +00:00
Walter Korman 3807953a55 Added MediaPanel.clearAnimations(), fixed up comments and removed
unnecessary SpriteManager.clearSprites().


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2069 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-15 23:12:37 +00:00
Walter Korman 875484b252 Note when we're ticking so that we can tick any media that's inserted
during a call to tick() so that if it's subsequently painted we can be
assured that it's been ticked at least once previously.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1993 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-26 02:47:04 +00:00
Michael Bayne ece79bc86c Use observer lists for our observers instead of array lists.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1903 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 20:50:42 +00:00
Ray Greenwell a0730067ec Pulled out gobs of Sprite/Animation functionality into AbstractMedia.
Pulled out gobs of SpriteManager/AnimationManager functionality into
  AbstractMediaManager.
The big change: sprites can have their render order fine-tuned like
animations.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1787 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-08 21:03:37 +00:00