Glenn Maynard
f567a0fd28
cleanup arg order
2006-09-26 08:54:54 +00:00
Glenn Maynard
5d1b947002
ModsGroup
2006-09-26 08:52:12 +00:00
Glenn Maynard
562a801a39
cleanup
2006-09-26 08:44:55 +00:00
Glenn Maynard
50a5d55383
fix gcc compile
2006-09-26 08:38:57 +00:00
Glenn Maynard
5d6be12093
update bindings
2006-09-26 08:26:49 +00:00
Glenn Maynard
8644ab382d
missing header
2006-09-26 08:25:14 +00:00
Glenn Maynard
17ab6e2db3
update bindings
...
remove unused CourseDifficulty (alias of Difficulty)
2006-09-26 08:06:39 +00:00
Glenn Maynard
a220b68c9e
update bindings
2006-09-26 08:01:12 +00:00
Glenn Maynard
48bb38ee12
NUM_CoinMode
2006-09-26 07:49:25 +00:00
Glenn Maynard
c67422591c
update bindings
2006-09-26 07:48:47 +00:00
Glenn Maynard
e8a3c636f6
SortOrder_INVALID, NUM_SortOrder
2006-09-26 07:42:55 +00:00
Glenn Maynard
2ed1154dfb
update bindings
2006-09-26 07:33:26 +00:00
Glenn Maynard
600fdfea63
simplify LuaXType
2006-09-26 07:13:54 +00:00
Glenn Maynard
444dd8afbb
update binding
2006-09-26 07:01:39 +00:00
Glenn Maynard
5595cd0443
typo
2006-09-26 06:56:39 +00:00
Glenn Maynard
0709d5ee4d
remove LuaXType2
2006-09-26 06:48:53 +00:00
Glenn Maynard
b2a67c4340
TweenType_Invalid
2006-09-26 06:48:30 +00:00
Glenn Maynard
95a384b970
LuaXType2 -> LuaXType
2006-09-26 06:47:53 +00:00
Glenn Maynard
a0373a0add
cleanup
2006-09-26 06:36:08 +00:00
Glenn Maynard
687e006cdf
remove unused
2006-09-26 05:17:29 +00:00
Glenn Maynard
b4cf28c363
remove StageToString
2006-09-26 05:16:32 +00:00
Glenn Maynard
14b51a70d7
update Stage
2006-09-26 05:08:52 +00:00
Glenn Maynard
f46eadb5fd
update
2006-09-26 05:06:39 +00:00
Glenn Maynard
99ccb03ac7
update Difficulty
2006-09-26 05:04:14 +00:00
Glenn Maynard
64dec0bb42
fix StringToEnum
2006-09-26 05:03:55 +00:00
Glenn Maynard
d000ab254e
update
2006-09-26 04:48:09 +00:00
Glenn Maynard
1dbb7e49b7
update
2006-09-26 04:32:38 +00:00
Glenn Maynard
09affa7e8e
remove unneeded
2006-09-26 04:32:14 +00:00
Glenn Maynard
a6174f4bac
new Difficulty binding
2006-09-26 04:31:59 +00:00
Glenn Maynard
5d9206fee3
didn't mean to rename this
2006-09-26 04:31:25 +00:00
Glenn Maynard
73e12fa20d
PlayModeToString not useful in lua; it's already a string
...
transition
2006-09-26 04:22:01 +00:00
Glenn Maynard
ca779520a5
NoteTypeToString not useful in lua; it's already a string
...
transition
2006-09-26 04:17:54 +00:00
Glenn Maynard
9756e3287f
remove old macro, transition
2006-09-26 04:15:39 +00:00
Glenn Maynard
e7a5debee9
remove old
...
fixup
2006-09-26 04:09:09 +00:00
Glenn Maynard
aeebc89106
update typing
2006-09-26 04:08:12 +00:00
Glenn Maynard
f68b0e4440
remove old
2006-09-26 04:08:11 +00:00
Glenn Maynard
3dac292642
update ModsLevel use
2006-09-26 04:03:59 +00:00
Glenn Maynard
29ce29f1d5
remove old bindings
2006-09-26 04:00:20 +00:00
Glenn Maynard
58882b82f7
update GetBestFinalGrade use
2006-09-26 03:58:54 +00:00
Glenn Maynard
d2968acd5e
expose the index table; helpful for the few places we need to order enums
2006-09-26 03:58:30 +00:00
Glenn Maynard
39ac2da962
ThemeMetric<Grade>, ThemeMetric<TapNoteScore>
2006-09-26 03:30:20 +00:00
Glenn Maynard
3fca0d9366
bindings
...
remove PLAY_MODE_
2006-09-26 03:28:51 +00:00
Glenn Maynard
a4ac724eef
cleanup
2006-09-26 03:19:58 +00:00
Glenn Maynard
2fbe882366
ThemeMetric<EditMode>
2006-09-26 03:19:37 +00:00
Glenn Maynard
af26ddff7a
rename
2006-09-26 03:08:03 +00:00
Glenn Maynard
004e1a9eb7
update PlayMode
2006-09-26 03:06:00 +00:00
Glenn Maynard
27fda541dc
split EnumTraits (static variables associated with an enum type)
...
and Enum (functions)
define Push for enum types
2006-09-26 03:05:08 +00:00
Glenn Maynard
edfaafe617
remove "NUM_CourseTypes"; use #CourseTypes
2006-09-26 01:55:37 +00:00
Glenn Maynard
c011185fa9
new binding method
2006-09-26 01:54:36 +00:00
Glenn Maynard
d4f8789a36
new binding method (LuaXType will be phased out)
2006-09-26 01:46:15 +00:00
Glenn Maynard
3d79319c04
Register Lua enum types as strings, not numbers.
...
- Even though these strings are in the context of the table, we still prefix them
with the enum name ("UnlockRequirement_ArcadePoints", not "ArcadePoints"). The typical
use is as a simple string (obj:Call("Type")), not as an index into the table, and
this makes the type clear and easy to search for in that case.
- no "NUM_UnlockRequirement"; use #UnlockRequirement.
- no UnlockRequirement_Invalid; use nil
- Enum<X>::Check always returns a valid X; no additional error checking is
needed and Lua code can no longer introduce invalid enum values into C
- This does not support enum types with holes; neither does FOREACH.
- This is typesafe. If you give "GAME_CONTROLLER_1" to a function expecting an
UnlockRequirement, we can detect the error and show a meaningful error message.
- Lua strings are always merged, and comparisons are as cheap as integers, so
this isn't slow (and may be faster).
- Can iterate: for i,j in ipairs(UnlockEntry) do func(j) end
(This is a bit clumsy; probably want a foreach() iterator that doesn't return i)
- ThemeMetric<UnlockRequirement> just works.
2006-09-26 01:41:40 +00:00
Glenn Maynard
923f0f7346
inline
2006-09-26 01:36:31 +00:00
Glenn Maynard
78c8e11290
add LuaHelpers::AbsIndex
2006-09-26 01:28:10 +00:00
Glenn Maynard
44170f9fb3
don't leave the file open while we execute a script (leaves the file locked in Windows while/if the dialog comes up)
2006-09-26 00:22:09 +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
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
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