Commit Graph
22722 Commits
Author SHA1 Message Date
Steve Checkoway b1a6f94d69 This was breaking encapsulation. The api is more or less the same. The only purpose for breaking the error message apart like that is it allows a consistent look to the messages. (Other files coming soon.) 2006-09-24 03:56:04 +00:00
Renaud Lepage 7655cb5f01 Also from Vecais_Dumais_Laacis.
Link libpng manually and before the DirectX equivalent.
2006-09-24 01:57:18 +00:00
Renaud Lepage 4329e8a40b Routine project patch 2006-09-23 22:33:16 +00:00
Renaud Lepage 6ff3755d60 Patch made by Vecais_Dumais_Laacis. No code modifications made by Renaud Lepage.
This patch finally gets Xbox colors and tex. corruption problems out, and a running product in.

1- Only one texture color mode will be allowed.
2- No palletized textures on Xbox.
3- Manually invert colors.

Thanks to Andis, the author.
2006-09-23 21:56:43 +00:00
Steve Checkoway 883b45a8df Maybe these should stay as strings. For now just make them work. 2006-09-23 19:19:41 +00:00
Steve Checkoway a4aa69b148 Remove ThemeMetricEnum. Since all metrics are evaluated as lua, use lua integer constants. 2006-09-23 07:21:26 +00:00
Glenn Maynard 0f2707fe9c GenericTweenOn, GenericTweenOff 2006-09-23 03:57:11 +00:00
Glenn Maynard 208b84e02e DebugOffCommand 2006-09-23 03:46:03 +00:00
Glenn Maynard 011f59f444 OffCommand for textDebug 2006-09-23 03:45:30 +00:00
Glenn Maynard a20ff0e3b6 GenericTweenOn, GenericTweenOff 2006-09-23 03:37:45 +00:00
Glenn Maynard e0e40db74b fix bool 2006-09-23 03:32:37 +00:00
Glenn Maynard c441d10bc0 set name 2006-09-23 03:31:44 +00:00
Glenn Maynard 546500a5d3 unwrap
sensible behavior for ignore
2006-09-23 03:31:17 +00:00
Glenn Maynard 2d785239e7 fix STATSMAN 2006-09-23 03:06:29 +00:00
Glenn Maynard 3eddfac7fc nil already pushed 2006-09-23 02:48:12 +00:00
Glenn Maynard 0d05ebd9b5 always leave iReturnValues on the stack, even on error, so error handling can just log the error and continue as if nil was actually returned 2006-09-23 02:44:35 +00:00
Glenn Maynard c9045a920c use RunExpression 2006-09-23 02:25:36 +00:00
Glenn Maynard 0c2169923a cleanup 2006-09-23 02:24:23 +00:00
Glenn Maynard 59e1be60e6 simplify RunExpressionX. Don't check for function returns;
it's confusing to do it inconsistently.  Now, this code
path looks like the theme metric one.
2006-09-23 02:11:54 +00:00
Glenn Maynard 13f33de79a allow passing sName for expressions 2006-09-23 02:09:58 +00:00
Glenn Maynard 09afb81741 GetMetric pushes the metric directly. This is faster, avoiding
converting the metric to a string and then back into Lua, and
works with any type; with "Class::Metric=math.sin",
THEME:GetMetric("Class","Metric") will return the function sin().
2006-09-22 21:23:13 +00:00
Glenn Maynard 4ae6eb6070 unused functions 2006-09-22 20:53:36 +00:00
Glenn Maynard 56c12a5bb3 unneeded header 2006-09-22 20:07:35 +00:00
Glenn Maynard 3f95e889d4 use LuaHelpers::FromStack directly 2006-09-22 20:06:14 +00:00
Glenn Maynard d720b18eaa use LuaHelpers::FromStack to generalize metrics 2006-09-22 20:05:37 +00:00
Glenn Maynard 593e2af79a fix "RageColor x = 0" silently compiles and crashes 2006-09-22 19:51:51 +00:00
Glenn Maynard 1f5114b193 LuaHelpers::FromStack binding for references 2006-09-22 19:46:30 +00:00
Glenn Maynard 3130411629 use LuaHelpers::RunExpression 2006-09-22 19:45:37 +00:00
Glenn Maynard 40eef3c600 cleanup 2006-09-22 19:40:32 +00:00
Glenn Maynard d55c71f5cf Don't ReplaceMarkers metrics. Only do that for language strings. 2006-09-22 19:36:17 +00:00
Glenn Maynard eb016b06d7 move into Languages 2006-09-22 19:22:06 +00:00
Glenn Maynard 16d78d5f05 type check 2006-09-22 19:08:16 +00:00
Glenn Maynard 32ccbbbb99 LuaHelpers::FromStack 2006-09-22 19:07:56 +00:00
Glenn Maynard f8b3a17c6f split out ThemeManager::PushMetric 2006-09-22 19:05:56 +00:00
Glenn Maynard 874a4fc2bb use ParseActorCommands(L) and RunExpression 2006-09-22 19:01:13 +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 494c3cd485 LuaHelpers::RunExpression 2006-09-22 18:53:39 +00:00
Jason Felds a7a6d643a4 Add the *Workout* files. 2006-09-22 14:56:39 +00:00
Chris Danford 58603a48f2 add Workout files 2006-09-22 11:36:12 +00:00
Glenn Maynard d98c17eac6 move code 2006-09-22 09:52:08 +00:00
Glenn Maynard 85d8006257 remove LuaReference name; keep LuaReference lightweight 2006-09-22 09:46:31 +00:00
Glenn Maynard 8cb1c66023 remove SetName 2006-09-22 09:43:12 +00:00
Glenn Maynard 709a790f1c change arg order 2006-09-22 08:48:49 +00:00
Glenn Maynard f29762c59e change arg order 2006-09-22 08:38:30 +00:00
Glenn Maynard 557563e81d cleanup 2006-09-22 08:33:20 +00:00
Glenn Maynard 04e9fcc2bf remove SubscriptionManager 2006-09-22 07:54:46 +00:00
Glenn Maynard bd2dd513b8 copy the name 2006-09-22 07:53:51 +00:00
Glenn Maynard 1bb569f8c4 LuaReference and apActorCommands are the same thing; apActorCommands
just sticks the result in AutoPtrCopyOnWrite.  apActorCommands might be
eliminated; it's reference counting a garbage collected object.  (It
used to be more useful, when we stored actual command lists; now I'm
not sure whether it is.  Need to benchmark LuaRef copying to see.)

So, we shouldn't be treating them differently, but we are:
GetMetric(apActorCommands) parses actor commands, and GetMetric(LuaRef)
does not.  I don't like that distinction; actor commands can be passed
around as a LuaReference, and other references can be put in
apActorCommands.  "Whether it's in a smart pointer" is a strange
way to decide which overload to use.

Also, we should have a consistent way to know whether a metric is to
be parsed as a command or as a Lua expression, based on the data
itself and not the code being used to read it.  Let's use the name:
all commands end with "Command".  We already depend on this elsewhere,
in ActorUtil::LoadAllCommandsFromName.

Note that "actor commands" are not specific to the Actor system,
other than a few compatibility hacks; they're just a shorthand
for writing Lua functions.
2006-09-22 07:50:05 +00:00
Glenn Maynard 0006a92712 commands end with Command 2006-09-22 07:46:21 +00:00