Glenn Maynard
f1ca420069
use ActorUtil::GetWhere
2006-10-09 08:08:59 +00:00
Glenn Maynard
ce07b22b56
fix up Context handling
2006-10-09 01:15:49 +00:00
Glenn Maynard
3cae60d6fd
Currently, expression handling in XML is spotting and inconsistent.
...
Each actor type needs to evaluate attributes; only a few do. Strings
are handled with the "@foo()" notation.
Instead, after loading an XML file for loading as an actor,
precompile all XML attributes as Lua expressions.
The primary difference to code is:
- previously, Attr="string" would act as a string if it was being
read as one. Now, specify Attr='"string"'. Attr="@string" is
a shorthand. (note that @strings will not be parsed as Lua
strings, so can not use Lua escape characters)
- previously, Attr="@func()" would evaluate func(), and the value
of the attribute would be the return value of the function. This
was only supported for a few attributes. Now, say Attr="func()",
and this will work for all fields.
- Attributes of other types are unchanged, except that all attributes
may be Lua expressions, eg. Width="SCREEN_WIDTH".
- Attributes names ending with "Command" are special, like metrics.
Prefix "%" to disable this.
This brings XML handling in line with metric handling. (This is an intermediary
step; I have another idea that follows from this that should eliminate the annoying
"'foo'"/"@foo".)
2006-10-09 00:49:30 +00:00
Glenn Maynard
1a89ddfccd
pointer to attributes
2006-10-03 00:07:01 +00:00
Glenn Maynard
5d6514a2c1
better debug
2006-10-02 22:54:43 +00:00
Glenn Maynard
9e4da8650f
simplify
2006-10-02 22:53:32 +00:00
Glenn Maynard
83defce27b
XML update
2006-10-02 22:52:57 +00:00
Glenn Maynard
4b26a19205
cleanup
2006-10-02 21:19:00 +00:00
Glenn Maynard
c690fdcfe4
unify registration
2006-09-29 00:01:32 +00:00
Glenn Maynard
205c2329a2
XToString
2006-09-27 20:33:26 +00:00
Glenn Maynard
f4975f1f54
simpler Lua boilerplate
2006-09-27 20:30:29 +00:00
Glenn Maynard
3311f1992c
CabinetLight_Invalid
2006-09-26 21:23:30 +00:00
Glenn Maynard
02a4b35d51
bound alignment constants
2006-09-26 20:00:27 +00:00
Glenn Maynard
9501cb22e5
standard enum convention
2006-09-26 19:50:53 +00:00
Glenn Maynard
cc49e8d56d
use bound types
2006-09-26 09:09:38 +00:00
Glenn Maynard
f567a0fd28
cleanup arg order
2006-09-26 08:54:54 +00:00
Steve Checkoway
4a545228a9
Simplify.
2006-09-26 05:34:18 +00:00
Glenn Maynard
52ae78a40e
self:diffuse({1,1,1,1})
2006-09-21 22:08:49 +00:00
Glenn Maynard
ed81222b34
ActorCommands.h -> Actor.h or ActorUtil.h
2006-09-21 02:48:15 +00:00
Glenn Maynard
c2e5a38930
ActorCommands -> ActorUtil::ParseActorCommands
2006-09-21 02:25:10 +00:00
Glenn Maynard
3a57dca6c4
ActorCommands -> ActorUtil::ParseActorCommands
2006-09-21 02:24:22 +00:00
Glenn Maynard
8548f1cb33
simplify ActorCommands
2006-09-21 01:39:38 +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
Glenn Maynard
e206261b80
ARRAYSIZE -> ARRAYLEN
2006-09-13 03:11:38 +00:00
Glenn Maynard
9f1cd1e458
fix operator=
2006-09-02 00:24:40 +00:00
Glenn Maynard
afb69ddb7b
remove aliases, header
2006-08-20 22:29:49 +00:00
Jason Felds
3e55081847
Tab cleanup.
2006-08-18 02:53:30 +00:00
Glenn Maynard
8ffab2ec9b
GetParent binding
2006-08-17 06:43:25 +00:00
Glenn Maynard
9872638a7d
<Context> nodes
2006-08-17 06:42:32 +00:00
Glenn Maynard
8c7c5aff37
show the name, not the size (always 51)
2006-08-16 00:57:16 +00:00
Glenn Maynard
cbc69ea550
remove unused parameter
2006-08-15 19:24:29 +00:00
Glenn Maynard
d2a4a2fa76
use m_pParent
2006-08-15 19:12:09 +00:00
Glenn Maynard
ec683e54d9
remove InitDefaults
2006-08-15 19:06:26 +00:00
Glenn Maynard
a872952b8b
store parent
2006-08-15 19:02:31 +00:00
Glenn Maynard
89ab444693
Add parent links to actors.
...
For each actor, create a context table, with an __index link to the
parent's. This can be used to propagate information down complex
actor trees.
Code needs to be changed to do AddChild() calls before loading,
rather than after, so context links are available during loads.
This will be done as necessary.
2006-08-09 23:22:54 +00:00
Glenn Maynard
c98fabf1f2
consistency
2006-08-01 20:39:36 +00:00
Glenn Maynard
45c114590e
don't ignore specified effect period if the effect is already running
2006-08-01 20:36:19 +00:00
Glenn Maynard
a3ffee63b6
remove GetCommandsLengthSeconds
2006-08-01 20:32:16 +00:00
Glenn Maynard
e550a0fcb5
cleanup, less random order
2006-07-29 06:18:09 +00:00
Glenn Maynard
9ed6603349
add BLEND_WEIGHTED_MULTIPLY and BLEND_INVERT_DEST blend modes
2006-07-27 01:34:57 +00:00
Steve Checkoway
a07e194cf1
Revert. Fixes Linux build.
2006-07-18 05:51:37 +00:00
Jason Felds
366c3440d4
Fix VC8 macro redef warning. (more to come)
2006-07-18 03:56:37 +00:00
Steve Checkoway
d2f3a14495
strtof -> StringToFloat.
2006-06-12 06:42:25 +00:00
Chris Danford
a5f0d301c9
don't unsubscribe from messages on bgchange
2006-05-30 09:08:00 +00:00
Glenn Maynard
31e3ac5ddd
bind GetCommand
2006-04-28 03:33:12 +00:00
Chris Danford
6d115f5b55
add EqualsNoCase for better clarity than "!string.CompareNoCase()"
2006-03-26 19:19:39 +00:00
Glenn Maynard
3943a06255
use GetCommand
2006-03-26 06:02:37 +00:00
Glenn Maynard
ab08e39204
return a pointer from Actor::GetCommand, so the command not existing
...
isn't fatal
2006-03-26 05:53:20 +00:00
Glenn Maynard
4b0128d810
bind GetZoomedWidth, GetZoomedHeight
2006-03-01 04:12:30 +00:00
Glenn Maynard
0ac58078b4
unused
2006-02-27 06:09:08 +00:00