Commit Graph

5 Commits

Author SHA1 Message Date
Chris Danford f7fc9ceaa5 remove Set/GetHidden, leave *Visible
remove hidden from ActorCommands eventually
2007-02-13 06:32:26 +00:00
Glenn Maynard e11914d4bb LoadFromNode(sDir, pNode) -> LoadFromNode(pNode) 2006-10-09 08:24:10 +00:00
Glenn Maynard c690fdcfe4 unify registration 2006-09-29 00:01:32 +00:00
Glenn Maynard f4975f1f54 simpler Lua boilerplate 2006-09-27 20:30:29 +00:00
Glenn Maynard cc2974edb6 Ideally, actors should be standalone: instanced and maintained in XML
without the screen knowing about it.  That's not always feasible, for actors
with more complicated interactions, such as SSMusic's MusicWheel, Banner,
and so on.

However, if we instance those from the screen itself, then it's pulled outside
of the standard XML heirarchy: it has to go around the major layers (overlay,
underlay).  That's a pain.

Create ActorProxy.  This simply points to and draws another actor.  To use,
hide the main actor (hidden,1), create an ActorProxy in XML, and point it
at the actor you want.  The actor is still controlled by and owned by the screen,
but can be layered in any place, and instanced multiple times.

(This does not propagate things like ActorFrame; that would cause the
target actor to be updated and receive commands multiple times, once
for each proxy.  The owner, and path for those calls, is still the screen.)
2006-08-14 22:32:19 +00:00