Steve Checkoway
c8cd4cfc6e
Add lua target.
2006-09-25 10:55:54 +00:00
Glenn Maynard
19e9a7201f
simplify: use LuaReference
2006-09-25 08:53:20 +00:00
Glenn Maynard
0d2b1f4fb3
simplify; always create the table if it doesn't exist
2006-09-25 08:51:28 +00:00
Glenn Maynard
1ba714a7a0
use lua_tointeger
2006-09-25 08:46:18 +00:00
Glenn Maynard
486c22a405
make lua strings -> RString 8-bit clean
2006-09-25 08:33:01 +00:00
Glenn Maynard
c4f31011c4
remove SM_LUA
2006-09-25 08:25:50 +00:00
Glenn Maynard
f6b54629c4
lua 5.1
2006-09-25 08:24:56 +00:00
Glenn Maynard
ae6f03fdad
Lua 5.1
2006-09-25 07:51:33 +00:00
Glenn Maynard
79f5f5c30c
ActorFrameTexture
2006-09-25 07:49:24 +00:00
Glenn Maynard
040d96de70
not built as libraries
2006-09-25 07:37:47 +00:00
Glenn Maynard
1554e02329
always use our headers
2006-09-25 07:36:14 +00:00
Glenn Maynard
4564b0d5a2
Update to Lua 5.1.
...
This is normally statically linked in releases. Lua also needs
some patching in Linux x86 to fix performance issues related
to alignment, will need patching if we want fine-grained threading,
and generally has an odd "build it yourself" design, so let's
just add embed this one. (note: disable PCH for these files
in VC, and don't add lua.c, luac.c, or print.c to the project)
2006-09-25 07:35:34 +00:00
Glenn Maynard
de88aa1d94
remove unused
2006-09-25 06:52:46 +00:00
Glenn Maynard
db3c0458d8
don't leave globals around
2006-09-25 06:52:04 +00:00
Steve Checkoway
4d41a8de08
Add files.
2006-09-25 02:14:52 +00:00
Steve Checkoway
9facfc2731
Dialogs can be thrown before INPUTFILTER is constructed.
2006-09-25 02:14:41 +00:00
Steve Checkoway
56186f2bee
Missing strings.
2006-09-25 01:59:10 +00:00
Jason Felds
d48f3ea016
VC8 Hack: pToUnicodeEx doesn't work yet. Use the old definition.
2006-09-25 01:35:33 +00:00
Glenn Maynard
1b13c0bc7e
don't bother trying to hide LuaReference. It's used everywhere, and
...
allocating it like this make copy ctors a pain.
2006-09-24 19:22:30 +00:00
Glenn Maynard
f58a589b5f
remove unused LuaExpressionTransform::SetFromExpression
2006-09-24 19:16:07 +00:00
Glenn Maynard
b6fe26893d
SetTransformFromExpression -> SetTransformFromFunction
2006-09-24 19:04:59 +00:00
Glenn Maynard
2d29ee6743
fix ActorScroller::SetTransformFromExpression
2006-09-24 18:58:25 +00:00
Glenn Maynard
b15ce96511
delete Texture
2006-09-24 18:46:06 +00:00
Glenn Maynard
7e6bd294cd
revert changes that seem to not do anything
2006-09-24 18:44:55 +00:00
Steve Checkoway
1345a2cd5f
LogType -> string. Done.
2006-09-24 03:57:40 +00:00
Steve Checkoway
c8a2b7601c
LogType -> string.
2006-09-24 03:57:26 +00:00
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