Commit Graph
18103 Commits
Author SHA1 Message Date
Steve Checkoway 8bb2254628 cleanup 2005-10-31 20:37:34 +00:00
Steve Checkoway 5d56e7e154 Cleanup, ensure that the stack finding functions are not inlined. 2005-10-31 20:37:18 +00:00
Chris Danford 9e753e9f00 remove VC6, VC7 projects. Leave only VC7.1. 2005-10-31 19:29:51 +00:00
Glenn Maynard 7d3bb719f6 GetLineWidthInSourcePixels including overdraw causes a problem. Text is left-
aligned by default; we add the value of GetLineWidthInSourcePixels to right-
align (and n/2 to center-align).  This causes left-alignment to be flush, with
overdraw over the alignment (correct), but right-alignment to align against
the overdraw.  This causes fonts with borders to align with the border over
the edge on the left and against the edge on the right.

If we only include overdraw for cropping and scaling, and not positioning, then
we're inconsistent.  For example, if we have a border with 100 pixels of space,
and we scale to 100 pixels in this way, the text will be scaled to exactly 100
pixels, but if left- or right-aligned against the border, will overlap the border
and not actually use the whole space.  We need to be consistent: either consider
the overdraw part of the character or don't.

Ultimately, the overdraw was intended to not be considered part of the character
itself.  It's intended for use with fonts with borders/strokes/glow around lettering.
That causes every character in a font to be widened, usually uniformly.  This
tends to not increase the subjective width of the character: if aligning hard
against a border, these features should be ignored.  So, let's go back to the
original intent, and don't consider overdraw part of the character.
2005-10-31 14:56:27 +00:00
Glenn Maynard 92b790b9ee fix LoadingScreen not set correctly for SEdit MinMenus 2005-10-31 04:05:26 +00:00
Glenn Maynard 0361ad99d9 update comment 2005-10-31 04:03:16 +00:00
Glenn Maynard 00d4790a18 add SetCurrentTrail 2005-10-31 03:34:48 +00:00
Glenn Maynard 14b57d3833 return components in GetCurrentStepsCredits, not formatted 2005-10-31 03:34:05 +00:00
Steve Checkoway cc189a7e5d Update. 2005-10-31 03:24:52 +00:00
Steve Checkoway 57830f22ff Add separator between "Show All" and "Quit StepMania". 2005-10-31 03:09:02 +00:00
Steve Checkoway ed5fa87584 Fix spelling. 2005-10-31 03:03:53 +00:00
Steve Checkoway 33fb76772f Remove hack. 2005-10-31 02:30:22 +00:00
Steve Checkoway 9ef6cff623 cleanup 2005-10-31 01:56:42 +00:00
Steve Checkoway 8221c2f20d Let SM play nice with OS X's headers. 2005-10-31 01:56:15 +00:00
Steve Checkoway f89319f256 Fix warnings. 2005-10-31 01:55:05 +00:00
Glenn Maynard d10c1b08ad Avoid calling GetSongsValidForRandom for static courses. 2005-10-31 01:26:24 +00:00
Glenn Maynard d6ca8b3777 break out GetSongsValidForRandom 2005-10-31 01:19:54 +00:00
Glenn Maynard a58a2a2bb2 This seems to have optimized an uncommon case at the cost of the
common case.  Normally, most songs in most courses are static.  Previously,
in those cases, the filtered song list would never be generated; now it's
generated for every course.  Optimize the filtering (erase() on a vector is
slow).
2005-10-31 01:18:10 +00:00
Glenn Maynard 692a52673e Too-big commit in one chunk makes code review impossible--please break
things apart better.  Trying to figure out what just happened ...
2005-10-31 00:54:52 +00:00
Steve Checkoway 784a073764 Quit is now handled by a menu key equivalent. 2005-10-31 00:51:06 +00:00
Steve Checkoway cdcf01470d Exclude from Window menu. 2005-10-31 00:49:40 +00:00
Steve Checkoway d87989bb8c Handle key equivalents in menus. 2005-10-31 00:47:58 +00:00
Steve Checkoway b6df02af4c Cannot use FOREACH here since --song is not valid for the first element. 2005-10-31 00:32:30 +00:00
Chris Danford 74b107f8bb don't bother checking for a group match when we already have an exact song match 2005-10-31 00:27:48 +00:00
Steve Checkoway 7a3887c1c1 Fix crash. 2005-10-30 23:59:12 +00:00
Chris Danford 0f0caf7972 Writable files in "Save", read-only files in "Data". This simplifies the installer and packaging. 2005-10-30 23:08:38 +00:00
Glenn Maynard 226e6fc3d8 unused metrics 2005-10-30 22:30:33 +00:00
Glenn Maynard ad69594521 Simplify options message. Remove m_sprOptionsMessage; show this in an overlay.
Remove m_bgOptionsOut, m_bgNoOptionsOut; these were only used for delays, which
we can do by sleeping on the options message commands.  Remove SM_TweenOffOptionsMessage;
treat that as part of FadingOut.
2005-10-30 22:23:07 +00:00
Thad Ward 24d488ebda remove dead header file 2005-10-30 22:22:18 +00:00
Thad Ward 8e7c921af8 fix memory and texture leak. 2005-10-30 21:50:05 +00:00
Thad Ward 7a2e51e7ea include cleanups. 2005-10-30 21:39:49 +00:00
Thad Ward df136da381 Optimize. This brings the ALL_COURSES sort time down. I didn't check the time
spent in this code in release, but in debug this brings the time spent building
musicwheel items in ALL_COURSES sort mode from 30 seconds with my 1600+
songs in about 80 groups down to 12 seconds. Release is down to 6 seconds,
but I don't know where it was to start. This time would increase nearly
exponentially with the number of songs and groups.
2005-10-30 21:07:50 +00:00
Glenn Maynard 3c11c86ea9 themable "N/A", "Other" 2005-10-30 20:58:42 +00:00
Glenn Maynard dd16deaf23 themable "N/A" 2005-10-30 20:58:08 +00:00
Glenn Maynard 76ade2280a static, cleanup 2005-10-30 20:14:58 +00:00
Glenn Maynard b66cdac7b9 static 2005-10-30 20:13:46 +00:00
Glenn Maynard 7edb143399 cleanup, const 2005-10-30 20:09:32 +00:00
Glenn Maynard 6d8349b6d2 update for 0-9 2005-10-30 20:07:49 +00:00
Glenn Maynard 39696c1a08 NUM -> 0-9 2005-10-30 19:58:00 +00:00
Glenn Maynard dfdc0e6713 metrics 2005-10-30 18:32:50 +00:00
Glenn Maynard 89f80eb2e5 more easily themable sort text
(Not sure whether to use the choice name or the GameCommand m_sName.
The GameCommand name is used to identify asset names.  However, we
already have a Choice name here, and it's weird having two names: the
GC name just seems like a confusing extra layer of indirection.  Hmm ...)
2005-10-30 18:31:18 +00:00
Glenn Maynard 65a16ed427 overwritten immediately 2005-10-30 18:14:52 +00:00
Steve Checkoway 2ca163bf00 oops 2005-10-30 13:53:10 +00:00
Steve Checkoway 3cb0889324 Fix ppc linux compile. 2005-10-30 13:11:15 +00:00
Steve Checkoway 91c38af1f7 Add/remove files. 2005-10-30 09:47:11 +00:00
Steve Checkoway 8d56d70e0f Move ExitGame into GameLoop.h. 2005-10-30 09:45:52 +00:00
Steve Checkoway 33c0408ca2 Move ExitGame into GameLoop.h 2005-10-30 09:45:39 +00:00
Thad Ward cd2645fe36 fix blowup when a KSF file has a #TITLE tag with nothing in it. (grr) 2005-10-30 09:45:04 +00:00
Steve Checkoway eea687a01a Fix warning. 2005-10-30 09:44:25 +00:00
Thad Ward 90891ad511 move the include path I added to a couple MovieTexture files into the overall
project settings instead, in case other files in the future depend on it.
2005-10-30 09:13:45 +00:00