Commit Graph
68 Commits
Author SHA1 Message Date
Glenn Maynard 98a752669f remove ActorParam 2006-10-14 02:39:52 +00:00
Glenn Maynard 1c372a918c move code out of macro
move common code into ActorUtil::Create
2006-10-11 07:33:38 +00:00
Glenn Maynard e11914d4bb LoadFromNode(sDir, pNode) -> LoadFromNode(pNode) 2006-10-09 08:24:10 +00:00
Glenn Maynard 8e8a10f56c ActorUtil::GetWhere 2006-10-09 08:08:17 +00:00
Glenn Maynard 7477cd1e4f _Source, for real source paths in error messages 2006-10-09 07:42:18 +00:00
Glenn Maynard b113467c20 Mark the directory of actor definition XNodes in the nodes themselves.
Use ActorUtil::GetAttrPath to look up a path, with automatic
handling of relative paths.  This way, we don't need to do it
in every place we look up paths.

(For Lua nodes, this will be set by Lua.)
2006-10-09 06:54:52 +00:00
Glenn Maynard 7d795e5703 first-pass: actor descriptions in Lua 2006-10-09 05:51:12 +00:00
Glenn Maynard 6322ded0dc move command parsing into LuaHelpers. It's not Actor-specific other
than a few compatibility hacks.
2006-10-08 22:24:15 +00:00
Glenn Maynard 85eb3e0a05 more useful error messages 2006-09-29 07:24:40 +00:00
Glenn Maynard 0ad4fcf6e2 ParseActorCommands( Lua *, sCommands ) -> onto stack 2006-09-22 18:59:26 +00:00
Glenn Maynard 62f050aff2 remove ActorCommands.h 2006-09-21 02:57:20 +00:00
Glenn Maynard 3a57dca6c4 ActorCommands -> ActorUtil::ParseActorCommands 2006-09-21 02:24:22 +00:00
Jason Felds dc1e989488 Tab cleanup. 2006-08-18 03:15:48 +00:00
Glenn Maynard 8af826fc3f set parent before calling LoadFromNode 2006-08-15 19:25:45 +00:00
Glenn Maynard 832679370b remove unused params 2006-08-15 19:19:59 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Glenn Maynard 6344476389 add ActorUtil::ActorParam helper 2006-01-14 05:27:29 +00:00
Chris Danford 353e0c5b6e break up arch stuff into smaller .cpp files to fix smpackage build and not pull in unnecessary stuff 2005-12-16 04:16:09 +00:00
Glenn Maynard 938bfeb7b0 add ActorUtil::SetParamFromStack, ActorUtil::GetParam. Save params to
a table, not as global variables.  Saving and loading from globals is still
around temporarily.
2005-10-29 01:28:29 +00:00
Glenn Maynard fbe094d34c Create actors with ActorUtil::Create in ActorUtil::MakeActor. This means
ActorUtil::LoadFromNode always uses ActorUtil::Create.  Previously, sprites
and models loaded without an explicit Class= were loaded directly.

Nested XML is merged explicitly.  Before, we loaded the final actor, and then
called Actor::LoadFromNode to pull in attributes from each nested XML node
as ActorUtil::LoadFromNode recursed back out, which was a bit confusing.  It
also caused weirdness with InitCommand: each time called it again, possibly
with a different InitCommand.  We need to only call it once, after all nodes
are loaded.

(MergeActorXML is a little annoying, but it does make it more clear what's
really happening.)
2005-10-11 21:59:48 +00:00
Glenn Maynard c9cb09dd36 ActorUtil::LoadFromActorFile -> ActorUtil::LoadFromNode 2005-10-11 02:51:05 +00:00
Glenn Maynard a69244f41f Take a path to ActorUtil::MakeActor, not a RageTextureID. Nothing uses it
here.
2005-10-10 20:55:47 +00:00
Glenn Maynard ed1ff5c63c fix up screen command loading 2005-09-08 03:38:08 +00:00
Glenn Maynard 02d10ae927 add LoadAllCommandsFromName 2005-09-07 20:41:50 +00:00
Chris Danford 7c4f2595ab Remove support for .actor. Use .xml instead. 2005-09-02 00:09:21 +00:00
Chris Danford 7cfcce6e7d remove .sprite file support. Use .xml instead 2005-07-26 20:00:19 +00:00
Glenn Maynard 55d6382c49 add virtual Copy() to Actor 2005-07-18 22:00:19 +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 94a9cda191 add GetFileType to consolidate file extension parsing 2005-05-29 01:04:44 +00:00
Chris Danford 8eaf93a23d position Scroller items with a Lua function
add ActorFrame::m_bDrawByZPosition
2005-05-03 09:29:54 +00:00
Chris Danford ade579667b load all commands from metrics when the On command is played. This fixes skips when playing the Off command. 2005-03-13 20:44:26 +00:00
Chris Danford 8cf70ce1d0 register a class using any name 2005-03-01 02:49:57 +00:00
Glenn Maynard b3a8e8fd4f split out ActorUtil::ResolvePath 2005-02-26 10:07:02 +00:00
Chris Danford f395d0a401 preload commands 2005-02-23 23:04:06 +00:00
Chris Danford 5ed6736eef sScreenName -> sType 2005-02-23 22:21:39 +00:00
Chris Danford 8c53c62f2b add Actor type registration 2005-02-09 05:31:14 +00:00
Chris Danford 1de61aa8ae split AutoActor into a separate file 2005-02-09 05:27:51 +00:00
Glenn Maynard 9344535419 fix Command/ActorUtil::Command ambiguity 2005-01-17 22:45:00 +00:00
Chris Danford 5d6eb1d236 put ActorUtil functions in a namespace 2005-01-17 05:42:52 +00:00
Chris Danford cda4c3b04a make Actor LoadFromNode signatures consistent 2005-01-17 05:28:16 +00:00
Glenn Maynard 9ff1834076 remove LoadFromActorFile overload that's only used in one place 2005-01-16 19:52:41 +00:00
Chris Danford 981e52ec58 merge IniFile and XmlFile 2005-01-07 14:28:00 +00:00
Chris Danford 78db0513dc sClassName -> sScreenName
load commands from .actor files
2005-01-04 10:42:59 +00:00
Chris Danford a675190a55 Don't re-parse the ini file multiple times per BGALayer. Yuck. 2004-12-27 10:24:54 +00:00
Charles Lohr 70ea342ac1 Move: Utility from ActorUtil to ScreenNetBase 2004-11-24 00:00:56 +00:00
Charles Lohr b43d281b78 Cleanup; Get rid of nasty repetitive code. 2004-11-23 22:06:27 +00:00
Chris Danford 40e692a32c const fixes 2004-11-06 03:00:10 +00:00
Glenn Maynard c531e8b172 license update 2004-06-08 00:47:53 +00:00
Chris Danford bb8ae37aab add graphic for ScreenPlayerOptions CancelAll 2004-03-13 18:15:50 +00:00
Chris Danford 23e763c107 fix eval screen assert 2004-03-10 07:19:40 +00:00