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
Glenn Maynard
aee7281ab4
use Actor for a dummy class, not Sprite
2005-09-03 23:07:56 +00:00
Glenn Maynard
8b21f7924f
cleanup
2005-09-03 05:58:22 +00:00
Glenn Maynard
f0090c2096
remove old compat
2005-09-03 05:52:00 +00:00
Glenn Maynard
94ea3cb9e0
cleanup
2005-09-03 00:30:46 +00:00
Chris Danford
7c4f2595ab
Remove support for .actor. Use .xml instead.
2005-09-02 00:09:21 +00:00
Glenn Maynard
0350fcfbb9
cleanup
2005-09-01 06:12:15 +00:00
Glenn Maynard
9542c08516
simplify
2005-08-30 00:15:21 +00:00
Glenn Maynard
508495cf4a
no longer needed
2005-08-26 19:41:19 +00:00
Glenn Maynard
1507fb20e1
optimize
2005-08-26 19:05:10 +00:00
Glenn Maynard
6f864d9a6b
LoadAllCommands needs to be called in Init(), not BeginScreen()
2005-08-25 23:03:30 +00:00
Chris Danford
bea75582ff
evaluate AtExpressions in <Param/>
2005-08-14 23:02:22 +00:00
Chris Danford
9910074bcc
don't throw on invalid xml
2005-08-03 03:11:15 +00:00
Chris Danford
82d6889acf
don't crash dereffing null Actor after loading invalid xml
2005-07-29 02:22:21 +00:00
Chris Danford
93b19e21f1
make xml parse errors non fatal
2005-07-27 20:57:52 +00:00
Chris Danford
3db35f3ba1
restore BitmapText backward compat hack
2005-07-26 21:12:00 +00:00
Chris Danford
67af38cd97
remove File=(songbackground|songbanner|coursebanner) hack
...
fix compile
2005-07-26 20:50:45 +00:00
Chris Danford
7cfcce6e7d
remove .sprite file support. Use .xml instead
2005-07-26 20:00:19 +00:00
Chris Danford
79ceb5b0cf
allow At expression in Condition
2005-07-25 07:41:23 +00:00
Chris Danford
32286d12e6
add <Param /> child of a node for setting Lua globals while loading a node
2005-07-22 19:57:42 +00:00
Glenn Maynard
a43388d2ba
remove unused random banner code
2005-07-20 10:12:47 +00:00