Commit Graph

173 Commits

Author SHA1 Message Date
Glenn Maynard 3eddfac7fc nil already pushed 2006-09-23 02:48:12 +00:00
Glenn Maynard c9045a920c use RunExpression 2006-09-23 02:25:36 +00:00
Glenn Maynard 0ad4fcf6e2 ParseActorCommands( Lua *, sCommands ) -> onto stack 2006-09-22 18:59:26 +00:00
Glenn Maynard 6da267ae30 make compile errors for commands less fatal 2006-09-22 18:58:00 +00:00
Glenn Maynard 8cb1c66023 remove SetName 2006-09-22 09:43:12 +00:00
Glenn Maynard f8c1675309 allocate later
don't set name for binary chunks
2006-09-22 04:56:35 +00:00
Glenn Maynard 6f1dbf32d5 don't specify a dummy name for the expression, so RunScript
shows useful error messages
2006-09-22 04:25:38 +00:00
Glenn Maynard 355fdd7264 ActorCommands -> ActorUtil::ParseActorCommands 2006-09-21 02:36:40 +00:00
Glenn Maynard 3a57dca6c4 ActorCommands -> ActorUtil::ParseActorCommands 2006-09-21 02:24:22 +00:00
Steve Checkoway 6ea2a41b00 Cleanup RageException::Throw(). Do not use ssprintf() inside of Throw() and do not pass it bare error messages. Use RageException::Throw( "%s", sError.c_str() ); instead. Be consistent with quoting file names "%s" and theme metrics as "%s : %s". Try to make them complete English sentences when possible. 2006-09-17 01:19:19 +00:00
Steve Checkoway 6051deb2a8 Comment. 2006-09-16 03:59:02 +00:00
Jason Felds 43bc8400a0 Tab cleanup. 2006-08-18 03:09:42 +00:00
Glenn Maynard 30963ab843 all dialogs are warnings 2006-08-16 01:58:44 +00:00
Glenn Maynard bf3d73fcef unwrap 2006-08-16 01:56:54 +00:00
Glenn Maynard 4ab47c8f0c Throw -> Dialog 2006-08-16 01:56:16 +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
Glenn Maynard 52eccf2a8f copy in Sprite's diagnostic: show the possible matches
(always do it; useful in release too)
2006-07-27 22:56:43 +00:00
Glenn Maynard 796b10f90f old comment 2006-07-27 22:49:21 +00:00
Glenn Maynard dc15096294 language filtering for XML-referenced files 2006-03-02 04:59:37 +00:00
Chris Danford 220e204485 cleanup 2006-01-29 22:13:16 +00:00
Glenn Maynard cc952be781 fix ActorParam::Release 2006-01-24 04:56:29 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Glenn Maynard 6b7b6f5cd7 fix restoring params 2006-01-18 06:14:58 +00:00
Glenn Maynard 87b25c0752 fix crash 2006-01-14 06:02:59 +00:00
Glenn Maynard 6344476389 add ActorUtil::ActorParam helper 2006-01-14 05:27:29 +00:00
Glenn Maynard b734b602d2 force TypeName arrays for XToString to be an array of const char*, not CString 2006-01-04 22:30:51 +00:00
Steve Checkoway ada5f4f00f Use ASSERT like a function. 2005-12-30 13:19:40 +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
Chris Danford 37f82b43f7 remove CStringArray #define 2005-12-09 21:36:22 +00:00
Chris Danford 047e5eda8a add comments 2005-12-05 19:12:49 +00:00
Glenn Maynard 9f210adf3e don't THEME->EvaluateString here; it's unnecessary and actually using it is slow 2005-10-29 03:30:16 +00:00
Glenn Maynard 4cee7a4045 This table will be accessed very often, so use the terse name "P", for eg. File="@P.File". 2005-10-29 01:35:53 +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 a31bf7371f remove debug cruft 2005-10-12 02:54:37 +00:00
Glenn Maynard aafe212809 temp debug cruft 2005-10-12 02:17:48 +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 1733cc128c add assert 2005-10-11 21:45:35 +00:00
Glenn Maynard c9cb09dd36 ActorUtil::LoadFromActorFile -> ActorUtil::LoadFromNode 2005-10-11 02:51:05 +00:00
Glenn Maynard 049af2408d simplify (same code path for LoadFromActorFile) 2005-10-11 00:50:25 +00:00
Glenn Maynard d87cfccfb9 simplify 2005-10-11 00:48:27 +00:00
Glenn Maynard 92585fcaa9 rearrange 2005-10-11 00:47:15 +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 5c13eb7d35 Oops. Actor::LoadFromNode wasn't virtual, but we were treating it as if
it was (BitmapText::LoadFromNode, etc. called it).  This worked because
REGISTER_ACTOR_CLASS called it before the object was downcasted to an Actor.
We then re-called Actor::LoadFromNode from ActorUtil::LoadFromActorFile;
this worked because all it did was re-run Actor init (causing double
calls to Init) and not the whole actor.

(first half fix: make Actor::LoadFromNode virtual and add comment)
2005-10-10 08:23:00 +00:00
Glenn Maynard c904417448 missing header 2005-10-07 01:45:20 +00:00
Glenn Maynard 35b1059e05 fix x/y set in InitCommand sometimes overridden 2005-09-21 17:45:34 +00:00
Glenn Maynard 213d3e1b67 unneeded 2005-09-08 05:42:31 +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
Glenn Maynard c6a10c1d7a no need for :: or &expr; in param names 2005-09-06 04:39:36 +00:00