Glenn Maynard
69e57a659e
GetMachineProfile
2005-02-16 02:45:23 +00:00
Glenn Maynard
b8605eebf0
fix warning (atof returns a double, not a float)
2005-02-16 02:42:57 +00:00
Glenn Maynard
69383384bf
add LuaData::Serialize, LuaData::LoadFromString; fix stack overflow
2005-02-16 02:42:05 +00:00
Glenn Maynard
4376c828e5
fix LuaData::BeforeReset
2005-02-16 01:46:29 +00:00
Glenn Maynard
6175a16f24
Add LuaData, a reference type that restores itself over Lua resets. This
...
works only with static data types that can be restored: tables, strings,
numbers, and not functions, userdata, etc.
2005-02-16 00:38:40 +00:00
Glenn Maynard
40fde98efa
add license--just as important for Lua scripts as C++ source
2005-02-16 00:15:36 +00:00
Glenn Maynard
0d8a3723ef
add serialization script
2005-02-16 00:14:17 +00:00
Glenn Maynard
8584cbc0d7
when compiling a script from a file, don't dump the entire contents of the
...
script to the log/dialog
2005-02-15 07:17:49 +00:00
Glenn Maynard
0a0ad8714c
allow LuaManager::RunExpression to return a function
...
show the filename when a full script has an error
use LuaManager::RunExpression in LuaExpression
2005-02-15 02:15:26 +00:00
Glenn Maynard
004d774889
simplify
2005-02-15 02:07:59 +00:00
Glenn Maynard
2103eb0531
bring RunExpression and RunScript closer together
2005-02-15 02:02:08 +00:00
Glenn Maynard
22eee805b9
show the resulting invalid color value when a color metric using a Lua
...
function returns garbage, not the text of the lua call
2005-02-15 01:53:30 +00:00
Glenn Maynard
831e7c1825
remove LuaManager::PushNopFunction(). Just compile an empty function;
...
it'll be tiny, anyway.
2005-02-15 01:49:03 +00:00
Glenn Maynard
db9cd87c34
fix push
2005-02-14 05:57:40 +00:00
Glenn Maynard
0ba4a0b715
test menu
2005-02-14 02:13:55 +00:00
Glenn Maynard
bcd60d35cf
menu sample code
2005-02-14 02:12:37 +00:00
Glenn Maynard
b8e863610f
ThemeMetric.h
2005-02-14 01:47:10 +00:00
Glenn Maynard
3c65876ed3
Lua interface to creating options menu rows. The code's a little ugly;
...
cleanups and samples coming in a bit.
2005-02-14 01:42:21 +00:00
Glenn Maynard
33b74d0fc3
simplify
2005-02-14 01:38:57 +00:00
Glenn Maynard
230ba5b9a9
allow GetOneSelection to return -1 when there are none selected
2005-02-14 01:36:54 +00:00
Glenn Maynard
ab39fa278e
fix compile
2005-02-14 01:33:53 +00:00
Glenn Maynard
e24c79048e
add LuaReference::GetLuaType, LuaExpression
2005-02-14 01:31:10 +00:00
Glenn Maynard
6c5450edd8
ThemeMetric.h
2005-02-14 01:25:01 +00:00
Glenn Maynard
e4448c7484
metrics
2005-02-14 01:18:10 +00:00
Glenn Maynard
e73a167761
fix positioning for hidden items
2005-02-14 01:16:08 +00:00
Glenn Maynard
470b308fe0
comment
2005-02-13 20:10:27 +00:00
Glenn Maynard
12e7f2d5da
comments
2005-02-13 04:48:05 +00:00
Glenn Maynard
bdf3e4ddd8
warning: `class ProfileManager' has virtual functions but non-virtual destructor
2005-02-13 04:14:33 +00:00
Glenn Maynard
7a2a367522
warning: `class GameState' has virtual functions but non-virtual destructor
2005-02-13 04:12:02 +00:00
Glenn Maynard
fe6cd41543
update
...
add LuaManager::CreateTableFromArray, LuaManager::ReadArrayFromTable
2005-02-13 04:09:28 +00:00
Glenn Maynard
11002ff5b2
ActorCommands is a LuaReference
2005-02-13 04:07:29 +00:00
Glenn Maynard
40f82442b0
add assert (because ActorCommands.PushSelf() no longer does it)
2005-02-13 04:06:14 +00:00
Glenn Maynard
4a25a4b43a
update
2005-02-13 04:04:43 +00:00
Glenn Maynard
c423e070aa
Move Lua reference handling into a generic base class.
2005-02-13 04:00:48 +00:00
Glenn Maynard
97277824d9
comment, cleanup (dear god this is boring)
2005-02-13 03:50:51 +00:00
Glenn Maynard
2412c73b22
comment, cleanup
2005-02-13 03:40:37 +00:00
Glenn Maynard
5531efed09
comments, cleanup
2005-02-13 03:27:21 +00:00
Glenn Maynard
0e8b4b8371
comments, cleanup
2005-02-13 03:21:22 +00:00
Glenn Maynard
f07ac5cf74
comment, cleanup
2005-02-13 03:13:33 +00:00
Glenn Maynard
91e8e6a430
comment
2005-02-13 03:08:45 +00:00
Glenn Maynard
fa32951449
cleanup
2005-02-13 03:05:19 +00:00
Glenn Maynard
3380df27cd
cleanup, const
2005-02-13 03:00:19 +00:00
Glenn Maynard
55c67ef857
shorten (the extra stuff in this was out of date, anyway; best to keep the brief description simple enough that it doesn't easily become outdated)
2005-02-13 02:57:11 +00:00
Glenn Maynard
de99ad0e03
style cleanup; move the license text to the bottom
2005-02-13 02:52:44 +00:00
Glenn Maynard
b86576a6d7
style cleaup
2005-02-13 02:50:14 +00:00
Glenn Maynard
1b069fb432
const; fix "warning: `class ThemeManager' has virtual functions but non-virtual destructor"
2005-02-13 02:47:53 +00:00
Glenn Maynard
64a8ee3303
shorten
2005-02-13 02:45:47 +00:00
Glenn Maynard
b9c64a7fce
Add license footer. (This file probably isn't copyrightable, anyway, but better to be consistent just in case ...) (also other header boilerplate)
2005-02-13 02:44:30 +00:00
Glenn Maynard
fb3dbd8610
fix vc7 compile
2005-02-12 22:35:38 +00:00
Glenn Maynard
1ae82eeec0
er, don't define operator= in terms of operator=
2005-02-12 22:00:17 +00:00
Glenn Maynard
790f06aa16
Underlay metrics.
...
I've added this at 0,0, instead of CENTER, because it's usually a BGA;
it's more natural to specify absolute coordinates in a top-level BGA than
coordinates relative to the center. I'll change Overlay over later when I
have time to test it.
2005-02-12 20:34:00 +00:00
Glenn Maynard
a6ccaff834
Add a separate underlay layer. This should be used for adding actors
...
instead of modifying background, since changing the background per-
screen breaks the "persist background" logic in ScreenManager.
2005-02-12 20:31:15 +00:00
Glenn Maynard
5400d71e4d
fix loading "p1combo" instead of "p1 combo"
2005-02-12 19:29:43 +00:00
Glenn Maynard
b3cba1b726
remove old hack per stepmania-devs post; model code shouldn't be
...
loading character.ini
2005-02-12 18:03:04 +00:00
Glenn Maynard
e166bbcb48
cleanup
2005-02-12 17:53:36 +00:00
Glenn Maynard
859ca34079
fix options menu loading every other menu
2005-02-12 09:07:59 +00:00
Glenn Maynard
cea0103b59
DWI read/write fixes
2005-02-12 08:18:31 +00:00
Glenn Maynard
10a4f13c51
move InsertHoldTails into NoteDataUtil
2005-02-12 08:16:02 +00:00
Glenn Maynard
d1ed849cb5
Revert. Removing assertions that you don't understand is not an acceptable
...
fix. Fix bugs, don't ignore them.
2005-02-12 06:57:52 +00:00
Glenn Maynard
23d907e3d4
remove ill-formatted comment (I feel like I've asked him to space comments
...
readably, like the rest of the code, half a dozen times).
The function is probably just returning ERROR_CALL_NOT_IMPLEMENTED.
If it's returning some other error, find out what it is and add it to the conditional. Don't
just break out without understanding the logic of the rest of the function.
2005-02-12 06:21:29 +00:00
Glenn Maynard
ccc31cad7f
SelectTypeToString, StringToSelectType, LayoutTypeToString, StringToLayoutType
2005-02-12 05:08:43 +00:00
Glenn Maynard
a3e585b886
fix crash
2005-02-11 04:07:30 +00:00
Glenn Maynard
fb36d944f9
fix warnings (why aren't OpenGL handles a pointer type? yuck)
2005-02-11 04:06:52 +00:00
Glenn Maynard
775d18fe2d
add RageThread::GetName()
2005-02-11 04:05:50 +00:00
Glenn Maynard
06ddb73d93
don't reset if already wagging
2005-02-11 02:56:08 +00:00
Glenn Maynard
a847b4f47b
fix paste clearing everything after the paste; also fixes compress, etc.
...
problems
2005-02-10 05:07:34 +00:00
Glenn Maynard
537f3a86b1
editor BPM changing fixes: conditional was backwards, and epsilon
...
must be smaller since we're in BPS
2005-02-10 04:59:03 +00:00
Glenn Maynard
36b99323fb
Validate material indices, so we don't crash if a mesh references material 9999.
2005-02-10 02:40:56 +00:00
Glenn Maynard
0c4f7889a5
remove comment
2005-02-09 08:20:10 +00:00
Glenn Maynard
6a45379ade
add back alias
2005-02-09 08:10:34 +00:00
Glenn Maynard
58510d151d
allow registering more than one screen class in a file
2005-02-08 08:37:40 +00:00
Glenn Maynard
475238dc2d
Realtek AC97 Audio workaround
2005-02-08 06:08:18 +00:00
Glenn Maynard
1634d1cad1
GraphicsWindow::GetHwnd
2005-02-08 05:23:57 +00:00
Glenn Maynard
404d80e600
call ShutdownGame after HOOKS->RestartProgram, since it deletes HOOKS
2005-02-08 05:09:51 +00:00
Glenn Maynard
98a558006b
fix hands results
2005-02-08 02:08:04 +00:00
Glenn Maynard
de0783842a
fix Echo hanging
2005-02-08 01:05:02 +00:00
Glenn Maynard
cb7255860c
ug, revert
2005-02-07 23:50:44 +00:00
Glenn Maynard
ebb4b0b28d
fix ScreenStage delay
2005-02-07 23:46:41 +00:00
Glenn Maynard
2bdff91293
preload cancel all sound
2005-02-07 23:31:55 +00:00
Glenn Maynard
f752e1c3b0
hide NoteData::InsertHoldTails away in NoteDataUtils
2005-02-07 22:03:32 +00:00
Glenn Maynard
10bc0bf336
remove NoteData::RemoveHoldTails
...
cleanup
2005-02-07 21:55:43 +00:00
Glenn Maynard
d29a686245
remove TAP_ORIGINAL_HOLD_TAIL
2005-02-07 21:32:22 +00:00
Glenn Maynard
8a6d8aa6f0
do NoteDataUtil::LoadFromSMNoteDataString without RemoveHoldTails
2005-02-07 21:31:18 +00:00
Glenn Maynard
62ed8ffd2f
implement clamping for caps
2005-02-07 21:13:04 +00:00
Glenn Maynard
d1fbf3f1f5
Only iterate over the section of a hold note that's on screen. Fixes slowness
...
with extremely long hold notes; now, even if a hold note has a
MAX_NOTE_ROW duration (which would be a bug), we shouldn't slow down.
2005-02-07 21:00:21 +00:00
Glenn Maynard
1962259078
revert; bugs should be fixed, not ignored
2005-02-07 19:27:49 +00:00
Glenn Maynard
f8084888fe
Only do NTPAD check in Windows. This belongs in ArchHooks, but I don't want to drag INPUTMAN into there ...
2005-02-07 09:48:52 +00:00
Glenn Maynard
22a177d345
This isn't needed; the correct fix for debugging in 2k is to enable emulated DirectInput (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DirectInput\Emulation).
2005-02-07 09:46:45 +00:00
Glenn Maynard
3a973eecbb
move priority boosting stuff to ArchHooks
2005-02-07 09:35:07 +00:00
Glenn Maynard
c622e6efd9
cleanup
2005-02-07 09:23:20 +00:00
Glenn Maynard
dc0582de4b
fix compile
2005-02-07 09:21:13 +00:00
Glenn Maynard
a0cb54c2be
fix compile, cleanup
2005-02-07 09:19:53 +00:00
Glenn Maynard
715a688008
remove platform-specific stuff from StpeMania.cpp
2005-02-07 09:17:57 +00:00
Glenn Maynard
1ffe2f4b89
make g_hWndMain local to GraphicsWindow
2005-02-07 09:16:48 +00:00
Glenn Maynard
7ccda6012d
use GraphicsWindow::GetHwnd
2005-02-07 09:16:00 +00:00
Glenn Maynard
28241e30aa
add GraphicsWindow::GetHwnd
2005-02-07 09:09:29 +00:00
Glenn Maynard
acceffb39a
cleanup
2005-02-07 09:04:53 +00:00
Glenn Maynard
bbd1b1ee57
cleanup
2005-02-07 09:03:43 +00:00
Glenn Maynard
d4305e12ed
includes
2005-02-07 09:00:43 +00:00
Glenn Maynard
1d4d44af08
Fix loading window getting the default icon, by loading an icon from the theme as early as we can.
2005-02-07 08:59:02 +00:00