Commit Graph
23511 Commits
Author SHA1 Message Date
Glenn Maynard 0e69f069e7 remove noop 2006-11-09 05:40:45 +00:00
Glenn Maynard 06214febf3 remove noop 2006-11-09 05:40:44 +00:00
Glenn Maynard 42b94af935 remove FAIL_THRESHOLD. This shouldn't be changed; failing with this
life meter means "empty".
2006-11-09 05:36:29 +00:00
Glenn Maynard 2c931f65d9 cleanup 2006-11-09 05:05:08 +00:00
Glenn Maynard a480164c7e cleanup 2006-11-09 04:59:17 +00:00
Glenn Maynard 133344a15f try to simplify this UpdateNonstopLifebar stuff (which seems to have
nothing to do with Nonstop).  This stuff is very tweaky and should
probably be broken out into Lua or something.
2006-11-09 04:58:03 +00:00
Glenn Maynard c865444202 cleanup 2006-11-09 04:48:56 +00:00
Glenn Maynard 9a0457a84b simplify 2006-11-09 04:47:33 +00:00
Glenn Maynard c48e4fe8bc remove noop 2006-11-09 04:45:44 +00:00
Glenn Maynard 28724eb156 SongChanged -> SongModified (confusing with CurrentSongChanged) 2006-11-09 04:32:23 +00:00
Glenn Maynard a1ead63fb1 fix message name 2006-11-09 04:25:58 +00:00
Glenn Maynard 1f2ddf24a7 remove never used 2006-11-09 04:20:47 +00:00
Glenn Maynard 280d09bc2e remove never used ForceFail 2006-11-09 04:17:16 +00:00
Glenn Maynard 1bd7c3c480 call luaopen() functions through Lua 2006-11-09 03:52:59 +00:00
Chris Danford ea2581fa4e add Character InitCommand (useful for scaling characters) 2006-11-05 04:58:33 +00:00
John Bauer a55c69dc6e Push the string for StepsType onto Lua instead of the integer.
This fixes a bug where opening the course editor and pressing down
immediately CTDs.

There is still a bug where sometimes a "random" stepchart has an
uninitialized StepsType.  This can be reliably triggered by going to the
Course Editor, creating a new course, and exiting without changing
the course any.  It will have one random song with an uninitialized
StepsType, causing a CTD.
2006-11-05 00:09:54 +00:00
Steve Checkoway c4fe855aca Spacing. 2006-11-04 23:36:42 +00:00
Steve Checkoway 63bb4faf7d Make NotesWriterDWI also a namespace. 2006-11-04 23:36:11 +00:00
Steve Checkoway 0ed39a2f5e No persistent data so make it a namespace. 2006-11-04 23:28:33 +00:00
Steve Checkoway 4ab88447f4 Make static, nonmember functions. 2006-11-04 23:23:41 +00:00
John Bauer af8c5e7df9 These three stepchart load methods should set SavedToDisk just like the
SM load method does.
2006-11-04 14:18:26 +00:00
Glenn Maynard e77cf2375f don't clear the texture redundantly
fix missing SetZoom
2006-11-03 07:31:19 +00:00
Steve Checkoway d9a533bf9f Simplify. 2006-11-03 05:44:57 +00:00
Steve Checkoway 4f4c6b5e87 Fix compile. 2006-11-03 05:33:43 +00:00
Steve Checkoway 360f1e66d5 Simplify. 2006-11-03 04:49:29 +00:00
Steve Checkoway 24a5651f0e Remove all items from a collection equal to a particular element in linear time. Only really useful for Sequences. 2006-11-03 04:46:36 +00:00
John Bauer 6f26ca2872 Put "CourseMode" barriers in a couple more places in AdjustSync.
Although AdjustSync would not alter anything in CourseMode, it would
sometimes announce it had.  It would be better to simply remove the
Autosync line from the options in CourseMode, but I don't know how to
do that.
2006-11-03 04:33:26 +00:00
Glenn Maynard b2f846ddf4 don't depend on texture env 2+ being clear 2006-11-03 03:49:32 +00:00
Glenn Maynard 31c63d16dd Join lines to make them more readable. This is not an 80x25 project ... 2006-11-03 03:47:33 +00:00
John Bauer 9b493aea9f Split some lines to make them more readable.
R=steve
2006-11-03 00:56:19 +00:00
John Bauer f39b68a8d9 Fix a typo in a comment. 2006-11-03 00:48:34 +00:00
John Bauer 3ddc314cbd Currently, long hold arrows are smudged like wet fountain pen ink.
This change fixes them.  Apparently the DISPLAY does not keep track
of all of these state changes in between calls to Draw().
2006-11-02 21:00:20 +00:00
Glenn Maynard f4136c72e6 simplify 2006-11-02 06:47:48 +00:00
Glenn Maynard 083c20497c use LuaThreadVariable 2006-11-02 06:12:48 +00:00
Glenn Maynard dab10ec033 const 2006-11-02 05:47:32 +00:00
Glenn Maynard 524b2418c7 use LuaThreadVariable 2006-11-02 05:42:47 +00:00
John Bauer 592c27996d Originally, the AdjustSync class always saved to disk, even in edit mode.
In edit mode, though, AdjustSync should only save to memory, giving the
user a chance to save later.  This change adds a SongChanged message
to the MessageManager.  Making the ScreenEdit class listen to this
message allows the AdjustSync class to mark a song as dirty rather than
saving it to disk when in edit mode.

