Commit Graph

120 Commits

Author SHA1 Message Date
Glenn Maynard 2fa8986ea6 fix RunCommandsRecursively by implementing it directly
distinguish between Run ("call this function") and Play
("look up the function with this name and call it")
2007-02-20 23:49:13 +00:00
Glenn Maynard 30ecc6152b add SetDrawFunction 2007-02-20 02:00:43 +00:00
Glenn Maynard 5e36201c4c add GetChildren 2007-02-13 23:58:56 +00:00
Glenn Maynard fcf121feb0 add PlayCommandNoRecurse to fix PlayCommand hack 2007-02-10 05:42:25 +00:00
Glenn Maynard 3d3c2bad49 bind RunCommandsOnChildren 2007-02-08 20:34:45 +00:00
Glenn Maynard 9bc27fb390 Messages and commands are nearly identical: they both have a name,
they can both have parameters stashed in a table, and they both play
stuff out of the actor command list.  Merge them; now the only
difference between playing and broadcasting a command is that playing
plays recursively on a tree and broadcasting sends to all subscribers.

The distinction between "messages" and "commands" is cosmetic now;
everything is a message.  The only thing special about commands intended
to be received as a broadcast is the "Message" suffix, which subscribes it.
2007-02-03 06:17:02 +00:00
Glenn Maynard c3cf5ef59e remove ProcessMessages 2006-12-20 01:11:49 +00:00
Glenn Maynard 7e9ec10f3a work on allowing parameters to messages: pass a Message
struct, not just a string
2006-11-13 23:51:24 +00:00
Steve Checkoway 8588b48a15 Set the perspective when drawing in a subclass of ActorFrame, not just for children of subclasses. 2006-10-26 06:03:12 +00:00
Glenn Maynard cd3f228338 covariant Copy() 2006-10-20 00:17:51 +00:00
Glenn Maynard 2cede5a421 for cases where we take a number as a boolean, accept a boolean
false as false (to transition away from numbers)
2006-10-15 08:17:35 +00:00
Glenn Maynard e11914d4bb LoadFromNode(sDir, pNode) -> LoadFromNode(pNode) 2006-10-09 08:24:10 +00:00
Glenn Maynard d7776aba60 evaluate enums directly 2006-10-09 01:34:16 +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 ed81222b34 ActorCommands.h -> Actor.h or ActorUtil.h 2006-09-21 02:48:15 +00:00
Jason Felds e0a28fa996 Tab cleanup. 2006-08-18 03:02:46 +00:00
Glenn Maynard dbf65f06ee set parent 2006-08-16 02:18:52 +00:00
Glenn Maynard cbc69ea550 remove unused parameter 2006-08-15 19:24:29 +00:00
Glenn Maynard 6b7e45f0c8 remove unused overload. (Actors are too potentially complex to simply have a "reset to default" overload, anyway.) 2006-08-15 19:05:22 +00:00
Glenn Maynard 2dc13e16a7 pActor->SetParent 2006-08-09 23:23:56 +00:00
Chris Danford a5f0d301c9 don't unsubscribe from messages on bgchange 2006-05-30 09:08:00 +00:00
Chris Danford 68425c887e Fix backgrounds always choosing the first random movie. Choose the same random backgrounds every time a song is played. Fix background layer reset after BackgroundTransition. 2006-05-05 19:21:29 +00:00
Glenn Maynard 6e5d986e7b bind PlayCommandOnLeaves 2006-04-27 22:46:46 +00:00
Glenn Maynard 3a80542460 propagate deprecated 2006-03-26 06:07:21 +00:00
Glenn Maynard db3ea69aac Add PlayCommandOnChildren. This obsoletes "propagate". 2006-03-26 06:04:29 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Glenn Maynard cdd516fd74 Eliminate SCREEN_WIDTH/HEIGHT from RDisplay. It's up to the
user code to pass the desired camera space dimensions to
LoadMenuPerspective (normally done by Screen).  SDimensions.h
is high-level.
2005-12-29 18:33:03 +00:00
Glenn Maynard f33504c73f LuaHelpers::PrepareExpression is used for metric compatibility; don't use
when loading from XML.
2005-11-29 17:36:19 +00:00
Glenn Maynard df7405f4ec remove Reset 2005-10-16 02:22:57 +00:00
Glenn Maynard c9cb09dd36 ActorUtil::LoadFromActorFile -> ActorUtil::LoadFromNode 2005-10-11 02:51:05 +00:00
Glenn Maynard 91815ef03e Simplify: Move LoadChildrenFromNode into ActorFrame::LoadFromNode.
This also makes loading consistent between ActorFrame, ActorScroller and DActorScroller.
Previously, we ran ActorFrame::LoadFromNode before adding children, which caused InitCommand
to be run before adding children.
2005-10-07 02:55:47 +00:00
Glenn Maynard f875098dac typo 2005-10-07 02:44:42 +00:00
Glenn Maynard a3bdc2e5ff move SetSize to Actor 2005-09-24 06:57:03 +00:00
Glenn Maynard a3da8338a6 allow setting the effective size of an ActorFrame 2005-09-11 19:00:42 +00:00
Chris Danford 65d71a4f23 expermienting with DEFINE_METHOD macro for Lua methods 2005-09-10 02:47:04 +00:00
Glenn Maynard 8f8f8d7782 compile fix 2005-07-19 06:54:49 +00:00
Glenn Maynard 47489964d2 copy children if m_bDeleteChildren; this allows copying ActorFrames, including
ones loaded from XML
2005-07-18 22:59:34 +00:00
Glenn Maynard 55d6382c49 add virtual Copy() to Actor 2005-07-18 22:00:19 +00:00
Glenn Maynard ebbf4490bf propagate ProcessMessages. There are still some cases where we're
handling children directly; as those come up, they'll either propagate this
message or (preferably) be converted to use AddChild and let ActorFrame
do the work.
2005-07-12 03:09:34 +00:00
Glenn Maynard 5813b65b72 SetVanishPoint binding 2005-07-07 00:59:51 +00:00
Chris Danford ef4216b699 fix comment location 2005-06-29 09:20:17 +00:00
Glenn Maynard 9d7f835609 no need to template Luna specializations 2005-06-20 05:02:03 +00:00
Glenn Maynard c998564adf update registration for various types 2005-06-20 04:17:02 +00:00
Glenn Maynard b974b1bdd4 LuaHelpers::PrepareExpression 2005-06-16 22:22:37 +00:00
Glenn Maynard cb3f10aabb LuaHelpers::RunExpressionF 2005-06-16 06:30:33 +00:00
Chris Danford 623dc2512f merge PlayCommand2 and PlayCommand so that Actor derivities only have to override one method to get the correct behavior 2005-06-12 00:35:08 +00:00
Chris Danford 98784d3fb5 Split Update into Update and UpdateInternal so that every class doesn't need to early abort in Update when hibernating 2005-06-11 10:32:58 +00:00
Chris Danford dac72665e3 move background file enumerating into BackgroundUtil.*
fix editor background change functionality
2005-05-31 01:17:37 +00:00
Chris Danford d89b0a8dfc add RunCommandsOnLeaves
propagate Reset
2005-05-29 01:00:05 +00:00