R=steve chekoway
2006-11-02 05:30:02 +00:00
John Bauer db38f88c39 In ScreenEdit, figure out whether a song is dirty or not by keeping track
of a m_bDirty bit, not by reusing the m_bHasUndo bit.  This fixes two bugs:
1) Save & revert wouldn't clear the dirty bit before
2) Some operations such as tempo and stop changes wouldn't make
the song dirty

R=Steve Chekoway
2006-11-02 04:57:17 +00:00
Glenn Maynard 39c60364be remove global 2006-11-02 04:54:39 +00:00
Glenn Maynard 32820b65e3 use LuaThreadVariable 2006-11-02 04:36:05 +00:00
Glenn Maynard a3e5c4dae1 shorthand 2006-11-02 04:33:26 +00:00
Glenn Maynard 816d3f1155 prefer preincrement 2006-11-02 04:28:16 +00:00
Glenn Maynard 854b259ef1 Replace actor parameters with thread variables.
This is to provide parameters to loading Actor definitions, in a way that
does not need to be explicitly propagated to nested definitions; I want
loading a sub-definition to remain a simple function call with no mandatory
(prescribed) parameters.  This provides a general context to pass information
to Lua about what it's loading, such as LoadingScreen.

These are scoped to the running thread, unlike global variables.  This prevents
possible threading problems.

All thread variables are scoped: set a variable, do something, unset it; when
finished, all thread variables are unset.

These are no longer available after load.  By design, to use these later,
use upvalues:

local color = lua.GetVar("color");
return Def.Quad {
    OnCommand=cmd(diffuse,color);
}
2006-11-02 04:23:19 +00:00
Glenn Maynard 1e21152174 fix compile 2006-11-02 03:47:02 +00:00
Glenn Maynard 4cdec422c1 add lua 2006-11-02 03:34:56 +00:00
Steve Checkoway d571048d2b This is overkill for such a simple operation. Doing it this way should optimize to a single add and it doesn't have any of the problems associated with breaking aliasing rules. 2006-11-01 11:30:41 +00:00
Steve Checkoway cf3a76b600 Doing these conversions through a union is not safe either but more to the point, it isn't what's happening here. 2006-11-01 11:19:52 +00:00
Steve Checkoway e3e5cf77e5 Don't include Foreach.h in RageUtil.h which does not use it. Instead, include it in the individual files that actually use it. 2006-11-01 11:18:46 +00:00
Steve Checkoway b7493d25f7 Style. 2006-11-01 10:58:59 +00:00
Steve Checkoway f241645ff5 Unneeded. 2006-11-01 10:58:29 +00:00